/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 86 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 = 7393
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1601
RA = 155.788, Dec = 39.8226
tmin = 654307201, tmax = 654566401
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='541256', job_status='RUN', time_executed='2021-09-29 00:12:42.400971', time_epoch_executed='1632899562.4' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541256

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541256/ft1_4FGL_J1023.1+3949_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541256/ft2_4FGL_J1023.1+3949_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541256/ft1_4FGL_J1023.1+3949_daily_bin1601.fits outfile=/scratch/kocevski/541256/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1601.fits ra=155.788 dec=39.8226 rad=12.0 tmin=654307201.0 tmax=654566401.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.28
user 3.99
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541256/ft2_4FGL_J1023.1+3949_daily_bin1601.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/541256/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/541256/ft1_filtered_4FGL_J1023.1+3949_daily_bin1601.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/541256/ft1_filtered_4FGL_J1023.1+3949_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/541256/ft2_4FGL_J1023.1+3949_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/541256/ltcube_654307201_654566401_4FGL_J1023.1+3949_daily_bin1601.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/541256/ft2_4FGL_J1023.1+3949_daily_bin1601.fits
.....................!
real 11.81
user 11.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541256/ft1_filtered_4FGL_J1023.1+3949_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/541256/ft2_4FGL_J1023.1+3949_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/541256/ltcube_654307201_654566401_4FGL_J1023.1+3949_daily_bin1601.fits outfile=/scratch/kocevski/541256/expmap_654307201_654566401_4FGL_J1023.1+3949_daily_bin1601.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/541256/ltcube_654307201_654566401_4FGL_J1023.1+3949_daily_bin1601.fits
.....................!
real 190.83
user 185.99
sys 4.41

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/541256/ft1_filtered_4FGL_J1023.1+3949_daily_bin1601.fits scfile=/scratch/kocevski/541256/ft2_4FGL_J1023.1+3949_daily_bin1601.fits outfile=/scratch/kocevski/541256/cmap_654307201_654566401_4FGL_J1023.1+3949_daily_bin1601.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/541256/ft1_filtered_4FGL_J1023.1+3949_daily_bin1601.fits scfile=/scratch/kocevski/541256/ft2_4FGL_J1023.1+3949_daily_bin1601.fits outfile=/scratch/kocevski/541256/cmap_HighResolution_654307201_654566401_4FGL_J1023.1+3949_daily_bin1601.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12133E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.444       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16639E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7403       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8416       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13432E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.9542       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1989       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.020       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.060       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10220E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13696E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0115       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.851       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0675       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91052       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=   6093.508     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3577 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3758        7.3552        .20143E-06    .20653E-04
   2  Prefactor     .10000E-03    1.3589       -.18737E-06** at limit **
   3  norm          .10000E-03    5.7517       -.57469E-07** at limit **
   4  Prefactor     10.425        23.671       -.15465E-05    .27733E-04
   5  Prefactor     .10000E-03    33.569       -.39141E-05** at limit **
   6  Prefactor     9.7439        10.938       -.69107E-06   -.17574E-04
   7  norm          .10000E-03    3.1168       -.31252E-07** at limit **
   8  Prefactor     .10000E-03    9.4080       -.81579E-06** at limit **
   9  Prefactor     .42004        2.3184       -.17079E-05   -.17054E-02
  10  Prefactor     2.8421        4.5833        .31907E-07   -.38464E-03
  11  Prefactor     .10000E-03    110.56       -.23285E-05** at limit **
  12  norm          8.9553        3.1988       -.10986E-06    .82711E-04
  13  Prefactor     4.1994        4.8859        .66493E-07   -.27202E-03
  14  norm          .10000E-03    3.9874       -.35050E-07** at limit **
  15  Prefactor     33.991        66.025       -.38194E-04    .12686E-04
  16  Prefactor     27.061        23.889       -.39135E-06    .31590E-04
  17  Prefactor     .10000E-03    2.7901       -.42852E-06** at limit **
  18  Prefactor     .10000E-03    2.3437       -.15803E-07** at limit **
  19  Prefactor     .10000E-03    19.106       -.19706E-06** at limit **
  20  Prefactor     .10000E-03    31.758        .31263E-05** at limit **
  21  Prefactor     .10000E-03    9.7158        .79126E-06** at limit **
  22  Prefactor     .10000E-03    113.14        .30934E-05** at limit **
  23  norm          1.0114        .30480       -.24079E-07    .18625E-03
  24  Prefactor     .10000E-03    41.688        .53152E-07** at limit **
  25  Prefactor     17.850        14.746       -.27741E-06   -.50217E-05
  26  norm          .10000E-03    7.9708       -.44299E-07** at limit **
  27  Normalizat    1.0672        .16172        .15659E-05    .22904E-03
  28  Prefactor     .91080        .19638        .20929E-05    .13363E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.37584
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4254
  Prefactor  = 0.0001
  Prefactor  = 9.74395
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.420038
  Prefactor  = 2.84207
  Prefactor  = 0.000100001
  norm       = 8.95532
  Prefactor  = 4.19941
  norm       = 0.0001
  Prefactor  = 33.9907
  Prefactor  = 27.0607
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01145
  Prefactor  = 0.0001
  Prefactor  = 17.8496
  norm       = 0.0001
  Normalizat = 1.06716
  Prefactor  = 0.910797
 **********
 **   18 **HESSE 
 **********

 FCN=   6093.508     FROM HESSE     STATUS=OK           515 CALLS     4092 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3758        7.3056        .14769E-03   -1.5165    
   2  Prefactor     .10000E-03    2.2748        .17471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.7555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.425        23.652        .12398E-03   -1.5062    
   5  Prefactor     .10000E-03    33.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7439        10.914        .12840E-03   -1.5084    
   7  norm          .10000E-03    3.1229        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.7721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .42004        2.4800        .23654E-03   -1.5578    
  10  Prefactor     2.8421        4.4909        .16611E-03   -1.5371    
  11  Prefactor     .10000E-03    115.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.9553        3.1983        .80806E-04   -1.5109    
  13  Prefactor     4.1994        4.8052        .14821E-03   -1.5298    
  14  norm          .10000E-03    4.0060        .15218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.991        64.612        .68703E-04   -1.4541    
  16  Prefactor     27.061        23.833        .77013E-04   -1.4667    
  17  Prefactor     .10000E-03    5.8265        .24959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3679        .11653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    113.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0114        .30613        .22287E-04   -1.5507    
  24  Prefactor     .10000E-03    43.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.850        14.780        .94796E-04   -1.4863    
  26  norm          .10000E-03    8.0012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0672        .18779        .21741E-03   -.90813    
  28  Prefactor     .91080        .22863        .29507E-03   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27991e-09
