/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 66 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 = 7647
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0204.8+1513_daily_bin1260
RA = 31.2182, Dec = 15.2326
tmin = 565920001, tmax = 566179201
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='83103', job_status='RUN', time_executed='2021-08-15 05:33:43.062811', time_epoch_executed='1629030823.06' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83103/ft1_4FGL_J0204.8+1513_daily_bin1260.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83103/ft1_4FGL_J0204.8+1513_daily_bin1260.fits outfile=/scratch/kocevski/83103/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1260.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=565920001.0 tmax=566179201.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 6.99
user 3.40
sys 3.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.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/83103/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1260.fits evtable="EVENTS" outfile="/scratch/kocevski/83103/ft1_filtered_4FGL_J0204.8+1513_daily_bin1260.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 3.88
user 0.32
sys 3.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83103/ft1_filtered_4FGL_J0204.8+1513_daily_bin1260.fits" evtable="EVENTS" scfile=/scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits sctable="SC_DATA" outfile=/scratch/kocevski/83103/ltcube_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.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/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits
.....................!
real 17.30
user 13.08
sys 3.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83103/ft1_filtered_4FGL_J0204.8+1513_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits sctable="SC_DATA" expcube=/scratch/kocevski/83103/ltcube_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.fits outfile=/scratch/kocevski/83103/expmap_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.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/83103/ltcube_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.fits
.....................!
real 196.85
user 187.19
sys 8.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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J0204.8+1513 @ 31.2182 15.2326

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/83103/ft1_filtered_4FGL_J0204.8+1513_daily_bin1260.fits scfile=/scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits outfile=/scratch/kocevski/83103/cmap_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.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=31.2182 yref=15.2326 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 3.81
user 0.38
sys 3.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83103/ft1_filtered_4FGL_J0204.8+1513_daily_bin1260.fits scfile=/scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits outfile=/scratch/kocevski/83103/cmap_HighResolution_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.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=31.2182 yref=15.2326 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 3.77
user 0.39
sys 3.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83103/ft1_filtered_4FGL_J0204.8+1513_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83103/Model_4FGL_J0204.8+1513_daily_bin1260.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/83103/ft1_filtered_4FGL_J0204.8+1513_daily_bin1260.fits.....................!
real 83.04
user 77.47
sys 5.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83103/ft1_filtered_4FGL_J0204.8+1513_daily_bin1260.fits', '/scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits', expMap='/scratch/kocevski/83103/expmap_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.fits', expCube='/scratch/kocevski/83103/ltcube_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83103/Model_4FGL_J0204.8+1513_daily_bin1260.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0204.8+1513'

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.139e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/83103/ft1_filtered_4FGL_J0204.8+1513_daily_bin1260.fits
Spacecraft file(s): /scratch/kocevski/83103/ft2_4FGL_J0204.8+1513_daily_bin1260.fits
Exposure map: /scratch/kocevski/83103/expmap_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.fits
Exposure cube: /scratch/kocevski/83103/ltcube_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83103/Model_4FGL_J0204.8+1513_daily_bin1260.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) = 6256.18250957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15391E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.490       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7141       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9499       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3018       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3447       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13265E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    53.666       1.0000         .10000E-03   10000.    
    22 'norm      '    17.864       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.146       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15149E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1403       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6256.120     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3334 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    400.42       -.48230E-05** at limit **
   2  Prefactor     14.479        13.671       -.23103E-06   -.97349E-04
   3  norm          5.7098        18.819        .43359E-06    .39536E-04
   4  Prefactor     10.258        7.6868        .70967E-07    .13634E-03
   5  Prefactor     .10000E-03    76.562       -.20359E-06** at limit **
   6  Prefactor     4.9491        3.7564        .24563E-06    .32328E-03
   7  norm          .10000E-03    2.8037        .63757E-07** at limit **
   8  Prefactor     8.3013        6.4488        .92903E-07    .11970E-03
   9  Prefactor     3.3440        3.5411        .37743E-06    .39068E-03
  10  norm          .10000E-03    23.877        .18951E-06** at limit **
  11  Prefactor     27.034        38.279       -.59246E-06   -.30721E-04
  12  Prefactor     .10000E-03    16.820       -.45018E-07** at limit **
  13  Prefactor     .10037E-03    12.005        .37972E-05** at limit **
  14  Prefactor     .10000E-03    25.548       -.30674E-06** at limit **
  15  Prefactor     .10000E-03    30.233        .26746E-07** at limit **
  16  Prefactor     .10000E-03    4.1336       -.74912E-06** at limit **
  17  Prefactor     .10000E-03    41.377        .23432E-07** at limit **
  18  Prefactor     .10000E-03    5.1425       -.87293E-07** at limit **
  19  Prefactor     .10000E-03    5.3805       -.71909E-06** at limit **
  20  norm          .10000E-03    .20054       -.20996E-07** at limit **
  21  Prefactor     53.610        57.574        .51785E-05    .36775E-03
  22  norm          17.865        13.714        .54186E-06    .41024E-03
  23  Prefactor     30.146        19.221        .35381E-06    .21376E-03
  24  Prefactor     .10003E-03    133.09       -.72207E-05** at limit **
  25  Prefactor     .10000E-03    7.6028       -.41526E-07** at limit **
  26  Normalizat    1.1407        .22996       -.96566E-06    .10364E-03
  27  Prefactor     .83207        .11347        .54477E-06    .27657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 14.4794
  norm       = 5.70978
  Prefactor  = 10.2576
  Prefactor  = 0.0001
  Prefactor  = 4.94907
  norm       = 0.0001
  Prefactor  = 8.30134
  Prefactor  = 3.34404
  norm       = 0.0001
  Prefactor  = 27.0336
  Prefactor  = 0.0001
  Prefactor  = 0.000100367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.61
  norm       = 17.8646
  Prefactor  = 30.1459
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Normalizat = 1.14073
  Prefactor  = 0.83207
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.120     FROM HESSE     STATUS=OK           480 CALLS     3814 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    414.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.479        13.718        .10522E-03   -1.4947    
   3  norm          5.7098        18.815        .16803E-03   -1.5230    
   4  Prefactor     10.258        7.6772        .12511E-03   -1.5067    
   5  Prefactor     .10000E-03    76.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9491        3.7585        .12566E-03   -1.5263    
   7  norm          .10000E-03    2.8977        .25853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3013        6.4460        .13914E-03   -1.5132    
   9  Prefactor     3.3440        3.5232        .14083E-03   -1.5342    
  10  norm          .10000E-03    23.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.034        38.336        .77020E-04   -1.4668    
  12  Prefactor     .10000E-03    16.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10037E-03    32.757        .32964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1943        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1568        .17517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4492        .17985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20073        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     53.610        59.430        .54752E-04   -1.4242    
  22  norm          17.865        13.731        .94762E-04   -1.4862    
  23  Prefactor     30.146        19.244        .72972E-04   -1.4609    
  24  Prefactor     .10003E-03    138.99        .20463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.6052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1407        .26488        .32053E-03   -.88455    
  27  Prefactor     .83207        .13076        .18925E-03   -.98557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2095e-08
