/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 7 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_bin1124
RA = 31.2182, Dec = 15.2326
tmin = 530668801, tmax = 530928001
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='82879', job_status='RUN', time_executed='2021-08-15 05:31:51.795837', time_epoch_executed='1629030711.8' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82879

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82879/ft1_4FGL_J0204.8+1513_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82879/ft2_4FGL_J0204.8+1513_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82879/ft1_4FGL_J0204.8+1513_daily_bin1124.fits outfile=/scratch/kocevski/82879/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1124.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=530668801.0 tmax=530928001.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 7.07
user 3.41
sys 3.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82879/ft1_filtered_4FGL_J0204.8+1513_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/82879/ft2_4FGL_J0204.8+1513_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/82879/ltcube_530668801_530928001_4FGL_J0204.8+1513_daily_bin1124.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/82879/ft2_4FGL_J0204.8+1513_daily_bin1124.fits
.....................!
real 16.63
user 12.48
sys 4.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82879/ft1_filtered_4FGL_J0204.8+1513_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/82879/ft2_4FGL_J0204.8+1513_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/82879/ltcube_530668801_530928001_4FGL_J0204.8+1513_daily_bin1124.fits outfile=/scratch/kocevski/82879/expmap_530668801_530928001_4FGL_J0204.8+1513_daily_bin1124.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/82879/ltcube_530668801_530928001_4FGL_J0204.8+1513_daily_bin1124.fits
.....................!
real 196.71
user 185.91
sys 9.56

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/82879/ft1_filtered_4FGL_J0204.8+1513_daily_bin1124.fits scfile=/scratch/kocevski/82879/ft2_4FGL_J0204.8+1513_daily_bin1124.fits outfile=/scratch/kocevski/82879/cmap_530668801_530928001_4FGL_J0204.8+1513_daily_bin1124.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=31.2182 yref=15.2326 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 3.82
user 0.36
sys 3.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82879/ft1_filtered_4FGL_J0204.8+1513_daily_bin1124.fits scfile=/scratch/kocevski/82879/ft2_4FGL_J0204.8+1513_daily_bin1124.fits outfile=/scratch/kocevski/82879/cmap_HighResolution_530668801_530928001_4FGL_J0204.8+1513_daily_bin1124.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=31.2182 yref=15.2326 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 3.79
user 0.37
sys 3.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8284       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4609       1.0000         .10000E-03   10000.    
    10 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.913       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4950       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .75502       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .12335E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.947       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78610       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98158       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=   6521.647     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     2800 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.312       -.83042E-06** at limit **
   2  Prefactor     .10000E-03    7.5466       -.16586E-06** at limit **
   3  norm          2.5990        28.007       -.68422E-05   -.88464E-04
   4  Prefactor     2.8287        6.0059        .62539E-06   -.40679E-03
   5  Prefactor     .10000E-03    190.71       -.20335E-04** at limit **
   6  Prefactor     .10000E-03    2.4668        .28954E-07** at limit **
   7  norm          .10000E-03    3.1438        .14207E-07** at limit **
   8  Prefactor     2.8677        3.6294        .20862E-06   -.16384E-04
   9  Prefactor     8.4606        3.9453       -.93194E-07    .50368E-04
  10  norm          .10000E-03    127.24        .92055E-04** at limit **
  11  Prefactor     46.912        33.446       -.15788E-05    .48272E-04
  12  Prefactor     23.998        35.980       -.34624E-04    .28429E-06
  13  Prefactor     5.4954        6.0157       -.12419E-06   -.33963E-04
  14  Prefactor     .10000E-03    83.339       -.34132E-04** at limit **
  15  Prefactor     .10000E-03    16.199        .25028E-05** at limit **
  16  Prefactor     .10000E-03    2.9017        .94869E-07** at limit **
  17  Prefactor     34.577        22.530       -.16402E-06    .32705E-04
  18  Prefactor     18.056        11.804       -.29427E-07    .10725E-03
  19  Prefactor     .10000E-03    5.6863        .41327E-07** at limit **
  20  norm          .75547        .49172        .14721E-06    .10874E-02
  21  Prefactor     .10000E-03    16.609       -.25389E-05** at limit **
  22  norm          .10000E-03    13.317       -.41957E-05** at limit **
  23  Prefactor     13.951        15.882        .13452E-05   -.39890E-05
  24  Prefactor     .10000E-03    13.804        .44207E-05** at limit **
  25  Prefactor     .10000E-03    33.609        .21817E-05** at limit **
  26  Normalizat    .78612        .19279        .50210E-05    .16300E-04
  27  Prefactor     .98164        .10821        .63537E-06    .10513E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59902
  Prefactor  = 2.82867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.86772
  Prefactor  = 8.46062
  norm       = 0.000100001
  Prefactor  = 46.912
  Prefactor  = 23.9977
  Prefactor  = 5.49539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.5775
  Prefactor  = 18.0555
  Prefactor  = 0.0001
  norm       = 0.755472
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.786118
  Prefactor  = 0.981641
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.647     FROM HESSE     STATUS=OK           480 CALLS     3280 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5990        28.070        .25259E-03   -1.5386    
   4  Prefactor     2.8287        5.9774        .24182E-03   -1.5372    
   5  Prefactor     .10000E-03    191.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5717        .24722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1697        .13974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8677        3.6214        .16784E-03   -1.5369    
   9  Prefactor     8.4606        3.9404        .99936E-04   -1.5126    
  10  norm          .10000E-03    127.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     46.912        33.449        .58541E-04   -1.4337    
  12  Prefactor     23.998        36.020        .81549E-04   -1.4728    
  13  Prefactor     5.4954        6.0100        .17140E-03   -1.5239    
  14  Prefactor     .10000E-03    83.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9123        .13431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.577        22.527        .68148E-04   -1.4531    
  18  Prefactor     18.056        11.800        .94247E-04   -1.4858    
  19  Prefactor     .10000E-03    5.7200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .75547        .48488        .42433E-04   -1.5534    
  21  Prefactor     .10000E-03    16.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.951        15.823        .10725E-03   -1.4961    
  24  Prefactor     .10000E-03    13.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78612        .21915        .33780E-03   -1.0059    
  27  Prefactor     .98164        .12439        .17269E-03   -.93344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69468e-10
