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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1744
RA = 155.788, Dec = 39.8226
tmin = 691372801, tmax = 691632001
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='573111', job_status='RUN', time_executed='2022-12-02 00:38:14.085283', time_epoch_executed='1669970294.09' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573111

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573111/ft1_4FGL_J1023.1+3949_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573111/ft2_4FGL_J1023.1+3949_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573111/ft1_4FGL_J1023.1+3949_daily_bin1744.fits outfile=/scratch/kocevski/573111/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1744.fits ra=155.788 dec=39.8226 rad=12.0 tmin=691372801.0 tmax=691632001.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.52
user 2.33
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573111/ft2_4FGL_J1023.1+3949_daily_bin1744.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/573111/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/573111/ft1_filtered_4FGL_J1023.1+3949_daily_bin1744.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.34
sys 0.14

Number of photons that the gtmktime cut: 729

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573111/ft1_filtered_4FGL_J1023.1+3949_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/573111/ft2_4FGL_J1023.1+3949_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/573111/ltcube_691372801_691632001_4FGL_J1023.1+3949_daily_bin1744.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/573111/ft2_4FGL_J1023.1+3949_daily_bin1744.fits
.....................!
real 12.64
user 12.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573111/ft1_filtered_4FGL_J1023.1+3949_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/573111/ft2_4FGL_J1023.1+3949_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/573111/ltcube_691372801_691632001_4FGL_J1023.1+3949_daily_bin1744.fits outfile=/scratch/kocevski/573111/expmap_691372801_691632001_4FGL_J1023.1+3949_daily_bin1744.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/573111/ltcube_691372801_691632001_4FGL_J1023.1+3949_daily_bin1744.fits
.....................!
real 189.80
user 185.18
sys 4.22

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/573111/ft1_filtered_4FGL_J1023.1+3949_daily_bin1744.fits scfile=/scratch/kocevski/573111/ft2_4FGL_J1023.1+3949_daily_bin1744.fits outfile=/scratch/kocevski/573111/cmap_691372801_691632001_4FGL_J1023.1+3949_daily_bin1744.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/573111/ft1_filtered_4FGL_J1023.1+3949_daily_bin1744.fits scfile=/scratch/kocevski/573111/ft2_4FGL_J1023.1+3949_daily_bin1744.fits outfile=/scratch/kocevski/573111/cmap_HighResolution_691372801_691632001_4FGL_J1023.1+3949_daily_bin1744.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2945       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0472       1.0000          .0000       .10000E+07
     3 'norm      '    1.7008       1.0000          .0000       .10000E+07
     4 'Prefactor '    .15044       1.0000          .0000       .10000E+07
     5 'Prefactor '    75.544       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.0637       1.0000          .0000       .10000E+07
     7 'norm      '    3.4925       1.0000          .0000       .10000E+07
     8 'Prefactor '    .86901       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.1508       1.0000          .0000       .10000E+07
    10 'Prefactor '    .29765E-01   1.0000          .0000       .10000E+07
    11 'norm      '    4.9694       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.3488       1.0000          .0000       .10000E+07
    13 'norm      '    .67897E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    9.0392       1.0000          .0000       .10000E+07
    15 'Prefactor '    23.605       1.0000          .0000       .10000E+07
    16 'Prefactor '    .89206E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .35065E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    44.013       1.0000          .0000       .10000E+07
    19 'norm      '    3.8670       1.0000          .0000       .10000E+07
    20 'Prefactor '    .80604E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .45698E-05   1.0000          .0000       .10000E+07
    22 'norm      '    27.174       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1286       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84896       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=   7903.293     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2119 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4733        9.2479       -.42374E-07    .18243E-03
   2  Prefactor     1.0454        1.3785        .13408E-07   -.28682E-03
   3  norm          1.7336        16.726        .91102E-07    .65189E-04
   4  Prefactor      .0000        39.041       -.35106E-07** at limit **
   5  Prefactor     75.535        2.7696        .54614E-08   -.45069E-01
   6  Prefactor     3.0070        7.0948       -.17816E-07   -.26365E-04
   7  norm          3.4216        6.7785        .14595E-07   -.80619E-04
   8  Prefactor     .84801        3.2659       -.12343E-07   -.12378E-03
   9  Prefactor     4.1490        3.1058        .34225E-08   -.75395E-04
  10  Prefactor     .41842E-01    123.76        .15069E-05** at limit **
  11  norm          4.9721        2.4386        .79657E-08   -.45330E-03
  12  Prefactor     3.3440        4.5191       -.86416E-08    .41066E-04
  13  norm          .37192E-08    49.819        .23108E-06** at limit **
  14  Prefactor     9.1164        5.5653       -.11522E-07   -.84558E-02
  15  Prefactor     23.627        4.4464       -.27049E-08   -.20664E-01
  16  Prefactor      .0000        1.5176       -.81174E-08** at limit **
  17  Prefactor     .56066E-08    18.161        .45768E-07** at limit **
  18  Prefactor     44.634        60.595       -.10626E-06    .11677E-02
  19  norm          3.8672        .44577        .12450E-09    .23180E-03
  20  Prefactor     .21649E-08    16.808        .19219E-07** at limit **
  21  Prefactor      .0000        5.3327       -.85784E-08** at limit **
  22  norm          27.316        17.038        .21541E-07   -.43967E-02
  23  Normalizat    1.1282        .18550        .12929E-06    .15019E-04
  24  Prefactor     .84919        .22124       -.32409E-06    .12051E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.47334
  Prefactor  = 1.04536
  norm       = 1.73356
  Prefactor  = 0
  Prefactor  = 75.5354
  Prefactor  = 3.00701
  norm       = 3.4216
  Prefactor  = 0.848007
  Prefactor  = 4.149
  Prefactor  = 0.0418417
  norm       = 4.97207
  Prefactor  = 3.34402
  norm       = 3.71925e-09
  Prefactor  = 9.11639
  Prefactor  = 23.6269
  Prefactor  = 0
  Prefactor  = 5.60663e-09
  Prefactor  = 44.6344
  norm       = 3.86717
  Prefactor  = 2.16493e-09
  Prefactor  = 0
  norm       = 27.3162
  Normalizat = 1.12821
  Prefactor  = 0.849191
 **********
 **   18 **HESSE 
 **********

 FCN=   7903.293     FROM HESSE     STATUS=OK           473 CALLS     2592 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4733        9.2722        .34786E-03   -1.5650    
   2  Prefactor     1.0454        1.7738        .27263E-02   -1.5688    
   3  norm          1.7336        17.376        .80628E-03   -1.5682    
   4  Prefactor      .0000        38.723        .12734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     75.535        40.990        .11506E-03   -1.5534    
   6  Prefactor     3.0070        7.1228        .57930E-03   -1.5673    
   7  norm          3.4216        6.7953        .54079E-03   -1.5671    
   8  Prefactor     .84801        3.2867        .47926E-03   -1.5690    
   9  Prefactor     4.1490        3.1153        .49449E-03   -1.5667    
  10  Prefactor     .41842E-01    1.5633        .93815E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9721        2.4434        .45090E-03   -1.5663    
  12  Prefactor     3.3440        4.2837        .55280E-03   -1.5671    
  13  norm          .37192E-08    3.7354        .63961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1164        102.71        .33312E-03   -1.5648    
  15  Prefactor     23.627        20.937        .20587E-03   -1.5611    
  16  Prefactor      .0000        1.5144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .56066E-08    18.448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.634        60.671        .15075E-03   -1.5574    
  19  norm          3.8672        .44605        .43808E-03   -1.5669    
  20  Prefactor     .21649E-08    17.025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        5.3364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          27.316        17.167        .19187E-03   -1.5603    
  23  Normalizat    1.1282        .15801        .53628E-01   -.88851    
  24  Prefactor     .84919        .18743        .75236E-01   -.97940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47584e-07
