/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 = 7440
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin174
RA = 155.788, Dec = 39.8226
tmin = 284428801, tmax = 284688001
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='834052', job_status='RUN', time_executed='2021-09-01 19:10:50.154342', time_epoch_executed='1630548650.15' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834052/ft1_4FGL_J1023.1+3949_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834052/ft1_4FGL_J1023.1+3949_daily_bin174.fits outfile=/scratch/kocevski/834052/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin174.fits ra=155.788 dec=39.8226 rad=12.0 tmin=284428801.0 tmax=284688001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.60
user 3.35
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.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/834052/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin174.fits evtable="EVENTS" outfile="/scratch/kocevski/834052/ft1_filtered_4FGL_J1023.1+3949_daily_bin174.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834052/ft1_filtered_4FGL_J1023.1+3949_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/834052/ltcube_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.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/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits
.....................!
real 12.21
user 11.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834052/ft1_filtered_4FGL_J1023.1+3949_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/834052/ltcube_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.fits outfile=/scratch/kocevski/834052/expmap_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.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/834052/ltcube_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.fits
.....................!
real 190.21
user 185.48
sys 4.27

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1023.1+3949 @ 155.788 39.8226

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/834052/ft1_filtered_4FGL_J1023.1+3949_daily_bin174.fits scfile=/scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits outfile=/scratch/kocevski/834052/cmap_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.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=155.788 yref=39.8226 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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834052/ft1_filtered_4FGL_J1023.1+3949_daily_bin174.fits scfile=/scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits outfile=/scratch/kocevski/834052/cmap_HighResolution_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.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=155.788 yref=39.8226 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834052/ft1_filtered_4FGL_J1023.1+3949_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834052/Model_4FGL_J1023.1+3949_daily_bin174.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/834052/ft1_filtered_4FGL_J1023.1+3949_daily_bin174.fits.....................!
real 49.97
user 48.66
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834052/ft1_filtered_4FGL_J1023.1+3949_daily_bin174.fits', '/scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits', expMap='/scratch/kocevski/834052/expmap_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.fits', expCube='/scratch/kocevski/834052/ltcube_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834052/Model_4FGL_J1023.1+3949_daily_bin174.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.1+3949'

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.888e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/834052/ft1_filtered_4FGL_J1023.1+3949_daily_bin174.fits
Spacecraft file(s): /scratch/kocevski/834052/ft2_4FGL_J1023.1+3949_daily_bin174.fits
Exposure map: /scratch/kocevski/834052/expmap_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.fits
Exposure cube: /scratch/kocevski/834052/ltcube_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834052/Model_4FGL_J1023.1+3949_daily_bin174.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) = 5859.43927707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    24.272       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .43749E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    94.323       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .55811       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .55978       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.341       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4567       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.3121       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5564       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9514       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.284       1.0000         .10000E-03   10000.    
    20 'Prefactor '    203.14       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7754       1.0000         .10000E-03   10000.    
    23 'norm      '    2.7658       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    78.914       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1365       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .63452       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5859.429     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3564 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1575       -.12989E-07** at limit **
   2  Prefactor     .10000E-03    2.4772       -.14228E-06** at limit **
   3  norm          24.249        22.028        .33138E-05   -.15949E-03
   4  Prefactor     .10029E-03    29.002       -.41244E-05** at limit **
   5  Prefactor     94.346        48.044        .12665E-05   -.84991E-04
   6  Prefactor     .10000E-03    5.6739       -.12010E-06** at limit **
   7  norm          .55065        9.8939       -.12055E-06   -.12020E-07
   8  Prefactor     .10000E-03    3.1016        .19250E-07** at limit **
   9  Prefactor     .10000E-03    .96224       -.23654E-07** at limit **
  10  Prefactor     .56015        4.4011        .14112E-05   -.37711E-03
  11  Prefactor     14.337        26.290        .83959E-06   -.21539E-05
  12  norm          5.4565        2.5654       -.16190E-07    .31867E-04
  13  Prefactor     .10000E-03    2.0002       -.21487E-06** at limit **
  14  norm          9.3101        8.6668        .10671E-06   -.19160E-04
  15  Prefactor     .10000E-03    31.319       -.74655E-07** at limit **
  16  Prefactor     2.0844        516.38       -.96454E-05   -.63798E-05
  17  Prefactor     1.5556        3.1842        .31021E-06   -.74496E-04
  18  Prefactor     3.9406        10.130        .10688E-05   -.31680E-04
  19  Prefactor     71.242        46.959       -.24621E-05   -.73936E-04
  20  Prefactor     203.20        124.38        .52182E-05    .51120E-04
  21  Prefactor     .10000E-03    34.788       -.41536E-07** at limit **
  22  Prefactor     3.7790        710.45        .23880E-05   -.22485E-06
  23  norm          2.7656        .45454        .92270E-09    .48072E-05
  24  Prefactor     .10000E-03    8.5944        .10598E-06** at limit **
  25  Prefactor     .10000E-03    5.1865       -.60215E-08** at limit **
  26  norm          78.903        25.629        .53771E-06    .44606E-04
  27  Normalizat    1.1366        .19059       -.46433E-07   -.16573E-04
  28  Prefactor     .63438        .21665        .15434E-06   -.52151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 24.2491
  Prefactor  = 0.000100287
  Prefactor  = 94.3458
  Prefactor  = 0.0001
  norm       = 0.550655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.560152
  Prefactor  = 14.3371
  norm       = 5.45648
  Prefactor  = 0.0001
  norm       = 9.3101
  Prefactor  = 0.0001
  Prefactor  = 2.0844
  Prefactor  = 1.55557
  Prefactor  = 3.94063
  Prefactor  = 71.2418
  Prefactor  = 203.204
  Prefactor  = 0.0001
  Prefactor  = 3.77901
  norm       = 2.76562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 78.903
  Normalizat = 1.13659
  Prefactor  = 0.634378
 **********
 **   18 **HESSE 
 **********

 FCN=   5859.429     FROM HESSE     STATUS=OK           521 CALLS     4085 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1791        .16976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5660        .23509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.249        21.998        .81306E-04   -1.4723    
   4  Prefactor     .10029E-03    158.61        .71481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     94.346        48.131        .41382E-04   -1.3762    
   6  Prefactor     .10000E-03    5.7129        .17803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55065        59.209        .45276E-02   -1.5560    
   8  Prefactor     .10000E-03    3.1271        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .96702        .73317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .56015        4.3691        .29746E-03   -1.5558    
  11  Prefactor     14.337        26.314        .10577E-03   -1.4950    
  12  norm          5.4565        2.5660        .81684E-04   -1.5241    
  13  Prefactor     .10000E-03    2.0091        .10538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.3101        8.6402        .13133E-03   -1.5098    
  15  Prefactor     .10000E-03    31.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0844        362.78        .30442E-03   -1.5419    
  17  Prefactor     1.5556        3.1291        .18506E-03   -1.5459    
  18  Prefactor     3.9406        8.4951        .19835E-03   -1.5311    
  19  Prefactor     71.242        46.449        .23774E-03   -1.4018    
  20  Prefactor     203.20        124.61        .14177E-03   -1.2847    
  21  Prefactor     .10000E-03    35.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.7790        709.30        .20777E-03   -1.5319    
  23  norm          2.7656        .45502        .20144E-04   -1.5375    
  24  Prefactor     .10000E-03    8.6056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.1886        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          78.903        25.599        .45208E-04   -1.3929    
  27  Normalizat    1.1366        .21978        .22708E-03   -.88585    
  28  Prefactor     .63438        .24763        .35445E-03   -1.0616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58319e-08
