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


Performing analysis on: 4FGL_J0204.8+1513_daily_bin1622
RA = 31.2182, Dec = 15.2326
tmin = 659750401, tmax = 660009601
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='158479', job_status='RUN', time_executed='2021-12-07 13:07:49.067955', time_epoch_executed='1638911269.07' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158479/ft1_4FGL_J0204.8+1513_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158479/ft2_4FGL_J0204.8+1513_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158479/ft1_4FGL_J0204.8+1513_daily_bin1622.fits outfile=/scratch/kocevski/158479/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1622.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=659750401.0 tmax=660009601.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 2.39
user 2.21
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158479/ft2_4FGL_J0204.8+1513_daily_bin1622.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/158479/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/158479/ft1_filtered_4FGL_J0204.8+1513_daily_bin1622.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158479/ft1_filtered_4FGL_J0204.8+1513_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/158479/ft2_4FGL_J0204.8+1513_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/158479/ltcube_659750401_660009601_4FGL_J0204.8+1513_daily_bin1622.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/158479/ft2_4FGL_J0204.8+1513_daily_bin1622.fits
.....................!
real 15.04
user 14.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158479/ft1_filtered_4FGL_J0204.8+1513_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/158479/ft2_4FGL_J0204.8+1513_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/158479/ltcube_659750401_660009601_4FGL_J0204.8+1513_daily_bin1622.fits outfile=/scratch/kocevski/158479/expmap_659750401_660009601_4FGL_J0204.8+1513_daily_bin1622.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/158479/ltcube_659750401_660009601_4FGL_J0204.8+1513_daily_bin1622.fits
.....................!
real 191.92
user 186.63
sys 4.81

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/158479/ft1_filtered_4FGL_J0204.8+1513_daily_bin1622.fits scfile=/scratch/kocevski/158479/ft2_4FGL_J0204.8+1513_daily_bin1622.fits outfile=/scratch/kocevski/158479/cmap_659750401_660009601_4FGL_J0204.8+1513_daily_bin1622.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158479/ft1_filtered_4FGL_J0204.8+1513_daily_bin1622.fits scfile=/scratch/kocevski/158479/ft2_4FGL_J0204.8+1513_daily_bin1622.fits outfile=/scratch/kocevski/158479/cmap_HighResolution_659750401_660009601_4FGL_J0204.8+1513_daily_bin1622.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6793       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.137       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13341E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0419       1.0000         .10000E-03   10000.    
     7 'norm      '    .10708E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10587E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.743       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.866       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14896E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.553       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .25572       1.0000         .10000E-03   10000.    
    21 'Prefactor '    182.78       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.191       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    294.18       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5073       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77416       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=   1571.790     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3767 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.620        118.48       -.45583E-05   -.18827E-04
   2  Prefactor     6.6775        47.921        .19279E-05    .53778E-05
   3  norm          .10000E-03    33.238       -.51993E-05** at limit **
   4  Prefactor     25.137        21.337        .34572E-06   -.39127E-04
   5  Prefactor     .10000E-03    312.33       -.27620E-05** at limit **
   6  Prefactor     7.0420        7.3451       -.11356E-06   -.18447E-04
   7  norm          .10000E-03    30.395        .40373E-05** at limit **
   8  Prefactor     .10000E-03    10.955        .10677E-06** at limit **
   9  Prefactor     .10000E-03    3.9853        .60180E-07** at limit **
  10  norm          .10001E-03    239.06        .14160E-04** at limit **
  11  Prefactor     .10000E-03    72.201        .21187E-05** at limit **
  12  Prefactor     32.745        417.75       -.15947E-04    .24181E-04
  13  Prefactor     25.867        32.139       -.14616E-05    .11998E-04
  14  Prefactor     .10000E-03    130.43        .21657E-05** at limit **
  15  Prefactor     .10002E-03    399.21       -.28241E-04** at limit **
  16  Prefactor     .10000E-03    39.292        .29514E-05** at limit **
  17  Prefactor     .10000E-03    134.14        .41815E-05** at limit **
  18  Prefactor     52.551        43.218       -.50365E-08   -.40404E-05
  19  Prefactor     .10001E-03    131.54        .48914E-05** at limit **
  20  norm          .25246        8.5340        .78571E-06    .92930E-03
  21  Prefactor     182.76        194.41       -.27254E-05    .67531E-05
  22  norm          .10000E-03    22.039        .35573E-07** at limit **
  23  Prefactor     21.368        746.76       -.40609E-04    .47192E-04
  24  Prefactor     .10000E-03    93.469       -.87820E-05** at limit **
  25  Prefactor     294.11        321.69       -.14559E-05    .29399E-04
  26  Normalizat    1.5071        .45768       -.70024E-06    .76231E-05
  27  Prefactor     .77433        .26913       -.94689E-06    .64546E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6197
  Prefactor  = 6.67753
  norm       = 0.000100001
  Prefactor  = 25.1372
  Prefactor  = 0.0001
  Prefactor  = 7.04199
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 32.7447
  Prefactor  = 25.8668
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 52.551
  Prefactor  = 0.000100005
  norm       = 0.252459
  Prefactor  = 182.764
  norm       = 0.0001
  Prefactor  = 21.3676
  Prefactor  = 0.000100002
  Prefactor  = 294.114
  Normalizat = 1.50713
  Prefactor  = 0.774328
 **********
 **   18 **HESSE 
 **********

 FCN=   1571.790     FROM HESSE     STATUS=OK           476 CALLS     4243 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.620        118.62        .62114E-04   -1.4417    
   2  Prefactor     6.6775        48.266        .15526E-03   -1.5191    
   3  norm          .10000E-03    33.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.137        21.337        .79897E-04   -1.4705    
   5  Prefactor     .10000E-03    312.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0420        7.3434        .10519E-03   -1.5177    
   7  norm          .10000E-03    31.479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.957        .12819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0071        .77290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    239.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    72.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.745        414.58        .70027E-04   -1.4563    
  13  Prefactor     25.867        32.208        .78767E-04   -1.4690    
  14  Prefactor     .10000E-03    130.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    402.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    134.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.551        43.231        .55325E-04   -1.4257    
  19  Prefactor     .10001E-03    132.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .25246        17.100        .15670E-02   -1.5607    
  21  Prefactor     182.76        194.45        .29861E-04   -1.2996    
  22  norm          .10000E-03    22.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.368        873.85        .87010E-04   -1.4783    
  24  Prefactor     .10000E-03    93.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     294.11        322.82        .11836E-03   -1.2261    
  26  Normalizat    1.5071        .52628        .30104E-03   -.77578    
  27  Prefactor     .77433        .31062        .23140E-03   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57518e-09
