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


Performing analysis on: 4FGL_J0204.8+1513_daily_bin1098
RA = 31.2182, Dec = 15.2326
tmin = 523929601, tmax = 524188801
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='82837', job_status='RUN', time_executed='2021-08-15 05:30:45.343100', time_epoch_executed='1629030645.34' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82837

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82837/ft1_4FGL_J0204.8+1513_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82837/ft2_4FGL_J0204.8+1513_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82837/ft1_4FGL_J0204.8+1513_daily_bin1098.fits outfile=/scratch/kocevski/82837/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1098.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=523929601.0 tmax=524188801.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.85
user 3.28
sys 0.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82837/ft2_4FGL_J0204.8+1513_daily_bin1098.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/82837/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1098.fits evtable="EVENTS" outfile="/scratch/kocevski/82837/ft1_filtered_4FGL_J0204.8+1513_daily_bin1098.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.85
user 0.34
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82837/ft1_filtered_4FGL_J0204.8+1513_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/82837/ft2_4FGL_J0204.8+1513_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/82837/ltcube_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.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/82837/ft2_4FGL_J0204.8+1513_daily_bin1098.fits
.....................!
real 17.12
user 16.35
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82837/ft1_filtered_4FGL_J0204.8+1513_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/82837/ft2_4FGL_J0204.8+1513_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/82837/ltcube_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.fits outfile=/scratch/kocevski/82837/expmap_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.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/82837/ltcube_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.fits
.....................!
real 191.27
user 186.06
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 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/82837/ft1_filtered_4FGL_J0204.8+1513_daily_bin1098.fits scfile=/scratch/kocevski/82837/ft2_4FGL_J0204.8+1513_daily_bin1098.fits outfile=/scratch/kocevski/82837/cmap_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.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 0.87
user 0.37
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82837/ft1_filtered_4FGL_J0204.8+1513_daily_bin1098.fits scfile=/scratch/kocevski/82837/ft2_4FGL_J0204.8+1513_daily_bin1098.fits outfile=/scratch/kocevski/82837/cmap_HighResolution_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.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 0.87
user 0.40
sys 0.46

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82837/ft1_filtered_4FGL_J0204.8+1513_daily_bin1098.fits', '/scratch/kocevski/82837/ft2_4FGL_J0204.8+1513_daily_bin1098.fits', expMap='/scratch/kocevski/82837/expmap_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.fits', expCube='/scratch/kocevski/82837/ltcube_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82837/Model_4FGL_J0204.8+1513_daily_bin1098.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/82837/ft1_filtered_4FGL_J0204.8+1513_daily_bin1098.fits
Spacecraft file(s): /scratch/kocevski/82837/ft2_4FGL_J0204.8+1513_daily_bin1098.fits
Exposure map: /scratch/kocevski/82837/expmap_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.fits
Exposure cube: /scratch/kocevski/82837/ltcube_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82837/Model_4FGL_J0204.8+1513_daily_bin1098.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) = 9334.7686375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.291       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8050       1.0000         .10000E-03   10000.    
     7 'norm      '    6.1474       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3393       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .79340       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23211E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.432       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.996       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91341       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0712       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=   9334.744     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3241 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.561        31.608        .16399E-05    .17157E-04
   2  Prefactor     .10000E-03    7.4218       -.19187E-05** at limit **
   3  norm          .10000E-03    6.2688        .10171E-05** at limit **
   4  Prefactor     15.291        7.3785       -.31237E-06    .28250E-04
   5  Prefactor     .10000E-03    40.452       -.71439E-05** at limit **
   6  Prefactor     4.8052        2.8424       -.34285E-06   -.35605E-03
   7  norm          6.1474        4.9841        .36683E-07   -.15553E-03
   8  Prefactor     .10000E-03    1.2992       -.22624E-06** at limit **
   9  Prefactor     .10000E-03    1.1691       -.21053E-06** at limit **
  10  norm          .10000E-03    73.749       -.13146E-04** at limit **
  11  Prefactor     6.3382        15.233       -.87012E-06   -.84046E-05
  12  Prefactor     .10000E-03    6.5915        .79555E-06** at limit **
  13  Prefactor     .10000E-03    2.9299        .61950E-06** at limit **
  14  Prefactor     .10000E-03    75.129       -.22518E-04** at limit **
  15  Prefactor     38.359        45.740       -.21460E-04    .79364E-05
  16  Prefactor     .10000E-03    4.4632        .12851E-05** at limit **
  17  Prefactor     .10000E-03    6.0438       -.12489E-05** at limit **
  18  Prefactor     .10000E-03    4.5161       -.10161E-05** at limit **
  19  Prefactor     .10000E-03    9.1057        .20737E-06** at limit **
  20  norm          .79407        .63128        .10685E-06    .20860E-03
  21  Prefactor     .10003E-03    61.875        .47282E-04** at limit **
  22  norm          11.300        13.797        .42895E-05   -.13188E-02
  23  Prefactor     21.430        21.999        .15675E-05   -.58200E-04
  24  Prefactor     34.958        38.327       -.35706E-04   -.25185E-03
  25  Prefactor     .10000E-03    8.9342        .12607E-05** at limit **
  26  Normalizat    .91346        .17981        .75477E-06    .36825E-04
  27  Prefactor     1.0712        .10030        .18001E-05   -.26913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.5609
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2906
  Prefactor  = 0.0001
  Prefactor  = 4.80521
  norm       = 6.14743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.33824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.3591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.794069
  Prefactor  = 0.000100032
  norm       = 11.2998
  Prefactor  = 21.4302
  Prefactor  = 34.9579
  Prefactor  = 0.0001
  Normalizat = 0.91346
  Prefactor  = 1.07118
 **********
 **   18 **HESSE 
 **********

 FCN=   9334.744     FROM HESSE     STATUS=OK           482 CALLS     3723 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.561        31.609        .64548E-04   -1.4465    
   2  Prefactor     .10000E-03    7.5410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.2796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.291        7.3772        .10243E-03   -1.4926    
   5  Prefactor     .10000E-03    40.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8052        2.8421        .11861E-03   -1.5270    
   7  norm          6.1474        4.9402        .16192E-03   -1.5212    
   8  Prefactor     .10000E-03    1.3009        .10754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1472        .19914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    74.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3382        15.166        .15942E-03   -1.5204    
  12  Prefactor     .10000E-03    6.5944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9515        .16148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    75.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.359        45.698        .64698E-04   -1.4468    
  16  Prefactor     .10000E-03    4.5300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.1974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .79407        .59779        .55563E-03   -1.5530    
  21  Prefactor     .10003E-03    63.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.300        13.673        .59592E-03   -1.5036    
  23  Prefactor     21.430        21.663        .86519E-04   -1.4782    
  24  Prefactor     34.958        37.982        .67741E-04   -1.4525    
  25  Prefactor     .10000E-03    8.9483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91346        .20049        .35116E-03   -.95989    
  27  Prefactor     1.0712        .11287        .18271E-03   -.90393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46321e-09
