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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin698
RA = 155.788, Dec = 39.8226
tmin = 420249601, tmax = 420508801
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='836880', job_status='RUN', time_executed='2021-09-01 19:20:35.268538', time_epoch_executed='1630549235.27' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/836880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/836880/ft1_4FGL_J1023.1+3949_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/836880/ft2_4FGL_J1023.1+3949_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/836880/ft1_4FGL_J1023.1+3949_daily_bin698.fits outfile=/scratch/kocevski/836880/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin698.fits ra=155.788 dec=39.8226 rad=12.0 tmin=420249601.0 tmax=420508801.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.38
user 3.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/836880/ft2_4FGL_J1023.1+3949_daily_bin698.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/836880/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin698.fits evtable="EVENTS" outfile="/scratch/kocevski/836880/ft1_filtered_4FGL_J1023.1+3949_daily_bin698.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/836880/ft1_filtered_4FGL_J1023.1+3949_daily_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/836880/ft2_4FGL_J1023.1+3949_daily_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/836880/ltcube_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.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/836880/ft2_4FGL_J1023.1+3949_daily_bin698.fits
.....................!
real 12.38
user 12.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/836880/ft1_filtered_4FGL_J1023.1+3949_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/836880/ft2_4FGL_J1023.1+3949_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/836880/ltcube_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.fits outfile=/scratch/kocevski/836880/expmap_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.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/836880/ltcube_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.fits
.....................!
real 190.91
user 186.89
sys 3.67

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/836880/ft1_filtered_4FGL_J1023.1+3949_daily_bin698.fits scfile=/scratch/kocevski/836880/ft2_4FGL_J1023.1+3949_daily_bin698.fits outfile=/scratch/kocevski/836880/cmap_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/836880/ft1_filtered_4FGL_J1023.1+3949_daily_bin698.fits scfile=/scratch/kocevski/836880/ft2_4FGL_J1023.1+3949_daily_bin698.fits outfile=/scratch/kocevski/836880/cmap_HighResolution_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.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/836880/ft1_filtered_4FGL_J1023.1+3949_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/836880/ft2_4FGL_J1023.1+3949_daily_bin698.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/836880/Model_4FGL_J1023.1+3949_daily_bin698.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/836880/ft1_filtered_4FGL_J1023.1+3949_daily_bin698.fits.....................!
real 54.56
user 53.24
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/836880/ft1_filtered_4FGL_J1023.1+3949_daily_bin698.fits', '/scratch/kocevski/836880/ft2_4FGL_J1023.1+3949_daily_bin698.fits', expMap='/scratch/kocevski/836880/expmap_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.fits', expCube='/scratch/kocevski/836880/ltcube_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/836880/Model_4FGL_J1023.1+3949_daily_bin698.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/836880/ft1_filtered_4FGL_J1023.1+3949_daily_bin698.fits
Spacecraft file(s): /scratch/kocevski/836880/ft2_4FGL_J1023.1+3949_daily_bin698.fits
Exposure map: /scratch/kocevski/836880/expmap_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.fits
Exposure cube: /scratch/kocevski/836880/ltcube_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/836880/Model_4FGL_J1023.1+3949_daily_bin698.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) = 6590.76164711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .73735E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.626       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.608       1.0000         .10000E-03   10000.    
     7 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6275       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.885       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13064E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.410       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .51040       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5343       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.091       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13007E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    5.1517       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.105       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .40940E-01   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91424       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1221       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=   6590.744     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3612 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.693       -.45365E-06** at limit **
   2  Prefactor     .64134E-01    1.2044       -.29874E-06    .14593E-03
   3  norm          .10000E-03    13.021        .47672E-06** at limit **
   4  Prefactor     .10000E-03    8.1312       -.50667E-07** at limit **
   5  Prefactor     16.627        25.532       -.19075E-06    .19297E-05
   6  Prefactor     11.614        11.941       -.35743E-06   -.48133E-04
   7  norm          .10000E-03    6.3582        .92776E-09** at limit **
   8  Prefactor     .48889        7.4212       -.16229E-05   -.74893E-04
   9  Prefactor     1.6275        1.9603       -.10182E-06   -.25804E-03
  10  Prefactor     .10000E-03    1.7389       -.30451E-07** at limit **
  11  Prefactor     .10000E-03    7.9325        .87296E-08** at limit **
  12  norm          10.885        4.2766        .35044E-07    .38279E-03
  13  Prefactor     .10000E-03    1.5868       -.19078E-07** at limit **
  14  norm          14.786        9.9125        .82706E-06   -.17779E-03
  15  Prefactor     .10000E-03    77.897       -.24457E-05** at limit **
  16  Prefactor     25.408        23.639        .33268E-06    .15224E-04
  17  Prefactor     .50760        4.0447        .18637E-05   -.44958E-03
  18  Prefactor     .10000E-03    2.0944        .11873E-06** at limit **
  19  Prefactor     2.5938        107.94       -.47744E-04   -.84105E-04
  20  Prefactor     .10000E-03    30.173        .35989E-06** at limit **
  21  Prefactor     10.085        30.731        .48318E-05   -.26524E-04
  22  Prefactor     .10000E-03    332.35        .22024E-04** at limit **
  23  norm          5.1516        .60058        .40106E-07   -.12318E-02
  24  Prefactor     20.096        20.610       -.23863E-05   -.21406E-03
  25  Prefactor     .10000E-03    14.033        .10890E-06** at limit **
  26  norm          .58484E-01    8.0537        .17752E-05   -.59523E-03
  27  Normalizat    .91428        .17352        .10763E-05   -.65490E-04
  28  Prefactor     1.1220        .21024        .62158E-07   -.80086E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0641343
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6268
  Prefactor  = 11.6142
  norm       = 0.0001
  Prefactor  = 0.488889
  Prefactor  = 1.62748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8849
  Prefactor  = 0.0001
  norm       = 14.7855
  Prefactor  = 0.0001
  Prefactor  = 25.4079
  Prefactor  = 0.507602
  Prefactor  = 0.0001
  Prefactor  = 2.59375
  Prefactor  = 0.0001
  Prefactor  = 10.0848
  Prefactor  = 0.000100001
  norm       = 5.15163
  Prefactor  = 20.096
  Prefactor  = 0.0001
  norm       = 0.0584836
  Normalizat = 0.914283
  Prefactor  = 1.12204
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.744     FROM HESSE     STATUS=OK           535 CALLS     4147 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .64134E-01    22.613        .17099E-02   -1.5657    
   3  norm          .10000E-03    13.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.627        25.538        .98225E-04   -1.4892    
   6  Prefactor     11.614        11.960        .11758E-03   -1.5026    
   7  norm          .10000E-03    6.3978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .48889        34.840        .40259E-02   -1.5568    
   9  Prefactor     1.6275        1.9469        .12098E-03   -1.5453    
  10  Prefactor     .10000E-03    1.7717        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.885        4.2672        .98201E-04   -1.5048    
  13  Prefactor     .10000E-03    1.6091        .99817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.786        9.8140        .10418E-03   -1.4939    
  15  Prefactor     .10000E-03    78.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.408        23.586        .79468E-04   -1.4699    
  17  Prefactor     .50760        7.2194        .27373E-02   -1.5565    
  18  Prefactor     .10000E-03    2.1134        .11457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5938        104.22        .25656E-03   -1.5386    
  20  Prefactor     .10000E-03    30.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.085        30.664        .12614E-03   -1.5073    
  22  Prefactor     .10000E-03    340.32        .41159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.1516        .60316        .19897E-04   -1.5254    
  24  Prefactor     20.096        20.669        .89327E-04   -1.4811    
  25  Prefactor     .10000E-03    14.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .58484E-01    9.3660        .78271E-01   -1.5660    
  27  Normalizat    .91428        .20525        .25559E-03   -.95960    
  28  Prefactor     1.1220        .24899        .30014E-03   -.88765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48608e-08
