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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin483
RA = 155.788, Dec = 39.8226
tmin = 364521601, tmax = 364780801
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='835514', job_status='RUN', time_executed='2021-09-01 19:15:38.584643', time_epoch_executed='1630548938.58' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835514

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835514/ft1_4FGL_J1023.1+3949_daily_bin483.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835514/ft2_4FGL_J1023.1+3949_daily_bin483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835514/ft1_4FGL_J1023.1+3949_daily_bin483.fits outfile=/scratch/kocevski/835514/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin483.fits ra=155.788 dec=39.8226 rad=12.0 tmin=364521601.0 tmax=364780801.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.32
user 3.10
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835514/ft2_4FGL_J1023.1+3949_daily_bin483.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/835514/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin483.fits evtable="EVENTS" outfile="/scratch/kocevski/835514/ft1_filtered_4FGL_J1023.1+3949_daily_bin483.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835514/ft1_filtered_4FGL_J1023.1+3949_daily_bin483.fits" evtable="EVENTS" scfile=/scratch/kocevski/835514/ft2_4FGL_J1023.1+3949_daily_bin483.fits sctable="SC_DATA" outfile=/scratch/kocevski/835514/ltcube_364521601_364780801_4FGL_J1023.1+3949_daily_bin483.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/835514/ft2_4FGL_J1023.1+3949_daily_bin483.fits
.....................!
real 12.01
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835514/ft1_filtered_4FGL_J1023.1+3949_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/835514/ft2_4FGL_J1023.1+3949_daily_bin483.fits sctable="SC_DATA" expcube=/scratch/kocevski/835514/ltcube_364521601_364780801_4FGL_J1023.1+3949_daily_bin483.fits outfile=/scratch/kocevski/835514/expmap_364521601_364780801_4FGL_J1023.1+3949_daily_bin483.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/835514/ltcube_364521601_364780801_4FGL_J1023.1+3949_daily_bin483.fits
.....................!
real 192.14
user 186.43
sys 5.20

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/835514/ft1_filtered_4FGL_J1023.1+3949_daily_bin483.fits scfile=/scratch/kocevski/835514/ft2_4FGL_J1023.1+3949_daily_bin483.fits outfile=/scratch/kocevski/835514/cmap_364521601_364780801_4FGL_J1023.1+3949_daily_bin483.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835514/ft1_filtered_4FGL_J1023.1+3949_daily_bin483.fits scfile=/scratch/kocevski/835514/ft2_4FGL_J1023.1+3949_daily_bin483.fits outfile=/scratch/kocevski/835514/cmap_HighResolution_364521601_364780801_4FGL_J1023.1+3949_daily_bin483.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/835514/ft1_filtered_4FGL_J1023.1+3949_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/835514/ft2_4FGL_J1023.1+3949_daily_bin483.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835514/Model_4FGL_J1023.1+3949_daily_bin483.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/835514/ft1_filtered_4FGL_J1023.1+3949_daily_bin483.fits.....................!
real 51.55
user 50.03
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10730E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12828E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4498       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.5046       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3364       1.0000         .10000E-03   10000.    
    14 'norm      '    .64122       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36234E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28882E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .40036E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0638       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.534       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.440       1.0000         .10000E-03   10000.    
    26 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76732       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1313       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6109.353     FROM MIGRAD    STATUS=CONVERGED   1228 CALLS     4616 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.316        .18142E-02** at limit **
   2  Prefactor     .10000E-03    4.6230        .17465E-02** at limit **
   3  norm          1.1083        37.917        .45354E-03   -.11032E-03
   4  Prefactor     .10000E-03    9.4281        .18142E-02** at limit **
   5  Prefactor     .10000E-03    49.332        .36285E-03** at limit **
   6  Prefactor     .10000E-03    2.9712        .13146E-02** at limit **
   7  norm          18.335        13.517        .93547E-04   -.53594E-04
   8  Prefactor     .10000E-03    3.9114        .15045E-02** at limit **
   9  Prefactor     4.4504        2.6829        .48148E-03   -.81296E-03
  10  Prefactor     4.0740        4.2202        .12872E-03   -.18176E-03
  11  Prefactor     .10000E-03    13.675        .18142E-02** at limit **
  12  norm          9.5048        3.6537        .89488E-04   -.33349E-03
  13  Prefactor     3.3358        5.2633        .17535E-03   -.12260E-03
  14  norm          .66468        15.047        .36483E-02    .53142E-03
  15  Prefactor     .10000E-03    12.893        .18142E-02** at limit **
  16  Prefactor     48.942        30.628        .57321E-04   -.13090E-04
  17  Prefactor     .49055E-01    33.788        .19886E-02    .54809E-03
  18  Prefactor     .10000E-03    2.4413        .11862E-02** at limit **
  19  Prefactor     .10001E-03    15.478        .11002    ** at limit **
  20  Prefactor     .10000E-03    22.478        .18142E-02** at limit **
  21  Prefactor     .10000E-03    5.3232        .17611E-02** at limit **
  22  Prefactor     .10003E-03    217.35        .21263E-02** at limit **
  23  norm          4.0637        .57361        .19973E-04    .19922E-04
  24  Prefactor     15.538        16.938        .10162E-03    .35688E-04
  25  Prefactor     15.432        22.368        .10193E-03   -.44725E-04
  26  norm          .10000E-03    7.0950        .18142E-02** at limit **
  27  Normalizat    .76736        .19330        .25497E-03   -.11499E-03
  28  Prefactor     1.1312        .24566        .27789E-03   -.16244E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.3351
  Prefactor  = 0.0001
  Prefactor  = 4.45039
  Prefactor  = 4.074
  Prefactor  = 0.0001
  norm       = 9.50478
  Prefactor  = 3.33577
  norm       = 0.66468
  Prefactor  = 0.0001
  Prefactor  = 48.9424
  Prefactor  = 0.0490553
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  norm       = 4.06369
  Prefactor  = 15.5383
  Prefactor  = 15.4318
  norm       = 0.0001
  Normalizat = 0.767364
  Prefactor  = 1.13117
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.353     FROM HESSE     STATUS=OK           505 CALLS     5121 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6433        .34930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1083        37.894        .18142E-04   -1.5497    
   4  Prefactor     .10000E-03    9.4288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    49.334        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9713        .26291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.335        13.515        .37419E-05   -1.4851    
   8  Prefactor     .10000E-03    3.9120        .30090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4504        2.6826        .19259E-04   -1.5286    
  10  Prefactor     4.0740        4.2182        .51490E-05   -1.5304    
  11  Prefactor     .10000E-03    13.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.5048        3.6534        .17898E-04   -1.5091    
  13  Prefactor     3.3358        5.2605        .70140E-05   -1.5343    
  14  norm          .66468        14.906        .14593E-03   -1.5545    
  15  Prefactor     .10000E-03    12.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.942        30.615        .11464E-04   -1.4308    
  17  Prefactor     .49055E-01    34.495        .79542E-04   -1.5664    
  18  Prefactor     .10000E-03    2.4415        .23723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    15.493        .10976       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3233        .35222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    217.42        .42526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0637        .57361        .79893E-06   -1.5305    
  24  Prefactor     15.538        16.937        .40648E-05   -1.4919    
  25  Prefactor     15.432        22.365        .40772E-05   -1.4922    
  26  norm          .10000E-03    7.0964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .76736        .19321        .10199E-04   -1.0129    
  28  Prefactor     1.1312        .24587        .55578E-04   -.88477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60003e-09