Minuit parameter uncertainties:
  1  119.302
  2  35.946
  3  0.00030235
  4  21.3436
  5  0.000518864
  6  7.34432
  7  0.00017165
  8  8.71377e-06
  9  5.44569e-06
  10  0.00240516
  11  0.000226864
  12  235.064
  13  32.2299
  14  0.000302986
  15  0.00598484
  16  0.000356591
  17  0.000567196
  18  43.2565
  19  0.0016962
  20  4.15591
  21  195.14
  22  1.12395e-05
  23  277.752
  24  0.000901321
  25  324.821
  26  0.528205
  27  0.311326
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  7.042e+00  7.344e+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:  7.743e-01  3.113e-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.507e+00  5.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.15
Ra Dec: 31.218 15.233
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 1.10e-07
Energy Flux (Fixed Index): 3.90e-05 +/- 4.07e-05

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

Saving results to:
/scratch/kocevski/158479/likelihoodResults_659750401_660009601_4FGL_J0204.8+1513_daily_bin1622.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) = 1571.56170187
delta logL = 0.228227125215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1571.53470575
delta logL = 0.255223249683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9982       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8012       1.0000          .0000       10.000    
     3 'Normalizat'    1.5357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76394       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=   1571.535     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0043        10.363        .33404E-02   -.23935E-05
   2  Index         1.8018        .68968        .14818       -.33796E-05
   3  Normalizat    1.5358        .44224        .67546E-01   -.37214E-06
   4  Prefactor     .76388        .25508        .43246E-01    .11449E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.00427
  Index      = 1.80178
  Normalizat = 1.53582
  Prefactor  = 0.763879
 **********
 **   18 **HESSE 
 **********

 FCN=   1571.535     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0043        9.1326        .11675E-03   -1.5108    
   2  Index         1.8018        .65082        .61071E-02   -.69403    
   3  Normalizat    1.5358        .49974        .29877E-03   -.76777    
   4  Prefactor     .76388        .28880        .23276E-03   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16586e-12
Minuit parameter uncertainties:
  1  9.13399
  2  0.653975
  3  0.501361
  4  0.289372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158479': 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) = 1571.53470514
delta logL = 0.255223864516

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  9.004e+00  9.134e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  1.802e+00  6.540e-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:  7.639e-01  2.894e-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.536e+00  5.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 31.218 15.233
Photon Index (Free Index): 1.80 +/- 0.65
Photon Flux (Free Index): 6.83e-08 +/- 8.54e-08
Energy Flux (Free Index): 8.13e-05 +/- 1.29e-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/158479/cmap_HighResolution_659750401_660009601_4FGL_J0204.8+1513_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-02', comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='8.13e-05', photon_flux_error='1.10e-07', dlogl='2.55e-01', energy_flux='3.90e-05', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-12-07 13:14:55.570415', photon_index_error2='0.65', photon_index2='1.80', ts='2.15', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='4.10e-07', energy_flux_error2='1.29e-04', EG='1.51', time_epoch_completed='1638911695.57', return_code='0', job_id='158479', GAL2='0.76', EG2='1.54', return_code2='0', energy_flux_error='4.07e-05', photon_flux_error2='8.54e-08', ts2='2.67', photon_index='2.31' WHERE bin_id='1622' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:14:55 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 158479: <4FGL_J0204.8+1513_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0204.8+1513_daily_bin1622> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 13:05:26 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:05:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:05:47 2021
Terminated at Tue Dec  7 13:14:56 2021
Results reported at Tue Dec  7 13:14:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1622 31.2182 15.2326 659750401 660009601 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 :                                   426.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   548 sec.
    Turnaround time :                            570 sec.

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

