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


Performing analysis on: 4FGL_J0204.8+1513_daily_bin1496
RA = 31.2182, Dec = 15.2326
tmin = 627091201, tmax = 627350401
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='84636', job_status='RUN', time_executed='2021-08-15 05:38:01.463069', time_epoch_executed='1629031081.46' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84636

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84636/ft1_4FGL_J0204.8+1513_daily_bin1496.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84636/ft2_4FGL_J0204.8+1513_daily_bin1496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84636/ft1_4FGL_J0204.8+1513_daily_bin1496.fits outfile=/scratch/kocevski/84636/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1496.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=627091201.0 tmax=627350401.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 8.03
user 2.73
sys 5.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/84636/ft2_4FGL_J0204.8+1513_daily_bin1496.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/84636/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1496.fits evtable="EVENTS" outfile="/scratch/kocevski/84636/ft1_filtered_4FGL_J0204.8+1513_daily_bin1496.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 5.58
user 0.35
sys 5.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84636/ft1_filtered_4FGL_J0204.8+1513_daily_bin1496.fits" evtable="EVENTS" scfile=/scratch/kocevski/84636/ft2_4FGL_J0204.8+1513_daily_bin1496.fits sctable="SC_DATA" outfile=/scratch/kocevski/84636/ltcube_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.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/84636/ft2_4FGL_J0204.8+1513_daily_bin1496.fits
.....................!
real 20.12
user 13.97
sys 6.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84636/ft1_filtered_4FGL_J0204.8+1513_daily_bin1496.fits evtable="EVENTS" scfile=/scratch/kocevski/84636/ft2_4FGL_J0204.8+1513_daily_bin1496.fits sctable="SC_DATA" expcube=/scratch/kocevski/84636/ltcube_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.fits outfile=/scratch/kocevski/84636/expmap_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.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/84636/ltcube_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.fits
.....................!
real 199.45
user 186.11
sys 11.78

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/84636/ft1_filtered_4FGL_J0204.8+1513_daily_bin1496.fits scfile=/scratch/kocevski/84636/ft2_4FGL_J0204.8+1513_daily_bin1496.fits outfile=/scratch/kocevski/84636/cmap_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.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 5.51
user 0.39
sys 5.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84636/ft1_filtered_4FGL_J0204.8+1513_daily_bin1496.fits scfile=/scratch/kocevski/84636/ft2_4FGL_J0204.8+1513_daily_bin1496.fits outfile=/scratch/kocevski/84636/cmap_HighResolution_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.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 5.61
user 0.40
sys 5.10

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/84636/ft1_filtered_4FGL_J0204.8+1513_daily_bin1496.fits', '/scratch/kocevski/84636/ft2_4FGL_J0204.8+1513_daily_bin1496.fits', expMap='/scratch/kocevski/84636/expmap_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.fits', expCube='/scratch/kocevski/84636/ltcube_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/84636/Model_4FGL_J0204.8+1513_daily_bin1496.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/84636/ft1_filtered_4FGL_J0204.8+1513_daily_bin1496.fits
Spacecraft file(s): /scratch/kocevski/84636/ft2_4FGL_J0204.8+1513_daily_bin1496.fits
Exposure map: /scratch/kocevski/84636/expmap_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.fits
Exposure cube: /scratch/kocevski/84636/ltcube_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/84636/Model_4FGL_J0204.8+1513_daily_bin1496.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 383.53066193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 380.304430649

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38734       1.0000         .10000E-03   10000.    
     2 'Prefactor '    80.402       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    126.41       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.646       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.778       1.0000         .10000E-03   10000.    
     7 'norm      '    .20154E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10454E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88455E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5557       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5988       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11719E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4122       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9533       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7716       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4356       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2901       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9562       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7400       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2214       1.0000         .10000E-03   10000.    
    22 'norm      '    4.1065       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .32345E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4773       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   379.8143     FROM MIGRAD    STATUS=CONVERGED    337 CALLS      758 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    92.320        .11101E-03** at limit **
   2  Prefactor     76.177        94.203       -.31677E-04    .59768E-03
   3  norm          .10310E-03    474.15       -.24205E-03** at limit **
   4  Prefactor     127.03        120.57       -.84652E-04   -.39750E-02
   5  Prefactor     1653.6        2124.7       -.22002E-03   -.43724E-04
   6  Prefactor     45.035        55.657       -.13304E-05    .21512E-04
   7  norm          .10017E-03    106.14       -.69033E-05** at limit **
   8  Prefactor     .10003E-03    96.232        .34329E-03** at limit **
   9  Prefactor     .10002E-03    70.869        .63818E-05** at limit **
  10  norm          .12049E-01    950.72        .16262E-03   -.24802E-02
  11  Prefactor     .39922E-03    1604.2        .12769E-03** at limit **
  12  Prefactor     .81163E-03    6266.0       -.30696E-03** at limit **
  13  Prefactor     .10000E-03    369.18        .18262E-03** at limit **
  14  Prefactor     5.9166        26.042        .15351E-04    .17478E-02
  15  Prefactor     .78179E-02    1357.9       -.12149E-03    .19599E-02
  16  Prefactor     4.7716        1.0056         .0000         .0000    
  17  Prefactor     5.4356        1.0043         .0000         .0000    
  18  Prefactor     1.2901        1.1071         .0000         .0000    
  19  Prefactor     1.9562        1.0371         .0000         .0000    
  20  norm          1.7400        1.0487         .0000         .0000    
  21  Prefactor     3.2214        1.0126         .0000         .0000    
  22  norm          4.1065        1.0076         .0000         .0000    
  23  Prefactor     3.1966        1.0128         .0000         .0000    
  24  Prefactor     6.1829        1.0033         .0000         .0000    
  25  Prefactor     2.5180        1.0212         .0000         .0000    
  26  Normalizat    .23500        1.0564        .64726E-04   -.18720E-04
  27  Prefactor     1.2710        .68540       -.45651E-04   -.39082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Prefactor  = 76.1775
  norm       = 0.0001031
  Prefactor  = 127.032
  Prefactor  = 1653.61
  Prefactor  = 45.0351
  norm       = 0.000100172
  Prefactor  = 0.000100029
  Prefactor  = 0.000100017
  norm       = 0.0120489
  Prefactor  = 0.000399219
  Prefactor  = 0.000811631
  Prefactor  = 0.0001
  Prefactor  = 5.91665
  Prefactor  = 0.00781788
  Prefactor  = 4.77158
  Prefactor  = 5.43555
  Prefactor  = 1.29007
  Prefactor  = 1.95624
  norm       = 1.74003
  Prefactor  = 3.22138
  norm       = 4.10648
  Prefactor  = 3.19661
  Prefactor  = 6.1829
  Prefactor  = 2.51803
  Normalizat = 0.234997
  Prefactor  = 1.27097
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   379.8143     FROM HESSE     STATUS=FAILED        71 CALLS      829 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    92.253        .10802E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     76.177        89.608        .11198E-02   -1.3960    
   3  norm          .10310E-03    475.57        .70787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     127.03        117.89        .89512E-03   -1.3449    
   5  Prefactor     1653.6        2063.8        .28160E-02   -.73324    
   6  Prefactor     45.035        53.007        .15323E-02   -1.4365    
   7  norm          .10017E-03    105.86        .91234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    95.849        .90752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    70.904        .91500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .12049E-01    2046.5        .53586E-02   -1.5730    
  11  Prefactor     .39922E-03    1627.3        .63271E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .81163E-03    6320.4        .34274E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    368.41        .90815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9166        6261.2        .34554E-02   -1.5221    
  15  Prefactor     .78179E-02    2078.7        .50719E-02   -1.5690    
  16  Prefactor     533.83        529.01         .0000       -1.5271    
  17  Prefactor     5.4356        1.0043         .0000       -1.5242    
  18  Prefactor     1.2901        1.1071         .0000       -1.5481    
  19  Prefactor     1.9562        1.0371         .0000       -1.5428    
  20  norm          1.7400        1.0487         .0000       -1.5444    
  21  Prefactor     3.2214        1.0126         .0000       -1.5349    
  22  norm          4.1065        1.0076         .0000       -1.5303    
  23  Prefactor     3.1966        1.0128         .0000       -1.5350    
  24  Prefactor     6.1829        1.0033         .0000       -1.5211    
  25  Prefactor     2.5180        1.0212         .0000       -1.5391    
  26  Normalizat    .23500        .47281        .64726E-04   -1.2695    
  27  Prefactor     1.2710        .98665       -.45651E-04   -.84174    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.13077e-10
