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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin543
RA = 155.788, Dec = 39.8226
tmin = 380073601, tmax = 380332801
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='835606', job_status='RUN', time_executed='2021-09-01 19:15:45.411554', time_epoch_executed='1630548945.41' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835606/ft1_4FGL_J1023.1+3949_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835606/ft2_4FGL_J1023.1+3949_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835606/ft1_4FGL_J1023.1+3949_daily_bin543.fits outfile=/scratch/kocevski/835606/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin543.fits ra=155.788 dec=39.8226 rad=12.0 tmin=380073601.0 tmax=380332801.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.48
user 4.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835606/ft2_4FGL_J1023.1+3949_daily_bin543.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/835606/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin543.fits evtable="EVENTS" outfile="/scratch/kocevski/835606/ft1_filtered_4FGL_J1023.1+3949_daily_bin543.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/835606/ft1_filtered_4FGL_J1023.1+3949_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/835606/ft2_4FGL_J1023.1+3949_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/835606/ltcube_380073601_380332801_4FGL_J1023.1+3949_daily_bin543.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/835606/ft2_4FGL_J1023.1+3949_daily_bin543.fits
.....................!
real 11.80
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835606/ft1_filtered_4FGL_J1023.1+3949_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/835606/ft2_4FGL_J1023.1+3949_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/835606/ltcube_380073601_380332801_4FGL_J1023.1+3949_daily_bin543.fits outfile=/scratch/kocevski/835606/expmap_380073601_380332801_4FGL_J1023.1+3949_daily_bin543.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/835606/ltcube_380073601_380332801_4FGL_J1023.1+3949_daily_bin543.fits
.....................!
real 189.92
user 185.37
sys 4.07

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/835606/ft1_filtered_4FGL_J1023.1+3949_daily_bin543.fits scfile=/scratch/kocevski/835606/ft2_4FGL_J1023.1+3949_daily_bin543.fits outfile=/scratch/kocevski/835606/cmap_380073601_380332801_4FGL_J1023.1+3949_daily_bin543.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.53
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7656       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .52098       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30001E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.153       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9366       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7833       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.902       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23880E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7914       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    30.694       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .70051       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2911       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=   5934.935     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3011 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7602        9.4669        .48929E-05   -.21591E-04
   2  Prefactor     .52037        1.6969        .16796E-07   -.21562E-03
   3  norm          .10000E-03    5.1177       -.36730E-07** at limit **
   4  Prefactor     .10000E-03    6.1122        .29257E-07** at limit **
   5  Prefactor     .10003E-03    156.63       -.66199E-05** at limit **
   6  Prefactor     .10000E-03    10.468        .74370E-06** at limit **
   7  norm          12.141        12.675       -.85574E-07   -.42591E-04
   8  Prefactor     2.9474        8.0723        .10573E-05    .11756E-04
   9  Prefactor     .10000E-03    .83604        .55059E-07** at limit **
  10  Prefactor     2.7837        2.6905        .10529E-06    .68333E-05
  11  Prefactor     .10000E-03    27.296       -.29508E-06** at limit **
  12  norm          1.7352        1.6371       -.26650E-07   -.83193E-05
  13  Prefactor     .10000E-03    1.9235        .10830E-06** at limit **
  14  norm          .10000E-03    3.0665        .78333E-07** at limit **
  15  Prefactor     .10000E-03    24.545        .68006E-06** at limit **
  16  Prefactor     14.939        28.821        .61976E-06    .13293E-03
  17  Prefactor     .10007E-03    2.2999       -.91243E-06** at limit **
  18  Prefactor     .10000E-03    4.4158        .92703E-06** at limit **
  19  Prefactor     .10000E-03    16.376        .14705E-06** at limit **
  20  Prefactor     .10001E-03    34.107       -.18054E-05** at limit **
  21  Prefactor     .10001E-03    53.923        .30365E-05** at limit **
  22  Prefactor     .10000E-03    24.612        .62961E-06** at limit **
  23  norm          1.7915        .36226        .75391E-08    .12512E-03
  24  Prefactor     .10000E-03    5.8328       -.10983E-06** at limit **
  25  Prefactor     .10000E-03    9.1982       -.24669E-06** at limit **
  26  norm          30.723        16.919        .93888E-07   -.72484E-04
  27  Normalizat    .70021        .15713       -.11276E-05    .12311E-03
  28  Prefactor     1.2910        .19891       -.36279E-06    .74497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.76023
  Prefactor  = 0.52037
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.000100001
  norm       = 12.1409
  Prefactor  = 2.94738
  Prefactor  = 0.0001
  Prefactor  = 2.78368
  Prefactor  = 0.0001
  norm       = 1.7352
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.9388
  Prefactor  = 0.000100068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100012
  Prefactor  = 0.000100001
  norm       = 1.79151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.7234
  Normalizat = 0.700209
  Prefactor  = 1.29102
 **********
 **   18 **HESSE 
 **********

 FCN=   5934.935     FROM HESSE     STATUS=OK           515 CALLS     3526 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7602        9.4975        .83635E-03   -1.5228    
   2  Prefactor     .52037        1.6379        .17168E-03   -1.5564    
   3  norm          .10000E-03    5.1221        .17021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    163.20        .39657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.141        12.589        .11491E-03   -1.5011    
   8  Prefactor     2.9474        8.0177        .23702E-03   -1.5365    
   9  Prefactor     .10000E-03    1.3252        .13735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7837        2.6883        .11948E-03   -1.5374    
  11  Prefactor     .10000E-03    27.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7352        1.6471        .92583E-04   -1.5445    
  13  Prefactor     .10000E-03    1.9393        .10424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0720        .13173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.939        28.582        .10375E-03   -1.4935    
  17  Prefactor     .10007E-03    12.206        .21112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4574        .15707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    34.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    55.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7915        .36251        .20095E-04   -1.5440    
  24  Prefactor     .10000E-03    5.8389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.2206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          30.723        16.908        .72320E-04   -1.4599    
  27  Normalizat    .70021        .18355        .25298E-03   -1.0388    
  28  Prefactor     1.2910        .23538        .25138E-03   -.83574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4242e-09
