aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 98 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7469
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1715
RA = 155.788, Dec = 39.8226
tmin = 683856001, tmax = 684115201
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='91790', job_status='RUN', time_executed='2022-09-16 15:19:48.370729', time_epoch_executed='1663366788.37' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91790/ft1_4FGL_J1023.1+3949_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91790/ft2_4FGL_J1023.1+3949_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91790/ft1_4FGL_J1023.1+3949_daily_bin1715.fits outfile=/scratch/kocevski/91790/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1715.fits ra=155.788 dec=39.8226 rad=12.0 tmin=683856001.0 tmax=684115201.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 3.50
user 3.30
sys 0.19

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

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

Number of photons that the gtmktime cut: 524

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91790/ft1_filtered_4FGL_J1023.1+3949_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/91790/ft2_4FGL_J1023.1+3949_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/91790/ltcube_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.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/91790/ft2_4FGL_J1023.1+3949_daily_bin1715.fits
.....................!
real 13.70
user 13.28
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91790/ft1_filtered_4FGL_J1023.1+3949_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/91790/ft2_4FGL_J1023.1+3949_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/91790/ltcube_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.fits outfile=/scratch/kocevski/91790/expmap_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.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/91790/ltcube_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.fits
.....................!
real 194.36
user 188.57
sys 5.44

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/91790/ft1_filtered_4FGL_J1023.1+3949_daily_bin1715.fits scfile=/scratch/kocevski/91790/ft2_4FGL_J1023.1+3949_daily_bin1715.fits outfile=/scratch/kocevski/91790/cmap_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.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.55
user 0.40
sys 0.14

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91790/ft1_filtered_4FGL_J1023.1+3949_daily_bin1715.fits', '/scratch/kocevski/91790/ft2_4FGL_J1023.1+3949_daily_bin1715.fits', expMap='/scratch/kocevski/91790/expmap_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.fits', expCube='/scratch/kocevski/91790/ltcube_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91790/Model_4FGL_J1023.1+3949_daily_bin1715.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  0.000e+00  1.000e+06 ( 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 -5.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/91790/ft1_filtered_4FGL_J1023.1+3949_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/91790/ft2_4FGL_J1023.1+3949_daily_bin1715.fits
Exposure map: /scratch/kocevski/91790/expmap_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.fits
Exposure cube: /scratch/kocevski/91790/ltcube_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91790/Model_4FGL_J1023.1+3949_daily_bin1715.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) = 5738.71193879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.986       1.0000          .0000       .10000E+07
     2 'Prefactor '    .89040E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .18710E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20423E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    12.112       1.0000          .0000       .10000E+07
     6 'Prefactor '    .92278E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .51235E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    5.3120       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.4558       1.0000          .0000       .10000E+07
    10 'Prefactor '    .74567E-02   1.0000          .0000       .10000E+07
    11 'norm      '    5.6005       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.4602       1.0000          .0000       .10000E+07
    13 'norm      '    13.199       1.0000          .0000       .10000E+07
    14 'Prefactor '    .60059E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .24021E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .58764E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.924       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.9381       1.0000          .0000       .10000E+07
    19 'norm      '    1.2576       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.7679       1.0000          .0000       .10000E+07
    21 'Prefactor '    .37712E-03   1.0000          .0000       .10000E+07
    22 'norm      '    39.099       1.0000          .0000       .10000E+07
    23 'Normalizat'    .91474       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92288       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5738.699     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     2028 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.006        9.8982       -.14771E-07   -.22079E-02
   2  Prefactor      .0000        .79016       -.23462E-07** at limit **
   3  norm           .0000        4.4903       -.13747E-06** at limit **
   4  Prefactor     .49960E-09    11.761        .91303E-07** at limit **
   5  Prefactor     12.383        2.8714       -.51465E-07    .67263E-02
   6  Prefactor      .0000        6.0559        .59010E-07** at limit **
   7  norm          .15425E-05    16.305       -.84354E-08** at limit **
   8  Prefactor     5.3952        5.9196        .11275E-07   -.73727E-03
   9  Prefactor     4.4592        2.6888       -.94380E-08   -.75865E-04
  10  Prefactor     .22204E-09    16.390       -.17532E-06** at limit **
  11  norm          5.5979        2.6140       -.16024E-08    .70991E-05
  12  Prefactor     4.4942        5.2351        .19946E-06   -.21098E-03
  13  norm          13.219        12.266       -.16055E-06   -.58958E-02
  14  Prefactor     .97966E-06    18.575        .11148E-06** at limit **
  15  Prefactor     .55511E-09    54.229       -.75431E-06** at limit **
  16  Prefactor      .0000        4.8339       -.15036E-06** at limit **
  17  Prefactor     23.876        1.6587       -.11674E-07    .34409E-03
  18  Prefactor     8.8288        243.81       -.19988E-05   -.98394E-04
  19  norm          1.2576        .31514       -.69366E-08    .50198E-03
  20  Prefactor     2.8244        14.527       -.12844E-06   -.18274E-01
  21  Prefactor     .11102E-09    8.4975        .23117E-06** at limit **
  22  norm          38.846        16.063        .54301E-07   -.19417E-01
  23  Normalizat    .91247        .19483        .26851E-05   -.14928E-05
  24  Prefactor     .92394        .23057       -.25556E-05    .13881E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.006
  Prefactor  = 0
  norm       = 0
  Prefactor  = 4.996e-10
  Prefactor  = 12.3825
  Prefactor  = 0
  norm       = 1.54254e-06
  Prefactor  = 5.39522
  Prefactor  = 4.45915
  Prefactor  = 2.22045e-10
  norm       = 5.59794
  Prefactor  = 4.49416
  norm       = 13.2188
  Prefactor  = 9.79661e-07
  Prefactor  = 5.55112e-10
  Prefactor  = 0
  Prefactor  = 23.8757
  Prefactor  = 8.8288
  norm       = 1.25761
  Prefactor  = 2.82441
  Prefactor  = 1.11022e-10
  norm       = 38.846
  Normalizat = 0.912469
  Prefactor  = 0.923941
 **********
 **   18 **HESSE 
 **********

 FCN=   5738.699     FROM HESSE     STATUS=OK           447 CALLS     2475 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.006        9.9169        .24275E-03   -1.5625    
   2  Prefactor      .0000        .79045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        4.4862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49960E-09    11.746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.383        26.803        .28759E-03   -1.5638    
   6  Prefactor      .0000        6.0724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .15425E-05    33.525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3952        5.9148        .43583E-03   -1.5662    
   9  Prefactor     4.4592        2.6952        .47679E-03   -1.5666    
  10  Prefactor     .22204E-09    15.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5979        2.6149        .42427E-03   -1.5661    
  12  Prefactor     4.4942        5.2662        .47655E-03   -1.5666    
  13  norm          13.219        12.336        .27545E-03   -1.5635    
  14  Prefactor     .97966E-06    30.490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-09    53.950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        4.7895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.876        25.175        .20450E-03   -1.5610    
  18  Prefactor     8.8288        240.91        .45236E-03   -1.5649    
  19  norm          1.2576        .32365        .46034E-03   -1.5686    
  20  Prefactor     2.8244        26.484        .61148E-03   -1.5674    
  21  Prefactor     .11102E-09    8.5019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          38.846        20.063        .15994E-03   -1.5583    
  23  Normalizat    .91247        .16867        .45090E-01   -.96023    
  24  Prefactor     .92394        .19795        .45296E-01   -.95309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31481e-07