Minuit parameter uncertainties:
  1  3.78491e-05
  2  3.39229e-05
  3  17.0925
  4  5.97868
  5  0.000145455
  6  8.02231e-06
  7  9.26311e-06
  8  3.62165
  9  3.94051
  10  0.000575682
  11  33.4624
  12  36.053
  13  6.01062
  14  1.55919e-05
  15  3.71986e-05
  16  1.07168e-05
  17  22.5321
  18  11.8015
  19  2.73421e-05
  20  0.484878
  21  2.65484e-06
  22  1.57298e-05
  23  15.8274
  24  4.24144e-06
  25  0.000114883
  26  0.219391
  27  0.124429
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  8.022e-06  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.816e-01  1.244e-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:  7.861e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 31.218 15.233
Photon Flux Upper Limit: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82879/likelihoodResults_530668801_530928001_4FGL_J0204.8+1513_daily_bin1124.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) = 6521.64853271
delta logL = -0.00185685254564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6521.6466763
delta logL = -4.44470970251e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3193       1.0000          .0000       10.000    
     3 'Normalizat'    .78602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98174       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=   6521.647     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.556        .90712E-02** at limit **
   2  Index         2.3239        8.6462        .50000       -.15661E-04
   3  Normalizat    .78612        .19489E-01    .76313E-01    .67738E-04
   4  Prefactor     .98164        .11090E-01    .46038E-01    .15839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.32389
  Normalizat = 0.786118
  Prefactor  = 0.981641
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.647     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7152        .24731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3239        6.1614        .50000       -.56477    
   3  Normalizat    .78612        .21406        .33780E-03   -1.0059    
   4  Prefactor     .98164        .12217        .17269E-03   -.93344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29683e-10
Minuit parameter uncertainties:
  1  0.000103294
  2  4.3382
  3  0.214292
  4  0.122204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82879': 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) = 6521.64667582
delta logL = 3.41469785781e-08

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  1.033e-04  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.324e+00  4.338e+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:  9.816e-01  1.222e-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:  7.861e-01  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 31.218 15.233

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/82879/cmap_HighResolution_530668801_530928001_4FGL_J0204.8+1513_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-08-15 05:45:10.828298', job_id='82879', GAL2='0.98', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1629031510.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1124' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 05:45:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 82879: <4FGL_J0204.8+1513_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1124 31.2182 15.2326 530668801 530928001 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 :                                   823.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            882 sec.

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

