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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1774
RA = 155.788, Dec = 39.8226
tmin = 699148801, tmax = 699408001
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='678885', job_status='RUN', time_executed='2023-03-02 00:34:07.936773', time_epoch_executed='1677746047.94' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678885/ft1_4FGL_J1023.1+3949_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678885/ft2_4FGL_J1023.1+3949_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/678885/ft1_4FGL_J1023.1+3949_daily_bin1774.fits outfile=/scratch/kocevski/678885/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1774.fits ra=155.788 dec=39.8226 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.80
user 2.62
sys 0.17

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

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

Number of photons that the gtmktime cut: 8

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/678885/ft1_filtered_4FGL_J1023.1+3949_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/678885/ft2_4FGL_J1023.1+3949_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/678885/ltcube_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.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/678885/ft2_4FGL_J1023.1+3949_daily_bin1774.fits
.....................!
real 13.34
user 13.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678885/ft1_filtered_4FGL_J1023.1+3949_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/678885/ft2_4FGL_J1023.1+3949_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/678885/ltcube_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.fits outfile=/scratch/kocevski/678885/expmap_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.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/678885/ltcube_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.fits
.....................!
real 190.21
user 185.41
sys 4.49

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/678885/ft1_filtered_4FGL_J1023.1+3949_daily_bin1774.fits scfile=/scratch/kocevski/678885/ft2_4FGL_J1023.1+3949_daily_bin1774.fits outfile=/scratch/kocevski/678885/cmap_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678885/ft1_filtered_4FGL_J1023.1+3949_daily_bin1774.fits scfile=/scratch/kocevski/678885/ft2_4FGL_J1023.1+3949_daily_bin1774.fits outfile=/scratch/kocevski/678885/cmap_HighResolution_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.788 yref=39.8226 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/678885/ft1_filtered_4FGL_J1023.1+3949_daily_bin1774.fits', '/scratch/kocevski/678885/ft2_4FGL_J1023.1+3949_daily_bin1774.fits', expMap='/scratch/kocevski/678885/expmap_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.fits', expCube='/scratch/kocevski/678885/ltcube_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/678885/Model_4FGL_J1023.1+3949_daily_bin1774.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/678885/ft1_filtered_4FGL_J1023.1+3949_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/678885/ft2_4FGL_J1023.1+3949_daily_bin1774.fits
Exposure map: /scratch/kocevski/678885/expmap_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.fits
Exposure cube: /scratch/kocevski/678885/ltcube_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/678885/Model_4FGL_J1023.1+3949_daily_bin1774.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 105.134049735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 104.824809789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1751       1.0000          .0000       .10000E+07
     2 'Prefactor '    .53797E-01   1.0000          .0000       .10000E+07
     3 'norm      '    1.9778       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.7820       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.1921       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4647       1.0000          .0000       .10000E+07
     7 'norm      '    7.1136       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.8930       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.0098       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1622       1.0000          .0000       .10000E+07
    11 'norm      '    .94304E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.7987       1.0000          .0000       .10000E+07
    13 'norm      '    9.9931       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5719       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.9177       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.6441       1.0000          .0000       .10000E+07
    17 'Prefactor '    .95924       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.4008       1.0000          .0000       .10000E+07
    19 'norm      '    .69500E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .53949       1.0000          .0000       .10000E+07
    21 'Prefactor '    .10923E-01   1.0000          .0000       .10000E+07
    22 'norm      '    9.1329       1.0000          .0000       .10000E+07
    23 'Normalizat'    .58215       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.5003       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   88.08489     FROM MIGRAD    STATUS=CONVERGED    395 CALLS      498 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33695E-06    3886.7        .56849E-03** at limit **
   2  Prefactor     .12157E-07    700.40        .15392E-02** at limit **
   3  norm          1.9778        1.0362         .0000         .0000    
   4  Prefactor     2.7820        1.0171         .0000         .0000    
   5  Prefactor     7.1921        1.0024         .0000         .0000    
   6  Prefactor     1.4647        1.0750         .0000         .0000    
   7  norm          .10000E+07    .35320E-01   -.13195E-04** at limit **
   8  Prefactor     .47184E-08    .89165E-01    .10930E-05** at limit **
   9  Prefactor     1.0098        .44329         .0000         .0000    
  10  Prefactor     1.1622        1.1510         .0000         .0000    
  11  norm          .27756E-09    .49595        .22706E-05** at limit **
  12  Prefactor     1.7987        1.0451         .0000         .0000    
  13  norm          .10000E+07    .25081E-01    .77492E-04** at limit **
  14  Prefactor     4.5719        1.0061         .0000         .0000    
  15  Prefactor     .10000E+07    .31702E-01    .37323E-03** at limit **
  16  Prefactor     .21871E-07    .16955       -.22529E-05** at limit **
  17  Prefactor     .42688E-07    .44767E-01    .16024E-05** at limit **
  18  Prefactor     .10769E-07    .46693E-01   -.69062E-05** at limit **
  19  norm           .0000        .44347E-01   -.45379E-09** at limit **
  20  Prefactor     .18319E-07    .14000       -.13868E-05** at limit **
  21  Prefactor     .14988E-08    .44347E-01    .40403E-06** at limit **
  22  norm          137.63        3.8875        .43867E-06   -.21590E-04
  23  Normalizat    .10000E-01    .40792       -.17164E-07** at limit **
  24  Prefactor     .60382        .69946        .25323E-04   -.36409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.36953e-07
  Prefactor  = 1.21569e-08
  norm       = 1.97778
  Prefactor  = 2.78201
  Prefactor  = 7.19212
  Prefactor  = 1.46472
  norm       = 1e+06
  Prefactor  = 4.71845e-09
  Prefactor  = 1.00983
  Prefactor  = 1.16222
  norm       = 2.77556e-10
  Prefactor  = 1.79868
  norm       = 1e+06
  Prefactor  = 4.57191
  Prefactor  = 1e+06
  Prefactor  = 2.18714e-08
  Prefactor  = 4.26881e-08
  Prefactor  = 1.07692e-08
  norm       = 0
  Prefactor  = 1.83187e-08
  Prefactor  = 1.4988e-09
  norm       = 137.628
  Normalizat = 0.01
  Prefactor  = 0.603818
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   88.08489     FROM HESSE     STATUS=FAILED        15 CALLS      513 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33695E-06    3886.7        .56849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12157E-07    700.40        .15392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          62943.        62941.         .0000       -1.5680    
   4  Prefactor     2.7820        1.0171         .0000       -1.5675    
   5  Prefactor     7.1921        1.0024         .0000       -1.5654    
   6  Prefactor     1.4647        1.0750         .0000       -1.5684    
   7  norm          .10000E+07    .35320E-01   -.13195E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .47184E-08    .89165E-01    .10930E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0098        .44329         .0000       -1.5688    
  10  Prefactor     1.1622        1.1510         .0000       -1.5686    
  11  norm          .27756E-09    .49595        .22706E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7987        1.0451         .0000       -1.5681    
  13  norm          .10000E+07    .25081E-01    .77492E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5719        1.0061         .0000       -1.5665    
  15  Prefactor     .10000E+07    .31702E-01    .37323E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21871E-07    .16955       -.22529E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .42688E-07    .44767E-01    .16024E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10769E-07    .46693E-01   -.69062E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .44347E-01   -.45379E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .18319E-07    .14000       -.13868E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .14988E-08    .44347E-01    .40403E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          137.63        3.8875        .43867E-06   -1.5473    
  23  Normalizat    .10000E-01    .40792       -.17164E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .60382        .69946        .25323E-04   -1.0743    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.12981e-10