Minuit parameter uncertainties:
  1  9.49997
  2  1.63802
  3  1.41963e-06
  4  2.27273e-05
  5  0.00453185
  6  0.000202722
  7  12.5913
  8  8.02061
  9  2.65597e-06
  10  2.68844
  11  0.000126639
  12  1.64717
  13  3.55472e-06
  14  6.17818e-06
  15  0.000319335
  16  28.6082
  17  0.00182129
  18  1.25108e-05
  19  1.499e-05
  20  0.00105392
  21  0.0016153
  22  0.000310991
  23  0.362514
  24  1.75148e-05
  25  6.78585e-05
  26  16.9103
  27  0.183709
  28  0.235577
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  6.178e-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.291e+00  2.356e-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.002e-01  1.837e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835606/likelihoodResults_380073601_380332801_4FGL_J1023.1+3949_daily_bin543.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) = 5934.93661593
delta logL = -0.0015399133008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5934.93507603
delta logL = -7.46786099626e-09

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 'alpha     '    2.2531       1.0000          .0000       5.0000    
     3 'Normalizat'    .70022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2910       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=   5934.935     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      234 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4411        .13176E-02** at limit **
   2  alpha         2.4137        3.7654        .16563       -.18052E-07
   3  Normalizat    .70021        .17748        .25298E-03   -.75812E-04
   4  Prefactor     1.2910        .23343        .25138E-03   -.79425E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.41372
  Normalizat = 0.700208
  Prefactor  = 1.29102
 **********
 **   18 **HESSE 
 **********

 FCN=   5934.935     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0986        .26353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4137        3.1183        .66253E-02   -.34517E-01
   3  Normalizat    .70021        .17764        .10119E-04   -1.0388    
   4  Prefactor     1.2910        .23364        .50276E-04   -.83574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46751e-11
Minuit parameter uncertainties:
  1  1.00327e-05
  2  320.342
  3  0.177784
  4  0.233829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835606': 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) = 5934.93507588
delta logL = 1.38672476169e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.003e-05  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.414e+00  3.203e+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.291e+00  2.338e-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.002e-01  1.778e-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/835606/cmap_HighResolution_380073601_380332801_4FGL_J1023.1+3949_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-05', job_status='DONE', photon_flux_upper_limit='4.32e-08', time_completed='2021-09-01 19:28:50.267961', job_id='835606', GAL2='1.29', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630549730.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='1.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='543' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:28:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 835606: <4FGL_J1023.1+3949_daily_bin543> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin543 155.788 39.8226 380073601 380332801 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 :                                   781.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

