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


Performing analysis on: 4FGL_J0204.8+1513_daily_bin1109
RA = 31.2182, Dec = 15.2326
tmin = 526780801, tmax = 527040001
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='82854', job_status='RUN', time_executed='2021-08-15 05:31:41.279972', time_epoch_executed='1629030701.28' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82854/ft1_4FGL_J0204.8+1513_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82854/ft2_4FGL_J0204.8+1513_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82854/ft1_4FGL_J0204.8+1513_daily_bin1109.fits outfile=/scratch/kocevski/82854/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1109.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=526780801.0 tmax=527040001.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 5.35
user 4.10
sys 1.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82854/ft1_filtered_4FGL_J0204.8+1513_daily_bin1109.fits" evtable="EVENTS" scfile=/scratch/kocevski/82854/ft2_4FGL_J0204.8+1513_daily_bin1109.fits sctable="SC_DATA" outfile=/scratch/kocevski/82854/ltcube_526780801_527040001_4FGL_J0204.8+1513_daily_bin1109.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/82854/ft2_4FGL_J0204.8+1513_daily_bin1109.fits
.....................!
real 14.05
user 12.60
sys 1.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82854/ft1_filtered_4FGL_J0204.8+1513_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/82854/ft2_4FGL_J0204.8+1513_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/82854/ltcube_526780801_527040001_4FGL_J0204.8+1513_daily_bin1109.fits outfile=/scratch/kocevski/82854/expmap_526780801_527040001_4FGL_J0204.8+1513_daily_bin1109.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/82854/ltcube_526780801_527040001_4FGL_J0204.8+1513_daily_bin1109.fits
.....................!
real 198.10
user 190.49
sys 6.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/82854/ft1_filtered_4FGL_J0204.8+1513_daily_bin1109.fits scfile=/scratch/kocevski/82854/ft2_4FGL_J0204.8+1513_daily_bin1109.fits outfile=/scratch/kocevski/82854/cmap_526780801_527040001_4FGL_J0204.8+1513_daily_bin1109.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 1.45
user 0.37
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82854/ft1_filtered_4FGL_J0204.8+1513_daily_bin1109.fits scfile=/scratch/kocevski/82854/ft2_4FGL_J0204.8+1513_daily_bin1109.fits outfile=/scratch/kocevski/82854/cmap_HighResolution_526780801_527040001_4FGL_J0204.8+1513_daily_bin1109.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 1.45
user 0.37
sys 1.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3758       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4401       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0660       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5154       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .77009E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90346       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1158       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.4921       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.539       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0001       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90036       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=   5543.686     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     2793 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.509       -.67072E-06** at limit **
   2  Prefactor     6.3768        9.3586        .25219E-07   -.35158E-04
   3  norm          .10000E-03    7.1066        .30189E-06** at limit **
   4  Prefactor     4.4402        4.4652       -.36501E-07    .59528E-04
   5  Prefactor     .10000E-03    98.015        .94911E-06** at limit **
   6  Prefactor     5.0662        3.2204        .14183E-07    .16761E-03
   7  norm          .10000E-03    1.4151       -.21600E-08** at limit **
   8  Prefactor     4.5149        4.2193       -.39121E-07   -.35689E-04
   9  Prefactor     .10000E-03    .77256        .48568E-09** at limit **
  10  norm          .10000E-03    45.632        .11478E-04** at limit **
  11  Prefactor     .10000E-03    10.575        .65186E-06** at limit **
  12  Prefactor     .10000E-03    6.8775       -.21693E-06** at limit **
  13  Prefactor     .10561E-03    6.6291       -.25484E-05** at limit **
  14  Prefactor     .10000E-03    37.141       -.13354E-04** at limit **
  15  Prefactor     .10000E-03    89.054        .31828E-04** at limit **
  16  Prefactor     .10000E-03    8.8297       -.10398E-05** at limit **
  17  Prefactor     .10000E-03    9.0859        .74715E-06** at limit **
  18  Prefactor     5.7296        9.6616       -.42041E-07    .69681E-04
  19  Prefactor     .90328        .91425        .22671E-07   -.38365E-03
  20  norm          1.1158        .57603       -.17301E-08    .48021E-03
  21  Prefactor     .10000E-03    22.212        .12799E-04** at limit **
  22  norm          7.4945        11.679        .88438E-07    .51144E-04
  23  Prefactor     20.540        15.819       -.35377E-07    .51453E-04
  24  Prefactor     .10000E-03    28.658       -.44050E-05** at limit **
  25  Prefactor     .10000E-03    18.816       -.61938E-05** at limit **
  26  Normalizat    1.0000        .19944        .19097E-06    .17849E-03
  27  Prefactor     .90031        .11130        .70002E-07    .29083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.37685
  norm       = 0.0001
  Prefactor  = 4.4402
  Prefactor  = 0.0001
  Prefactor  = 5.06618
  norm       = 0.0001
  Prefactor  = 4.5149
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000105612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.72959
  Prefactor  = 0.903279
  norm       = 1.11581
  Prefactor  = 0.0001
  norm       = 7.49446
  Prefactor  = 20.5395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00005
  Prefactor  = 0.900307
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.686     FROM HESSE     STATUS=OK           490 CALLS     3283 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3768        9.3722        .79479E-03   -1.5203    
   3  norm          .10000E-03    7.1123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4402        4.4690        .76754E-03   -1.5287    
   5  Prefactor     .10000E-03    98.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0662        3.2216        .10139E-03   -1.5258    
   7  norm          .10000E-03    1.4186        .86491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5149        4.2161        .14371E-03   -1.5283    
   9  Prefactor     .10000E-03    .77784        .63895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    45.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10561E-03    7.6807        .54238E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    89.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7296        9.6406        .16780E-03   -1.5229    
  19  Prefactor     .90328        15.032        .25640E-02   -1.5518    
  20  norm          1.1158        .60507        .38019E-04   -1.5497    
  21  Prefactor     .10000E-03    22.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.4945        11.655        .73260E-03   -1.5160    
  23  Prefactor     20.540        15.830        .88379E-04   -1.4801    
  24  Prefactor     .10000E-03    28.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0000        .22667        .29995E-03   -.93029    
  27  Prefactor     .90031        .12721        .17600E-03   -.96130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90676e-09
