/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 6 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin679
RA = 155.788, Dec = 39.8226
tmin = 415324801, tmax = 415584001
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='835820', job_status='RUN', time_executed='2021-09-01 19:16:06.929675', time_epoch_executed='1630548966.93' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835820/ft1_4FGL_J1023.1+3949_daily_bin679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835820/ft2_4FGL_J1023.1+3949_daily_bin679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835820/ft1_4FGL_J1023.1+3949_daily_bin679.fits outfile=/scratch/kocevski/835820/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin679.fits ra=155.788 dec=39.8226 rad=12.0 tmin=415324801.0 tmax=415584001.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 6.10
user 5.86
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835820/ft2_4FGL_J1023.1+3949_daily_bin679.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/835820/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin679.fits evtable="EVENTS" outfile="/scratch/kocevski/835820/ft1_filtered_4FGL_J1023.1+3949_daily_bin679.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835820/ft1_filtered_4FGL_J1023.1+3949_daily_bin679.fits" evtable="EVENTS" scfile=/scratch/kocevski/835820/ft2_4FGL_J1023.1+3949_daily_bin679.fits sctable="SC_DATA" outfile=/scratch/kocevski/835820/ltcube_415324801_415584001_4FGL_J1023.1+3949_daily_bin679.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/835820/ft2_4FGL_J1023.1+3949_daily_bin679.fits
.....................!
real 12.42
user 11.94
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835820/ft1_filtered_4FGL_J1023.1+3949_daily_bin679.fits evtable="EVENTS" scfile=/scratch/kocevski/835820/ft2_4FGL_J1023.1+3949_daily_bin679.fits sctable="SC_DATA" expcube=/scratch/kocevski/835820/ltcube_415324801_415584001_4FGL_J1023.1+3949_daily_bin679.fits outfile=/scratch/kocevski/835820/expmap_415324801_415584001_4FGL_J1023.1+3949_daily_bin679.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/835820/ltcube_415324801_415584001_4FGL_J1023.1+3949_daily_bin679.fits
.....................!
real 189.85
user 185.38
sys 3.90

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/835820/ft1_filtered_4FGL_J1023.1+3949_daily_bin679.fits scfile=/scratch/kocevski/835820/ft2_4FGL_J1023.1+3949_daily_bin679.fits outfile=/scratch/kocevski/835820/cmap_415324801_415584001_4FGL_J1023.1+3949_daily_bin679.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835820/ft1_filtered_4FGL_J1023.1+3949_daily_bin679.fits scfile=/scratch/kocevski/835820/ft2_4FGL_J1023.1+3949_daily_bin679.fits outfile=/scratch/kocevski/835820/cmap_HighResolution_415324801_415584001_4FGL_J1023.1+3949_daily_bin679.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2024       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.5235       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1820       1.0000         .10000E-03   10000.    
    14 'norm      '    9.6128       1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.596       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.088       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2723       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.074       1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.735       1.0000         .10000E-03   10000.    
    26 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .77280       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0976       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=   3956.008     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3420 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.0856        .84259E-07** at limit **
   2  Prefactor     .10000E-03    1.4453        .81056E-07** at limit **
   3  norm          1.2052        24.944        .24471E-04    .24159E-04
   4  Prefactor     .10000E-03    11.231        .76855E-06** at limit **
   5  Prefactor     .10002E-03    53.954       -.17352E-05** at limit **
   6  Prefactor     .10000E-03    6.3975        .23632E-08** at limit **
   7  norm          .10000E-03    3.3112        .22241E-07** at limit **
   8  Prefactor     .10000E-03    1.9759        .20216E-07** at limit **
   9  Prefactor     .10000E-03    .89794       -.31235E-07** at limit **
  10  Prefactor     .10000E-03    4.4941       -.62000E-06** at limit **
  11  Prefactor     .10000E-03    15.300       -.19555E-06** at limit **
  12  norm          8.5235        3.5680        .10702E-08    .11056E-04
  13  Prefactor     3.1752        5.1073        .24165E-06    .10994E-03
  14  norm          9.6146        9.1802        .52820E-07    .70165E-04
  15  Prefactor     67.575        68.115        .13772E-05   -.44075E-04
  16  Prefactor     .10000E-03    15.623       -.85964E-07** at limit **
  17  Prefactor     17.088        7.1165        .39678E-07   -.42349E-05
  18  Prefactor     .10000E-03    2.6248       -.61267E-07** at limit **
  19  Prefactor     .10000E-03    15.511       -.13860E-06** at limit **
  20  Prefactor     .10000E-03    34.209        .15474E-05** at limit **
  21  Prefactor     .10000E-03    15.973        .16460E-06** at limit **
  22  Prefactor     .10000E-03    87.120        .42268E-05** at limit **
  23  norm          2.2726        .57144        .30147E-08    .29462E-03
  24  Prefactor     21.077        22.528        .12786E-08    .37558E-04
  25  Prefactor     26.727        25.941        .23230E-06   -.14869E-04
  26  norm          .10000E-03    12.115       -.15174E-06** at limit **
  27  Normalizat    .77279        .18556        .82584E-06    .29681E-03
  28  Prefactor     1.0976        .23847       -.14715E-05    .31733E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20516
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.52353
  Prefactor  = 3.17522
  norm       = 9.61459
  Prefactor  = 67.5751
  Prefactor  = 0.0001
  Prefactor  = 17.088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.27262
  Prefactor  = 21.0768
  Prefactor  = 26.7269
  norm       = 0.0001
  Normalizat = 0.772787
  Prefactor  = 1.09758
 **********
 **   18 **HESSE 
 **********

 FCN=   3956.008     FROM HESSE     STATUS=OK           507 CALLS     3927 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2126        .17462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4970        .14760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2052        24.918        .20686E-02   -1.5488    
   4  Prefactor     .10000E-03    11.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    54.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4288        .15534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.3149        .11178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9812        .86343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .90063        .58203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5951        .25829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.5235        3.5690        .74818E-04   -1.5124    
  13  Prefactor     3.1752        5.0586        .16823E-03   -1.5352    
  14  norm          9.6146        9.1775        .12925E-03   -1.5088    
  15  Prefactor     67.575        68.140        .48819E-04   -1.4062    
  16  Prefactor     .10000E-03    15.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.088        7.1290        .48445E-03   -1.4881    
  18  Prefactor     .10000E-03    2.6422        .99488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    87.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2726        .57523        .22042E-04   -1.5406    
  24  Prefactor     21.077        22.524        .87251E-04   -1.4789    
  25  Prefactor     26.727        26.039        .77478E-04   -1.4674    
  26  norm          .10000E-03    12.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .77279        .21868        .23931E-03   -1.0109    
  28  Prefactor     1.0976        .28092        .26631E-03   -.89544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25905e-10