Minuit parameter uncertainties:
  1  6.7591e-05
  2  1.89566e-06
  3  12.9693
  4  3.83381e-05
  5  0.000130731
  6  7.16772e-06
  7  13.5174
  8  2.44631e-05
  9  2.68271
  10  4.21847
  11  7.8259e-05
  12  3.65352
  13  5.2612
  14  6.2967
  15  7.15152e-05
  16  30.625
  17  2.60051
  18  9.86518e-06
  19  0.000566872
  20  9.40409e-05
  21  2.87766e-06
  22  0.0051731
  23  0.573611
  24  16.9419
  25  22.3776
  26  1.16637e-05
  27  0.193379
  28  0.246117
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  6.647e-01  6.297e+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.131e+00  2.461e-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:  7.674e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/835514/likelihoodResults_364521601_364780801_4FGL_J1023.1+3949_daily_bin483.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) = 6109.35205582
delta logL = 0.00073012215671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6109.35198766
delta logL = 0.000798276966634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66464       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3661       1.0000          .0000       5.0000    
     3 'Normalizat'    .76718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1313       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6109.352     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      266 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69477        17.567        .35992E-02    .14408E-03
   2  alpha         2.3779        3.6845        .87286E-01    .65690E-05
   3  Normalizat    .76700        .18564        .25502E-03   -.21665E-04
   4  Prefactor     1.1314        .24185        .27787E-03   -.25326E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.694772
  alpha      = 2.37795
  Normalizat = 0.767
  Prefactor  = 1.13137
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.352     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69477        13.534        .14397E-03   -1.5541    
   2  alpha         2.3779        3.6484        .34914E-02   -.48841E-01
   3  Normalizat    .76700        .18585        .10201E-04   -1.0130    
   4  Prefactor     1.1314        .24195        .11115E-04   -.88470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71403e-11
Minuit parameter uncertainties:
  1  6.13406
  2  3.16217
  3  0.186005
  4  0.242185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835514': 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) = 6109.3519674
delta logL = 0.000818542494926

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  6.948e-01  6.134e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.378e+00  3.162e+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:  1.131e+00  2.422e-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:  7.670e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 155.788 39.823

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/835514/cmap_HighResolution_364521601_364780801_4FGL_J1023.1+3949_daily_bin483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-01 19:31:38.645584', job_id='835514', GAL2='1.13', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630549898.65', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='8.19e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='483' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:31:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 835514: <4FGL_J1023.1+3949_daily_bin483> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin483> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:15:23 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:15:25 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:15:25 2021
Terminated at Wed Sep  1 19:31:39 2021
Results reported at Wed Sep  1 19:31:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin483 155.788 39.8226 364521601 364780801 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 :                                   955.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