Minuit parameter uncertainties:
  1  9.91696
  2  6.33568e-08
  3  1.45495e-05
  4  0.000149177
  5  26.8034
  6  5.14838e-07
  7  0.0143825
  8  5.9148
  9  2.69519
  10  0.000126275
  11  2.61492
  12  5.26621
  13  12.3359
  14  0.0109307
  15  0.000353148
  16  1.48429e-05
  17  25.175
  18  92.2416
  19  0.323654
  20  17.2975
  21  6.84659e-05
  22  20.0629
  23  0.168763
  24  0.198107
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.322e+01  1.234e+01  0.000e+00  1.000e+06 ( 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 -5.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.239e-01  1.981e-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.125e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.23e-05

TS (Fixed Index): 1.54
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91790/likelihoodResults_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.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) = 5732.70316884
delta logL = 5.99571826096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5732.63864138
delta logL = 6.06024572145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5808       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .68677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5732.639     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      284 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5810        13.754        .63500E-03   -.13747E-01
   2  alpha         5.0000        2.5179        .46330    ** at limit **
   3  Normalizat    .68675        .16340        .42114E-01   -.67590E-04
   4  Prefactor     1.1145        .20466        .58921E-01   -.45928E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58103
  alpha      = 5
  Normalizat = 0.686751
  Prefactor  = 1.11454
 **********
 **   18 **HESSE 
 **********

 FCN=   5732.639     FROM HESSE     STATUS=OK            37 CALLS      321 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5810        1.1979        .38115E-05   -1.5676    
   2  alpha         5.0000        .46522        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .68675        .19623        .25497E-03   -1.0442    
   4  Prefactor     1.1145        .24062        .26055E-03   -.89003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39931e-10
Minuit parameter uncertainties:
  1  1.19795
  2  4.42112e-06
  3  0.196435
  4  0.240858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91790': 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) = 5732.63864036
delta logL = 6.06024673482

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.581e+00  1.198e+00  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  5.000e+00  4.421e-06  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.077e-01  0.000e+00 -5.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.115e+00  2.409e-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.868e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.36
Ra Dec: 155.788 39.823
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.99e-07 +/- 9.21e-08
Energy Flux (Free Index): 2.71e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/91790/cmap_HighResolution_683856001_684115201_4FGL_J1023.1+3949_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='2.71e-05', photon_flux_error='3.51e-08', dlogl='6.06e+00', energy_flux='1.31e-05', photon_flux2='1.99e-07', job_status='DONE', time_completed='2022-09-16 15:31:04.898611', photon_index_error2='0.00', photon_index2='5.00', ts='1.54', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.25e-05', EG='0.91', time_epoch_completed='1663367464.9', return_code='0', job_id='91790', GAL2='1.11', EG2='0.69', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='9.21e-08', ts2='15.36', photon_index='2.25' WHERE bin_id='1715' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:31:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 91790: <4FGL_J1023.1+3949_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1715> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 15:15:20 2022
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:18:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:18:01 2022
Terminated at Fri Sep 16 15:31:05 2022
Results reported at Fri Sep 16 15:31:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1715 155.788 39.8226 683856001 684115201 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 :                                   678.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            945 sec.

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