Minuit parameter uncertainties:
  1  0.0724223
  2  0.00583986
  3  1.03618
  4  1.01714
  5  1.00244
  6  1.075
  7  0.000230287
  8  4.10221e-05
  9  0.443286
  10  1.15103
  11  2.26776e-05
  12  1.04507
  13  0.000853202
  14  1.00611
  15  0.00258114
  16  0.000121736
  17  8.74503e-05
  18  4.48177e-05
  19  2.925e-08
  20  0.000101326
  21  1.63531e-05
  22  3.88755
  23  5.30126e-06
  24  0.709924
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 88.0848946864

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e+06  8.532e-04  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:  6.038e-01  7.099e-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.000e-02  5.301e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.96
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.85e-03 +/- 2.43e-12
Energy Flux (Fixed Index): 9.94e-01 +/- 8.48e-10
calc_int error: parameter max 1000000.0 is not large enough
delta logLike = 1.49392337789e-06

TS (Fixed Index): 3.96
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -3.49e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/678885/likelihoodResults_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.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) = 83.2773751516
delta logL = 4.80751953486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 83.2316614053
delta logL = 4.85323328113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   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=   83.23166     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       49 TOTAL
                     EDM=   .88E-18    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        .18055        .77292E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   83.23166     FROM HESSE     STATUS=OK             5 CALLS       54 TOTAL
                     EDM=   .89E-18    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        .18037        .17085E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94433e-19
Minuit parameter uncertainties:
  1  3.42922e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678885': 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) = 83.2316614053
delta logL = 4.85323328113

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e+06  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12) fixed
330        alpha:  5.000e+00  3.429e-10  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:  6.002e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.029e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 13.72
Ra Dec: 155.788 39.823
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.73e-02 +/- 3.65e-11
Energy Flux (Free Index): 1.05e+01 +/- 4.63e-09

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/678885/cmap_HighResolution_699148801_699408001_4FGL_J1023.1+3949_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-3.49e+02', comment='SUCCESS', photon_flux='2.85e-03', energy_flux2='1.05e+01', photon_flux_error='2.43e-12', dlogl='4.85e+00', energy_flux='9.94e-01', photon_flux2='7.73e-02', job_status='DONE', time_completed='2023-03-02 00:39:30.568617', photon_index_error2='0.00', photon_index2='5.00', ts='3.96', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='4.63e-09', EG='0.01', time_epoch_completed='1677746370.57', return_code='101', job_id='678885', GAL2='0.60', EG2='0.01', return_code2='0', energy_flux_error='8.48e-10', photon_flux_error2='3.65e-11', ts2='13.72', photon_index='2.25' WHERE bin_id='1774' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:39:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0119>
Subject: Job 678885: <4FGL_J1023.1+3949_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:30:25 2023
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:30:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:30:27 2023
Terminated at Thu Mar  2 00:39:31 2023
Results reported at Thu Mar  2 00:39:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1774 155.788 39.8226 699148801 699408001 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 :                                   325.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            546 sec.

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