Minuit parameter uncertainties:
  1  1.71082e-06
  2  9.3744
  3  4.41052e-07
  4  4.46934
  5  6.19084e-06
  6  3.22174
  7  7.47251e-07
  8  4.2164
  9  6.11308e-07
  10  2.70212e-06
  11  1.05841e-06
  12  3.53746e-08
  13  0.0131325
  14  1.76591e-05
  15  0.000184741
  16  6.39606e-05
  17  4.68187e-07
  18  9.64324
  19  7.37152
  20  0.605073
  21  1.6154e-06
  22  11.6584
  23  15.8329
  24  8.17463e-06
  25  2.38414e-05
  26  0.22689
  27  0.127254
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  5.066e+00  3.222e+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:  9.003e-01  1.273e-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.000e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.30
Ra Dec: 31.218 15.233
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.59e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 1.79e-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) = 5543.29187622
delta logL = 0.394036845199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.29110858
delta logL = 0.394804488665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7618       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8427       1.0000          .0000       10.000    
     3 'Normalizat'    .97073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91133       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5543.291     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      305 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7619        3.9372        .68121E-04    .85781E-04
   2  Index         2.8427        .81181        .45598E-02    .24965E-04
   3  Normalizat    .97081        .22763        .30374E-03    .51727E-04
   4  Prefactor     .91127        .12658        .17505E-03    .11279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.76189
  Index      = 2.84274
  Normalizat = 0.970814
  Prefactor  = 0.911272
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.291     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7619        3.2954        .27248E-05   -1.5376    
   2  Index         2.8427        .68021        .18239E-03   -.44610    
   3  Normalizat    .97081        .22747        .12149E-04   -.94015    
   4  Prefactor     .91127        .12639        .35009E-04   -.95748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82713e-12
Minuit parameter uncertainties:
  1  3.29566
  2  0.682818
  3  0.227696
  4  0.126432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82854': 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) = 5543.29110847
delta logL = 0.394804598487

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  2.762e+00  3.296e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.843e+00  6.828e-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:  9.113e-01  1.264e-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.708e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 31.218 15.233
Photon Index (Free Index): 2.84 +/- 0.68
Photon Flux (Free Index): 9.85e-08 +/- 5.88e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.38e-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/82854/cmap_HighResolution_526780801_527040001_4FGL_J0204.8+1513_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.59e-08', energy_flux2='2.15e-05', photon_flux_error='4.82e-08', dlogl='3.95e-01', energy_flux='2.81e-05', photon_flux2='9.85e-08', job_status='DONE', time_completed='2021-08-15 05:42:21.037242', photon_index_error2='0.68', photon_index2='2.84', ts='4.30', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.00', time_epoch_completed='1629031341.04', return_code='0', job_id='82854', GAL2='0.91', EG2='0.97', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='5.88e-08', ts2='5.14', photon_index='2.31' WHERE bin_id='1109' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 05:42:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 82854: <4FGL_J0204.8+1513_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1109 31.2182 15.2326 526780801 527040001 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 :                                   646.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            715 sec.

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