Minuit parameter uncertainties:
  1  31.623
  2  2.50958e-05
  3  8.42175e-06
  4  7.37761
  5  5.02565e-06
  6  2.84219
  7  4.9405
  8  3.90094e-06
  9  1.04477e-06
  10  5.7713e-05
  11  15.1755
  12  1.24997e-05
  13  7.97615e-06
  14  8.9213e-05
  15  45.7397
  16  6.56755e-05
  17  7.11136e-07
  18  3.07741e-06
  19  0.000227364
  20  0.597798
  21  0.00284623
  22  13.6767
  23  21.6707
  24  38.0083
  25  8.59188e-06
  26  0.200656
  27  0.112891
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  4.805e+00  2.842e+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:  1.071e+00  1.129e-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:  9.135e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.01
Ra Dec: 31.218 15.233
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.20e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.57e-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) = 9333.82793749
delta logL = 0.916344267975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9333.82636976
delta logL = 0.917912000354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2860       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0639       1.0000          .0000       10.000    
     3 'Normalizat'    .85648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0903       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=   9333.826     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      247 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2860        14.627        .67880E-02    .35216E-04
   2  Index         3.0639        2.3705        .12427        .21022E-03
   3  Normalizat    .85652        .66997E-01    .81557E-01    .15723E-04
   4  Prefactor     1.0903        .35460E-01    .37966E-01   -.16059E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28602
  Index      = 3.06389
  Normalizat = 0.856522
  Prefactor  = 1.0903
 **********
 **   18 **HESSE 
 **********

 FCN=   9333.826     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2860        3.1290        .65985E-04   -1.5406    
   2  Index         3.0639        .80474        .46485E-02   -.39762    
   3  Normalizat    .85652        .20390        .36107E-03   -.98005    
   4  Prefactor     1.0903        .11221        .18123E-03   -.89777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29968e-10
Minuit parameter uncertainties:
  1  3.12925
  2  0.808879
  3  0.204087
  4  0.112235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82837': 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) = 9333.82636972
delta logL = 0.917912035426

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  2.286e+00  3.129e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  3.064e+00  8.089e-01  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:  1.090e+00  1.122e-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:  8.565e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.02
Ra Dec: 31.218 15.233
Photon Index (Free Index): 3.06 +/- 0.81
Photon Flux (Free Index): 1.21e-07 +/- 6.15e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/82837/cmap_HighResolution_523929601_524188801_4FGL_J0204.8+1513_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.20e-08', energy_flux2='2.34e-05', photon_flux_error='4.25e-08', dlogl='9.18e-01', energy_flux='2.66e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-08-15 05:45:00.600656', photon_index_error2='0.81', photon_index2='3.06', ts='5.01', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='0.91', time_epoch_completed='1629031500.6', return_code='0', job_id='82837', GAL2='1.09', EG2='0.86', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='6.15e-08', ts2='7.02', photon_index='2.31' WHERE bin_id='1098' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 05:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 82837: <4FGL_J0204.8+1513_daily_bin1098> in cluster <slac> Done

Job <4FGL_J0204.8+1513_daily_bin1098> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 05:30:26 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:30:29 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:30:29 2021
Terminated at Sun Aug 15 05:45:01 2021
Results reported at Sun Aug 15 05:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1098 31.2182 15.2326 523929601 524188801 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 :                                   854.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            875 sec.

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