Minuit parameter uncertainties:
  1  9.27221
  2  1.7738
  3  10.9767
  4  8.69916e-06
  5  40.9899
  6  7.12281
  7  6.79529
  8  3.28673
  9  3.11527
  10  0.511516
  11  2.44337
  12  4.2837
  13  0.000235934
  14  61.2
  15  20.9372
  16  7.8113e-07
  17  0.000643005
  18  60.6714
  19  0.446045
  20  0.000383061
  21  3.46787e-06
  22  17.1673
  23  0.158079
  24  0.187575
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  3.719e-09  2.359e-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:  8.492e-01  1.876e-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.128e+00  1.581e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573111/likelihoodResults_691372801_691632001_4FGL_J1023.1+3949_daily_bin1744.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): 102
logL (Free Index) = 7903.29313096
delta logL = -0.000144567984535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7903.29300173
delta logL = -1.53311139002e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41113E-03   1.0000          .0000       .10000E+07
     2 'alpha     '    2.0717       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84895       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=   7903.293     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      264 TOTAL
                     EDM=   .10E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    .29988E-02    .61217E-02** at limit **
   2  alpha         2.4835        3.6493        .41942        .75896E-11
   3  Normalizat    1.1282        .11592E-03    .53628E-01    .71351E-04
   4  Prefactor     .84919        .14407E-03    .75236E-01    .96129E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  alpha      = 2.48352
  Normalizat = 1.12821
  Prefactor  = 0.849191
 **********
 **   18 **HESSE 
 **********

 FCN=   7903.293     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      301 TOTAL
                     EDM=   .11E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .34299E-02    .57331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4835        2.8733        .41942       -.65922E-02
   3  Normalizat    1.1282        .11994E-03    .23712E-03   -.88851    
   4  Prefactor     .84919        .14887E-03    .33297E-03   -.97940    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09869e-15
Minuit parameter uncertainties:
  1  6.17253e-07
  2  8583.42
  3  0.000119939
  4  0.00014887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573111': 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): 102
logL (Free Index) = 7903.29298639
delta logL = 3.18323145621e-11

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  5.551e-11  6.173e-07  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  2.484e+00  8.583e+03  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:  8.492e-01  1.489e-04  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.128e+00  1.199e-04  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/573111/cmap_HighResolution_691372801_691632001_4FGL_J1023.1+3949_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-05', job_status='DONE', photon_flux_upper_limit='4.23e-08', time_completed='2022-12-02 00:51:03.108664', job_id='573111', GAL2='0.85', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1669971063.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.18e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1744' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:51:03 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 573111: <4FGL_J1023.1+3949_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1744> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Dec  2 00:35:14 2022
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:35:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:35:16 2022
Terminated at Fri Dec  2 00:51:04 2022
Results reported at Fri Dec  2 00:51:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1744 155.788 39.8226 691372801 691632001 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 :                                   770.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            950 sec.

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