Minuit parameter uncertainties:
  1  3.48611e-05
  2  5.37547e-06
  3  10.9648
  4  1.62499e-05
  5  0.00196108
  6  5.72605e-06
  7  2.40656e-06
  8  1.71342e-06
  9  2.11065e-06
  10  8.93241e-05
  11  4.10046e-05
  12  3.56909
  13  5.05932
  14  9.1788
  15  68.2193
  16  4.96012e-06
  17  7.12937
  18  6.90271e-06
  19  1.18106e-05
  20  0.000221757
  21  3.62449e-05
  22  0.00109673
  23  0.575231
  24  22.5327
  25  26.0503
  26  5.59178e-05
  27  0.218926
  28  0.2813
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.615e+00  9.179e+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.098e+00  2.813e-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.728e-01  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.20
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 9.56e-06 +/- 9.13e-06

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) = 3955.94946706
delta logL = 0.0580403273821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3955.94144161
delta logL = 0.0660657776752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3792       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8360       1.0000          .0000       5.0000    
     3 'Normalizat'    .78379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0896       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=   3955.941     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3660        8.3605        .34623E-02   -.79043E-03
   2  alpha         1.8355        .76276        .43155       -.19433E-04
   3  Normalizat    .78387        .18100        .43398E-01    .87467E-05
   4  Prefactor     1.0895        .23619        .60424E-01    .37873E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.36598
  alpha      = 1.83547
  Normalizat = 0.783871
  Prefactor  = 1.08947
 **********
 **   18 **HESSE 
 **********

 FCN=   3955.941     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3660        9.7342        .69245E-03   -1.5129    
   2  alpha         1.8355        1.0528        .19601E-01   -.26905    
   3  Normalizat    .78387        .21354        .23786E-03   -1.0067    
   4  Prefactor     1.0895        .27822        .26722E-03   -.89804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08995e-12
Minuit parameter uncertainties:
  1  9.736
  2  1.08948
  3  0.213771
  4  0.27859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835820': 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) = 3955.94144049
delta logL = 0.0660668960909

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  8.366e+00  9.736e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  1.835e+00  1.089e+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.089e+00  2.786e-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.839e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.33
Ra Dec: 155.788 39.823
Photon Index (Free Index): 1.84 +/- 1.09
Photon Flux (Free Index): 1.79e-08 +/- 2.76e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.35e-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/835820/cmap_HighResolution_415324801_415584001_4FGL_J1023.1+3949_daily_bin679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='1.11e-05', photon_flux_error='2.61e-08', dlogl='6.61e-02', energy_flux='9.56e-06', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-01 19:26:18.588962', photon_index_error2='1.09', photon_index2='1.84', ts='4.20', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.77', time_epoch_completed='1630549578.59', return_code='0', job_id='835820', GAL2='1.09', EG2='0.78', return_code2='0', energy_flux_error='9.13e-06', photon_flux_error2='2.76e-08', ts2='4.33', photon_index='2.25' WHERE bin_id='679' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:26:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 835820: <4FGL_J1023.1+3949_daily_bin679> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin679 155.788 39.8226 415324801 415584001 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 :                                   605.45 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            627 sec.

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