Minuit parameter uncertainties:
  1  0.00243604
  2  89.7677
  3  0.0774105
  4  118.108
  5  2188.14
  6  53.0626
  7  0.00855993
  8  0.0033634
  9  0.00219496
  10  10.2628
  11  1.43653
  12  2.87811
  13  0.000402255
  14  1283.47
  15  8.31797
  16  1.0056
  17  1.00429
  18  1.10711
  19  1.0371
  20  1.04876
  21  1.01258
  22  1.00761
  23  1.01279
  24  1.00331
  25  1.02121
  26  0.481214
  27  1.00168
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 379.814267911

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  4.504e+01  5.306e+01  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.271e+00  1.002e+00  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:  2.350e-01  4.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.93
Ra Dec: 31.218 15.233
Photon Flux Upper Limit: 2.78e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.13e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/84636/likelihoodResults_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.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) = 379.737607873
delta logL = 0.0766600382099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 379.734307065
delta logL = 0.0799608462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.038       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7574       1.0000          .0000       10.000    
     3 'Normalizat'    .17396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3006       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=   379.7343     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      282 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.087        59.114        .71919E-04    .67761E-04
   2  Index         2.7584        1.2422        .30309E-02    .25521E-04
   3  Normalizat    .17311        1.4255        .75347E-03    .16644E-04
   4  Prefactor     1.3007        .67284        .19438E-03    .85100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0875
  Index      = 2.75845
  Normalizat = 0.173106
  Prefactor  = 1.30066
 **********
 **   18 **HESSE 
 **********

 FCN=   379.7343     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.087        56.679        .14384E-04   -1.4592    
   2  Index         2.7584        1.1918        .12124E-03   -.46487    
   3  Normalizat    .17311        1.4156        .30139E-04   -1.3145    
   4  Prefactor     1.3007        .67009        .38877E-04   -.83287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47217e-11