Minuit parameter uncertainties:
  1  7.30651
  2  3.03935e-05
  3  1.10603e-06
  4  23.6732
  5  2.72588e-05
  6  10.9157
  7  5.10434e-06
  8  5.15316e-05
  9  2.04115
  10  4.49147
  11  0.000697642
  12  3.1984
  13  4.80567
  14  7.25171e-06
  15  64.7454
  16  23.8417
  17  0.000110752
  18  1.06017e-06
  19  2.13044e-05
  20  2.24498e-05
  21  2.30783e-06
  22  0.000304508
  23  0.306127
  24  0.000209844
  25  14.7834
  26  1.38298e-05
  27  0.18791
  28  0.228873
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  7.252e-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:  9.108e-01  2.289e-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:  1.067e+00  1.879e-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: 4.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541256/likelihoodResults_654307201_654566401_4FGL_J1023.1+3949_daily_bin1601.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) = 6093.50921424
delta logL = -0.00118774205475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6093.50802649
delta logL = 9.65974322753e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2578       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91079       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=   6093.508     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      238 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    123.53        .15249E-01** at limit **
   2  alpha         2.6220        3.8063        .16559       -.17644E-07
   3  Normalizat    1.0672        .22272E-01    .21741E-03   -.26276E-03
   4  Prefactor     .91080        .28245E-01    .29506E-03   -.19222E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.62204
  Normalizat = 1.06716
  Prefactor  = 0.910797
 **********
 **   18 **HESSE 
 **********

 FCN=   6093.508     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2323        .30890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6220        3.6836        .66237E-02    .48836E-01
   3  Normalizat    1.0672        .17871        .43483E-04   -.90813    
   4  Prefactor     .91080        .22672        .11803E-04   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49192e-11
Minuit parameter uncertainties:
  1  1.14043e-07
  2  325.904
  3  0.178814
  4  0.226955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541256': 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) = 6093.50802583
delta logL = 6.64989784127e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.140e-07  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.622e+00  3.259e+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:  9.108e-01  2.270e-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:  1.067e+00  1.788e-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/541256/cmap_HighResolution_654307201_654566401_4FGL_J1023.1+3949_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-05', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2021-09-29 00:27:01.388565', job_id='541256', GAL2='0.91', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632900421.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1601' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:27:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 541256: <4FGL_J1023.1+3949_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1601> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 00:11:02 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:11:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:11:03 2021
Terminated at Wed Sep 29 00:27:02 2021
Results reported at Wed Sep 29 00:27:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1601 155.788 39.8226 654307201 654566401 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 :                                   859.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