Minuit parameter uncertainties:
  1  0.00527199
  2  13.7211
  3  18.8344
  4  7.67794
  5  0.000206345
  6  3.75873
  7  8.31891e-07
  8  6.44649
  9  3.52338
  10  8.97894e-05
  11  38.3708
  12  1.61789e-05
  13  0.00694222
  14  0.000155754
  15  1.08181e-05
  16  8.942e-05
  17  5.92559e-05
  18  1.48978e-05
  19  9.40028e-05
  20  5.64952e-07
  21  59.4954
  22  13.7337
  23  19.2481
  24  0.00377161
  25  7.54227e-06
  26  0.26519
  27  0.130805
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  4.949e+00  3.759e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.321e-01  1.308e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.141e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 31.218 15.233
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.41e-08 +/- 5.62e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 2.08e-05

TS (Fixed Index): 2.42
Ra Dec: 31.218 15.233
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83103/likelihoodResults_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.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) = 6255.25442365
delta logL = 0.865616048267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6255.24110641
delta logL = 0.878933286145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7998       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2739       1.0000          .0000       10.000    
     3 'Normalizat'    1.0640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6255.241     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      249 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8019        16.764        .77903E-02    .58030E-03
   2  Index         3.2741        2.7380        .11704        .15691E-03
   3  Normalizat    1.0636        .77583E-01    .74615E-01    .45817E-05
   4  Prefactor     .85914        .39104E-01    .44478E-01   -.12189E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80189
  Index      = 3.27411
  Normalizat = 1.06357
  Prefactor  = 0.859138
 **********
 **   18 **HESSE 
 **********

 FCN=   6255.241     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8019        5.7015        .58891E-04   -1.5439    
   2  Index         3.2741        1.7393        .44742E-02   -.35243    
   3  Normalizat    1.0636        .26388        .33021E-03   -.90930    
   4  Prefactor     .85914        .13431        .18654E-03   -.97584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1516e-11
Minuit parameter uncertainties:
  1  5.70323
  2  1.78178
  3  0.26421
  4  0.134365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83103': 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) = 6255.24109986
delta logL = 0.878939835123

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.802e+00  5.703e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  3.274e+00  1.782e+00  0.000e+00  1.000e+01 (-1.000e+00)
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.591e-01  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.064e+00  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 31.218 15.233
Photon Index (Free Index): 3.27 +/- 1.78
Photon Flux (Free Index): 1.40e-07 +/- 8.62e-08
Energy Flux (Free Index): 2.49e-05 +/- 1.84e-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/83103/cmap_HighResolution_565920001_566179201_4FGL_J0204.8+1513_daily_bin1260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='7.41e-08', energy_flux2='2.49e-05', photon_flux_error='5.62e-08', dlogl='8.79e-01', energy_flux='2.74e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-08-15 05:47:07.617199', photon_index_error2='1.78', photon_index2='3.27', ts='2.42', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.84e-05', EG='1.14', time_epoch_completed='1629031627.62', return_code='0', job_id='83103', GAL2='0.86', EG2='1.06', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='8.62e-08', ts2='4.35', photon_index='2.31' WHERE bin_id='1260' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 05:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 83103: <4FGL_J0204.8+1513_daily_bin1260> in cluster <slac> Done

Job <4FGL_J0204.8+1513_daily_bin1260> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 05:30:49 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:31:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 05:31:17 2021
Terminated at Sun Aug 15 05:47:09 2021
Results reported at Sun Aug 15 05:47:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1260 31.2182 15.2326 565920001 566179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0204.8+1513 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   847.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            980 sec.

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