Minuit parameter uncertainties:
  1  56.7777
  2  1.20636
  3  0.994456
  4  0.674599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84636': 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) = 379.734303178
delta logL = 0.079964733091

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  3.109e+01  5.678e+01  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.758e+00  1.206e+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:  1.301e+00  6.746e-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.731e-01  9.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 31.218 15.233
Photon Index (Free Index): 2.76 +/- 1.21
Photon Flux (Free Index): 9.59e-07 +/- 1.26e-06
Energy Flux (Free Index): 2.21e-04 +/- 2.58e-04

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/84636/cmap_HighResolution_627091201_627350401_4FGL_J0204.8+1513_daily_bin1496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-01', comment='SUCCESS', energy_flux2='2.21e-04', dlogl='8.00e-02', photon_flux2='9.59e-07', job_status='DONE', time_completed='2021-08-15 05:44:59.802885', photon_index_error2='1.21', photon_index2='2.76', ts='0.93', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='2.78e-06', energy_flux_error2='2.58e-04', EG='0.23', time_epoch_completed='1629031499.8', return_code='101', job_id='84636', GAL2='1.30', EG2='0.17', return_code2='0', photon_flux_error2='1.26e-06', ts2='1.09', photon_index='2.31' WHERE bin_id='1496' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 05:44:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 84636: <4FGL_J0204.8+1513_daily_bin1496> in cluster <slac> Done

Job <4FGL_J0204.8+1513_daily_bin1496> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 05:35:40 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:36:21 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:36:21 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_bin1496 31.2182 15.2326 627091201 627350401 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 :                                   475.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             356.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            561 sec.

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