Minuit parameter uncertainties:
  1  3.30577e-07
  2  2.65826e-06
  3  22.0057
  4  0.0135383
  5  48.1505
  6  4.37655e-06
  7  11.4305
  8  5.53957e-07
  9  1.16105e-07
  10  3.12883
  11  26.3357
  12  2.56609
  13  7.09255e-06
  14  8.64139
  15  2.50905e-06
  16  55.3404
  17  3.12938
  18  8.49773
  19  46.4731
  20  124.771
  21  1.18844e-05
  22  104.83
  23  0.455016
  24  1.49613e-05
  25  3.10681e-06
  26  25.6021
  27  0.219953
  28  0.248061
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.310e+00  8.641e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  6.344e-01  2.481e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.137e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.65e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 9.26e-06 +/- 8.59e-06

TS (Fixed Index): 2.43
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 8.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834052/likelihoodResults_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.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) = 5859.38830704
delta logL = 0.0405072755884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5859.37925644
delta logL = 0.049557877971

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1100       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8934       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62587       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5859.379     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1125        9.1096        .24958E-05   -.47143E-03
   2  alpha         1.8933        1.0484        .70327E-04    .11959E-04
   3  Normalizat    1.1479        .18147       -.19766E-05   -.32607E-03
   4  Prefactor     .62580        .21630        .18516E-05   -.16656E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.11252
  alpha      = 1.89327
  Normalizat = 1.14795
  Prefactor  = 0.625798
 **********
 **   18 **HESSE 
 **********

 FCN=   5859.379     FROM HESSE     STATUS=OK            29 CALLS      237 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1125        8.8833        .14079E-03   -1.5138    
   2  alpha         1.8933        1.0225        .22787E-01   -.24514    
   3  Normalizat    1.1479        .20663        .22613E-03   -.88227    
   4  Prefactor     .62580        .24620        .35667E-03   -1.0651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44787e-10
Minuit parameter uncertainties:
  1  8.8847
  2  1.05549
  3  0.206773
  4  0.246627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834052': 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) = 5859.3792563
delta logL = 0.0495580136903

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  8.113e+00  8.885e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  1.893e+00  1.055e+00  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  6.258e-01  2.466e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.148e+00  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 155.788 39.823
Photon Index (Free Index): 1.89 +/- 1.06
Photon Flux (Free Index): 1.79e-08 +/- 2.71e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.08e-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/834052/cmap_HighResolution_284428801_284688001_4FGL_J1023.1+3949_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-05', comment='SUCCESS', photon_flux='2.65e-08', energy_flux2='1.01e-05', photon_flux_error='2.46e-08', dlogl='4.96e-02', energy_flux='9.26e-06', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-01 19:24:23.378516', photon_index_error2='1.06', photon_index2='1.89', ts='2.43', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='8.83e-08', energy_flux_error2='1.08e-05', EG='1.14', time_epoch_completed='1630549463.38', return_code='0', job_id='834052', GAL2='0.63', EG2='1.15', return_code2='0', energy_flux_error='8.59e-06', photon_flux_error2='2.71e-08', ts2='2.53', photon_index='2.25' WHERE bin_id='174' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:24:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 834052: <4FGL_J1023.1+3949_daily_bin174> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin174> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:10:33 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:10:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 19:10:35 2021
Terminated at Wed Sep  1 19:24:24 2021
Results reported at Wed Sep  1 19:24:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin174 155.788 39.8226 284428801 284688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.1+3949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   809.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             372.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

