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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1019
RA = 155.788, Dec = 39.8226
tmin = 503452801, tmax = 503712001
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='839315', job_status='RUN', time_executed='2021-09-01 19:33:20.672458', time_epoch_executed='1630550000.67' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839315

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839315/ft1_4FGL_J1023.1+3949_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839315/ft2_4FGL_J1023.1+3949_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839315/ft1_4FGL_J1023.1+3949_daily_bin1019.fits outfile=/scratch/kocevski/839315/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1019.fits ra=155.788 dec=39.8226 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.83
user 7.54
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839315/ft1_filtered_4FGL_J1023.1+3949_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/839315/ft2_4FGL_J1023.1+3949_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/839315/ltcube_503452801_503712001_4FGL_J1023.1+3949_daily_bin1019.fits outfile=/scratch/kocevski/839315/expmap_503452801_503712001_4FGL_J1023.1+3949_daily_bin1019.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/839315/ltcube_503452801_503712001_4FGL_J1023.1+3949_daily_bin1019.fits
.....................!
real 192.06
user 187.70
sys 3.98

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/839315/ft1_filtered_4FGL_J1023.1+3949_daily_bin1019.fits scfile=/scratch/kocevski/839315/ft2_4FGL_J1023.1+3949_daily_bin1019.fits outfile=/scratch/kocevski/839315/cmap_503452801_503712001_4FGL_J1023.1+3949_daily_bin1019.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839315/ft1_filtered_4FGL_J1023.1+3949_daily_bin1019.fits scfile=/scratch/kocevski/839315/ft2_4FGL_J1023.1+3949_daily_bin1019.fits outfile=/scratch/kocevski/839315/cmap_HighResolution_503452801_503712001_4FGL_J1023.1+3949_daily_bin1019.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3393       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37352E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.996       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9459       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22796E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .89692E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1653       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.507       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.3168       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.9477       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.4723       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .68236       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1047       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=   5015.805     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3560 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3417        7.9398        .15438E-06   -.61558E-04
   2  Prefactor     .10000E-03    .72923       -.21761E-07** at limit **
   3  norm          .10000E-03    5.3676       -.75639E-07** at limit **
   4  Prefactor     58.968        28.488        .29265E-06   -.10618E-03
   5  Prefactor     .10000E-03    105.19       -.65694E-06** at limit **
   6  Prefactor     .10000E-03    4.1356        .63838E-07** at limit **
   7  norm          16.002        10.974        .20856E-06    .48728E-04
   8  Prefactor     .10000E-03    1.6205        .35919E-07** at limit **
   9  Prefactor     .10000E-03    1.5942        .94767E-07** at limit **
  10  Prefactor     2.4283        4.3676        .43324E-06    .38093E-03
  11  Prefactor     .10000E-03    13.782       -.23367E-06** at limit **
  12  norm          3.9465        2.1799        .20499E-07    .12635E-04
  13  Prefactor     .10000E-03    4.3672       -.54058E-06** at limit **
  14  norm          .10000E-03    2.6703       -.29466E-07** at limit **
  15  Prefactor     .10020E-03    231.06       -.11628E-04** at limit **
  16  Prefactor     .10000E-03    24.008       -.28728E-06** at limit **
  17  Prefactor     .11482        2.1453       -.12561E-05    .14616E-02
  18  Prefactor     2.1656        6.0319        .11142E-05    .17266E-03
  19  Prefactor     14.471        28.725       -.67406E-06   -.76713E-04
  20  Prefactor     .10002E-03    74.936        .29867E-05** at limit **
  21  Prefactor     .10000E-03    8.7705        .36499E-07** at limit **
  22  Prefactor     .10000E-03    48.717       -.11129E-05** at limit **
  23  norm          1.3169        .34181       -.10337E-06    .39963E-03
  24  Prefactor     3.9506        11.325        .10149E-04    .26765E-04
  25  Prefactor     .10000E-03    4.9384       -.26455E-06** at limit **
  26  norm          7.4744        10.248       -.97599E-06   -.64524E-04
  27  Normalizat    .68190        .15777       -.65462E-06    .20129E-03
  28  Prefactor     1.1049        .19525       -.10689E-05    .13516E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.34168
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.9685
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 16.0023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.42827
  Prefactor  = 0.0001
  norm       = 3.9465
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100201
  Prefactor  = 0.0001
  Prefactor  = 0.114817
  Prefactor  = 2.16562
  Prefactor  = 14.4711
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.31686
  Prefactor  = 3.95062
  Prefactor  = 0.0001
  norm       = 7.4744
  Normalizat = 0.681904
  Prefactor  = 1.10487
 **********
 **   18 **HESSE 
 **********

 FCN=   5015.805     FROM HESSE     STATUS=OK           517 CALLS     4077 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3417        7.9367        .13882E-03   -1.5130    
   2  Prefactor     .10000E-03    .73727        .59038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.3690        .16023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     58.968        28.473        .52236E-04   -1.4171    
   5  Prefactor     .10000E-03    107.89        .42589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1471        .14063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.002        10.985        .10014E-03   -1.4908    
   8  Prefactor     .10000E-03    1.6230        .88039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6382        .17458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4283        3.8680        .16186E-03   -1.5396    
  11  Prefactor     .10000E-03    13.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9465        2.1829        .75591E-04   -1.5311    
  13  Prefactor     .10000E-03    6.5457        .24543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6758        .11301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10020E-03    235.23        .20108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11482        16.466        .18451E-02   -1.5640    
  18  Prefactor     2.1656        5.9352        .26331E-03   -1.5414    
  19  Prefactor     14.471        28.771        .10516E-03   -1.4947    
  20  Prefactor     .10002E-03    75.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    48.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3169        .34217        .19983E-04   -1.5478    
  24  Prefactor     3.9506        11.351        .10151E-02   -1.5310    
  25  Prefactor     .10000E-03    4.9444        .15375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.4744        10.244        .14672E-03   -1.5161    
  27  Normalizat    .68190        .18420        .23574E-03   -1.0461    
  28  Prefactor     1.1049        .22824        .24701E-03   -.89311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66804e-08
