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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin206
RA = 155.788, Dec = 39.8226
tmin = 292723201, tmax = 292982401
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='834097', job_status='RUN', time_executed='2021-09-01 19:10:52.574088', time_epoch_executed='1630548652.57' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834097

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834097/ft1_4FGL_J1023.1+3949_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834097/ft2_4FGL_J1023.1+3949_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834097/ft1_4FGL_J1023.1+3949_daily_bin206.fits outfile=/scratch/kocevski/834097/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin206.fits ra=155.788 dec=39.8226 rad=12.0 tmin=292723201.0 tmax=292982401.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 4.43
user 4.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834097/ft1_filtered_4FGL_J1023.1+3949_daily_bin206.fits" evtable="EVENTS" scfile=/scratch/kocevski/834097/ft2_4FGL_J1023.1+3949_daily_bin206.fits sctable="SC_DATA" outfile=/scratch/kocevski/834097/ltcube_292723201_292982401_4FGL_J1023.1+3949_daily_bin206.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/834097/ft2_4FGL_J1023.1+3949_daily_bin206.fits
.....................!
real 12.02
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834097/ft1_filtered_4FGL_J1023.1+3949_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/834097/ft2_4FGL_J1023.1+3949_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/834097/ltcube_292723201_292982401_4FGL_J1023.1+3949_daily_bin206.fits outfile=/scratch/kocevski/834097/expmap_292723201_292982401_4FGL_J1023.1+3949_daily_bin206.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/834097/ltcube_292723201_292982401_4FGL_J1023.1+3949_daily_bin206.fits
.....................!
real 189.87
user 184.93
sys 4.33

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/834097/ft1_filtered_4FGL_J1023.1+3949_daily_bin206.fits scfile=/scratch/kocevski/834097/ft2_4FGL_J1023.1+3949_daily_bin206.fits outfile=/scratch/kocevski/834097/cmap_292723201_292982401_4FGL_J1023.1+3949_daily_bin206.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834097/ft1_filtered_4FGL_J1023.1+3949_daily_bin206.fits scfile=/scratch/kocevski/834097/ft2_4FGL_J1023.1+3949_daily_bin206.fits outfile=/scratch/kocevski/834097/cmap_HighResolution_292723201_292982401_4FGL_J1023.1+3949_daily_bin206.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7860       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12438       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    24.590       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6233       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.702       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10526E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.825       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.341       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.021       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11328E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.583       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1953       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.793       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.3939       1.0000         .10000E-03   10000.    
    26 'norm      '    49.819       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .96011       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82576       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=   6375.428     FROM MIGRAD    STATUS=CONVERGED   1230 CALLS     4077 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2527        .11693E-02** at limit **
   2  Prefactor     .10000E-03    .78773        .68556E-03** at limit **
   3  norm          .10000E-03    9.6854        .18142E-02** at limit **
   4  Prefactor     5.8025        25.761        .16697E-03    .61756E-04
   5  Prefactor     .10002E-03    46.269        .11444    ** at limit **
   6  Prefactor     .10000E-03    6.7176        .36285E-03** at limit **
   7  norm          24.591        12.592        .80780E-04    .15903E-04
   8  Prefactor     .10000E-03    1.9462        .10857E-02** at limit **
   9  Prefactor     4.6234        2.8355        .50802E-03    .53305E-04
  10  Prefactor     6.9564        3.8503        .11085E-03   -.52816E-04
  11  Prefactor     58.690        35.380        .52363E-04    .37517E-04
  12  norm          .10000E-03    .81681        .70066E-03** at limit **
  13  Prefactor     .10000E-03    3.4867        .14386E-02** at limit **
  14  norm          .10000E-03    6.3051        .18142E-02** at limit **
  15  Prefactor     25.817        36.105        .78829E-04    .17162E-04
  16  Prefactor     19.307        68.819        .91072E-04   -.32456E-05
  17  Prefactor     .10000E-03    2.0793        .11166E-02** at limit **
  18  Prefactor     10.021        11.051        .12658E-03   -.54427E-04
  19  Prefactor     .10000E-03    77.584        .18142E-02** at limit **
  20  Prefactor     30.583        69.818        .72450E-04   -.58059E-05
  21  Prefactor     .10000E-03    29.670        .18142E-02** at limit **
  22  Prefactor     .10000E-03    23.573        .18142E-02** at limit **
  23  norm          1.1954        .32994        .22145E-04   -.47745E-04
  24  Prefactor     25.791        21.772        .78878E-04    .54769E-05
  25  Prefactor     8.3932        14.737        .13837E-03   -.17254E-05
  26  norm          49.820        21.296        .56816E-04    .60029E-05
  27  Normalizat    .96008        .19234        .22953E-03   -.32591E-04
  28  Prefactor     .82575        .22400        .30323E-03    .45553E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.8025
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 24.5907
  Prefactor  = 0.0001
  Prefactor  = 4.62344
  Prefactor  = 6.95636
  Prefactor  = 58.6901
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.8165
  Prefactor  = 19.3066
  Prefactor  = 0.0001
  Prefactor  = 10.0208
  Prefactor  = 0.000100001
  Prefactor  = 30.5828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19536
  Prefactor  = 25.7913
  Prefactor  = 8.39321
  norm       = 49.8195
  Normalizat = 0.960083
  Prefactor  = 0.825745
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.428     FROM HESSE     STATUS=OK           503 CALLS     4580 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2528        .23386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .78781        .13711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.6859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8025        25.662        .66788E-05   -1.5226    
   5  Prefactor     .10002E-03    43.909        .11782       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7180        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          24.591        12.593        .32312E-05   -1.4716    
   8  Prefactor     .10000E-03    1.9463        .21714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6234        2.8354        .20321E-04   -1.5278    
  10  Prefactor     6.9564        3.8499        .44342E-05   -1.5180    
  11  Prefactor     58.690        35.380        .10473E-04   -1.4174    
  12  norm          .10000E-03    .81687        .14013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4878        .28772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.3062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.817        36.123        .31532E-05   -1.4691    
  16  Prefactor     19.307        68.964        .36429E-05   -1.4829    
  17  Prefactor     .10000E-03    2.0797        .22331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.021        11.071        .50633E-05   -1.5075    
  19  Prefactor     .10000E-03    77.645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.583        69.849        .28980E-05   -1.4601    
  21  Prefactor     .10000E-03    29.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1954        .32994        .88578E-06   -1.5489    
  24  Prefactor     25.791        21.775        .31551E-05   -1.4692    
  25  Prefactor     8.3932        14.737        .55348E-05   -1.5128    
  26  norm          49.820        21.299        .22726E-05   -1.4295    
  27  Normalizat    .96008        .19253        .91811E-05   -.94380    
  28  Prefactor     .82575        .22424        .12129E-04   -.98786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90324e-11