Minuit parameter uncertainties:
  1  1.95534e-06
  2  2.4076
  3  5.65562e-06
  4  2.29657e-06
  5  25.5546
  6  11.9625
  7  5.1541e-06
  8  8.25834
  9  1.94702
  10  1.79759e-06
  11  4.25451e-06
  12  4.26731
  13  9.58639e-07
  14  9.81508
  15  7.36292e-05
  16  23.5943
  17  3.82879
  18  1.77174e-05
  19  32.9436
  20  4.92022e-06
  21  30.7116
  22  0.00134176
  23  0.603162
  24  20.6759
  25  2.04726e-05
  26  1.47918
  27  0.205428
  28  0.249247
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.479e+01  9.815e+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:  1.122e+00  2.492e-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:  9.143e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.96
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 9.76e-06

TS (Fixed Index): 3.96
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/836880/likelihoodResults_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.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) = 6590.38322028
delta logL = 0.360395204515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6590.37796892
delta logL = 0.365646564876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.224       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7172       1.0000          .0000       5.0000    
     3 'Normalizat'    .93509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1040       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.

 FCN=   6590.378     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.224        9.6562        .26550E-02    .16814E-02
   2  alpha         1.7172        .45933        .39362       -.35500E-04
   3  Normalizat    .93509        .16146        .45348E-01    .12845E-04
   4  Prefactor     1.1041        .20814        .68287E-01    .10164E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2239
  alpha      = 1.7172
  Normalizat = 0.935088
  Prefactor  = 1.10405
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.378     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.224        10.399        .10620E-03   -1.4953    
   2  alpha         1.7172        .57674        .14866E-01   -.31848    
   3  Normalizat    .93509        .19074        .25302E-03   -.95238    
   4  Prefactor     1.1041        .24509        .30210E-03   -.89337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0492e-09
Minuit parameter uncertainties:
  1  10.4
  2  0.582564
  3  0.190878
  4  0.245338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/836880': 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) = 6590.37796891
delta logL = 0.36564657164

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.422e+01  1.040e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  1.717e+00  5.826e-01  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:  1.104e+00  2.453e-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:  9.351e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 155.788 39.823
Photon Index (Free Index): 1.72 +/- 0.58
Photon Flux (Free Index): 2.87e-08 +/- 2.49e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/836880/cmap_HighResolution_420249601_420508801_4FGL_J1023.1+3949_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='2.21e-05', photon_flux_error='2.79e-08', dlogl='3.66e-01', energy_flux='1.47e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2021-09-01 19:36:12.404537', photon_index_error2='0.58', photon_index2='1.72', ts='3.96', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.91e-05', EG='0.91', time_epoch_completed='1630550172.4', return_code='0', job_id='836880', GAL2='1.10', EG2='0.94', return_code2='0', energy_flux_error='9.76e-06', photon_flux_error2='2.49e-08', ts2='4.67', photon_index='2.25' WHERE bin_id='698' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:36:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 836880: <4FGL_J1023.1+3949_daily_bin698> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin698> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 19:20:16 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:20:18 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:20:18 2021
Terminated at Wed Sep  1 19:36:13 2021
Results reported at Wed Sep  1 19:36:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin698 155.788 39.8226 420249601 420508801 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 :                                   937.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            957 sec.

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