Minuit parameter uncertainties:
  1  7.93771
  2  5.10105e-07
  3  4.56226e-06
  4  28.4793
  5  0.000630777
  6  4.09987e-06
  7  10.9861
  8  1.21278e-06
  9  4.17919e-06
  10  3.8684
  11  7.78411e-05
  12  2.18297
  13  1.95639e-05
  14  4.12693e-06
  15  0.0138218
  16  7.32869e-06
  17  2.74955
  18  5.93679
  19  28.799
  20  0.00239209
  21  1.09993e-05
  22  0.000789709
  23  0.342167
  24  11.3577
  25  3.18116e-05
  26  10.2459
  27  0.184365
  28  0.228443
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  4.127e-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:  1.105e+00  2.284e-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:  6.819e-01  1.844e-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: 3.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839315/likelihoodResults_503452801_503712001_4FGL_J1023.1+3949_daily_bin1019.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) = 5015.80627592
delta logL = -0.00175889895036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5015.80451703
delta logL = -9.93441062747e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2508       1.0000          .0000       5.0000    
     3 'Normalizat'    .68191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1049       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=   5015.805     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      232 TOTAL
                     EDM=   .91E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7669        .11301E-02** at limit **
   2  alpha         2.2997        3.4684        .16565       -.48041E-08
   3  Normalizat    .68190        .17131        .23574E-03    .42438E-05
   4  Prefactor     1.1049        .22488        .24701E-03    .23933E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.29967
  Normalizat = 0.681903
  Prefactor  = 1.10487
 **********
 **   18 **HESSE 
 **********

 FCN=   5015.805     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6768        .22601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2997        3.7057        .66261E-02   -.80220E-01
   3  Normalizat    .68190        .17147        .94298E-05   -1.0461    
   4  Prefactor     1.1049        .22508        .98806E-05   -.89311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10611e-13
Minuit parameter uncertainties:
  1  8.04642e-07
  2  464.399
  3  0.171601
  4  0.225276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839315': 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) = 5015.80451701
delta logL = 6.07360561844e-09

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  8.046e-07  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.300e+00  4.644e+02  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.105e+00  2.253e-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:  6.819e-01  1.716e-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/839315/cmap_HighResolution_503452801_503712001_4FGL_J1023.1+3949_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-05', job_status='DONE', photon_flux_upper_limit='3.82e-08', time_completed='2021-09-01 19:46:35.969835', job_id='839315', GAL2='1.10', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630550795.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.07e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1019' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:46:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 839315: <4FGL_J1023.1+3949_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1019> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 19:30:21 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:30:33 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:30:33 2021
Terminated at Wed Sep  1 19:46:36 2021
Results reported at Wed Sep  1 19:46:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1019 155.788 39.8226 503452801 503712001 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 :                                   790.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            975 sec.

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