Minuit parameter uncertainties:
  1  7.43639e-07
  2  5.08292e-07
  3  9.43702e-06
  4  24.4227
  5  0.00203398
  6  4.18371e-06
  7  12.5939
  8  6.73006e-07
  9  2.83552
  10  3.85003
  11  35.3931
  12  1.58796e-07
  13  6.4598e-06
  14  2.04045e-06
  15  36.1537
  16  69.2511
  17  2.02501e-06
  18  11.0735
  19  0.000534785
  20  70.0368
  21  0.000121687
  22  6.35065e-05
  23  0.329937
  24  21.7817
  25  14.743
  26  21.302
  27  0.192668
  28  0.224491
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  2.040e-06  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:  8.257e-01  2.245e-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.601e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/834097/likelihoodResults_292723201_292982401_4FGL_J1023.1+3949_daily_bin206.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): 102
logL (Free Index) = 6375.42842977
delta logL = -0.000755960981223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6375.12463945
delta logL = 0.303034356371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1265       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4243       1.0000          .0000       5.0000    
     3 'Normalizat'    .91306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86124       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6375.125     FROM MIGRAD    STATUS=FAILED        96 CALLS      368 TOTAL
                     EDM=   .34E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1257        75.288        .10649E-03   -.96052E-03
   2  alpha         4.4252        4.6201        .50000        .68325E-03
   3  Normalizat    .91309        .71834E-01    .23442E-03   -.56023E-03
   4  Prefactor     .86117        .87784E-01    .29748E-03    .27860E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6375.125     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      453 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1257        75.288        .15858E-03   -.96052E-03
   2  alpha         4.4252        4.6201        .43911E-02    .68325E-03
   3  Normalizat    .91309        .71834E-01    .72349E-04   -.56023E-03
   4  Prefactor     .86117        .87784E-01    .65355E-04    .27860E-04
                               ERR DEF=  .500    

 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=   6375.125     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      525 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1257        98.212        .85190E-06   -.86039E-03
   2  alpha         4.4252        4.2413        .51083E-01   -.12608E-04
   3  Normalizat    .91309        .20159        .93769E-05   -.54001E-03
   4  Prefactor     .86117        .22677        .23799E-05    .36306E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1257
  alpha      = 4.4252
  Normalizat = 0.913095
  Prefactor  = 0.86117
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.125     FROM HESSE     STATUS=OK            25 CALLS      550 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1257        3.1923        .36945E-06   -1.5496    
   2  alpha         4.4252        3.8375        .20433E-02    .87897    
   3  Normalizat    .91309        .18805        .18754E-05   -.96002    
   4  Prefactor     .86117        .22617        .47597E-06   -.97511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3198e-09
Minuit parameter uncertainties:
  1  3.19275
  2  1.88769
  3  0.188182
  4  0.226411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834097': 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) = 6375.12463923
delta logL = 0.303034576016

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.126e+00  3.193e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  4.425e+00  1.888e+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:  8.612e-01  2.264e-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.131e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/834097/cmap_HighResolution_292723201_292982401_4FGL_J1023.1+3949_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-01 19:26:47.944074', job_id='834097', GAL2='0.86', fit_tolerance='1e-08', EG2='0.91', EG='0.96', time_epoch_completed='1630549607.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.03e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='206' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:26:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 834097: <4FGL_J1023.1+3949_daily_bin206> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin206> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:10:37 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:10:39 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:39 2021
Terminated at Wed Sep  1 19:26:48 2021
Results reported at Wed Sep  1 19:26:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin206 155.788 39.8226 292723201 292982401 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 :                                   949.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

