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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1758
RA = 155.788, Dec = 39.8226
tmin = 695001601, tmax = 695260801
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='362323', job_status='RUN', time_executed='2023-01-13 00:35:55.544429', time_epoch_executed='1673598955.54' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362323/ft1_4FGL_J1023.1+3949_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362323/ft2_4FGL_J1023.1+3949_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362323/ft1_4FGL_J1023.1+3949_daily_bin1758.fits outfile=/scratch/kocevski/362323/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1758.fits ra=155.788 dec=39.8226 rad=12.0 tmin=695001601.0 tmax=695260801.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.07
user 2.63
sys 0.18

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

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

Number of photons that the gtmktime cut: 400

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362323/ft1_filtered_4FGL_J1023.1+3949_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/362323/ft2_4FGL_J1023.1+3949_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/362323/ltcube_695001601_695260801_4FGL_J1023.1+3949_daily_bin1758.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/362323/ft2_4FGL_J1023.1+3949_daily_bin1758.fits
.....................!
real 17.24
user 16.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362323/ft1_filtered_4FGL_J1023.1+3949_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/362323/ft2_4FGL_J1023.1+3949_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/362323/ltcube_695001601_695260801_4FGL_J1023.1+3949_daily_bin1758.fits outfile=/scratch/kocevski/362323/expmap_695001601_695260801_4FGL_J1023.1+3949_daily_bin1758.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/362323/ltcube_695001601_695260801_4FGL_J1023.1+3949_daily_bin1758.fits
.....................!
real 193.74
user 187.89
sys 5.26

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/362323/ft1_filtered_4FGL_J1023.1+3949_daily_bin1758.fits scfile=/scratch/kocevski/362323/ft2_4FGL_J1023.1+3949_daily_bin1758.fits outfile=/scratch/kocevski/362323/cmap_695001601_695260801_4FGL_J1023.1+3949_daily_bin1758.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362323/ft1_filtered_4FGL_J1023.1+3949_daily_bin1758.fits scfile=/scratch/kocevski/362323/ft2_4FGL_J1023.1+3949_daily_bin1758.fits outfile=/scratch/kocevski/362323/cmap_HighResolution_695001601_695260801_4FGL_J1023.1+3949_daily_bin1758.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70133E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.8231       1.0000          .0000       .10000E+07
     3 'norm      '    .72112E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .25685E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .72919E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .29119E-05   1.0000          .0000       .10000E+07
     7 'norm      '    22.703       1.0000          .0000       .10000E+07
     8 'Prefactor '    .60371E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12672E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.3709       1.0000          .0000       .10000E+07
    11 'norm      '    3.7823       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6633       1.0000          .0000       .10000E+07
    13 'norm      '    .41736E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10763E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12535E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10308E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.8259       1.0000          .0000       .10000E+07
    18 'Prefactor '    21.971       1.0000          .0000       .10000E+07
    19 'norm      '    3.1516       1.0000          .0000       .10000E+07
    20 'Prefactor '    .12790E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .19639E-02   1.0000          .0000       .10000E+07
    22 'norm      '    17.459       1.0000          .0000       .10000E+07
    23 'Normalizat'    .82115       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4458       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=   4492.770     FROM MIGRAD    STATUS=CONVERGED    198 CALLS     2091 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96417E-06    21.959       -.10512E-06** at limit **
   2  Prefactor     4.8760        6.5456        .45773E-07    .14948E-02
   3  norm          .16098E-08    9.5469        .11594E-06** at limit **
   4  Prefactor     .31325E-06    7.9662       -.74950E-07** at limit **
   5  Prefactor     .28078E-05    13.961       -.28107E-06** at limit **
   6  Prefactor     .37237E-06    7.2960       -.10485E-06** at limit **
   7  norm          22.302        10.760       -.19871E-07   -.92497E-01
   8  Prefactor     .11102E-09    3.7065        .51741E-07** at limit **
   9  Prefactor     .72164E-09    3.4024        .16625E-06** at limit **
  10  Prefactor     6.4956        7.7372       -.13869E-07    .11398E-03
  11  norm          3.8106        2.9513        .94929E-08    .15195E-02
  12  Prefactor     3.6848        6.9307        .11131E-06    .29729E-02
  13  norm          .11657E-08    7.0271        .24442E-06** at limit **
  14  Prefactor     .14544E-07    142.14        .24520E-06** at limit **
  15  Prefactor     .73275E-07    30.735       -.46265E-06** at limit **
  16  Prefactor      .0000        3.9181        .29615E-07** at limit **
  17  Prefactor     4.9984        23.905        .40260E-06    .19943E-01
  18  Prefactor     45.542        121.03        .51630E-06    .11329E-02
  19  norm          3.1507        .50676       -.27255E-08   -.52839E-02
  20  Prefactor     .44409E-09    6.4439        .69255E-07** at limit **
  21  Prefactor     .55511E-10    4.9424       -.50723E-07** at limit **
  22  norm          17.251        10.867        .15687E-07   -.15393    
  23  Normalizat    .80999        .26146        .80624E-07    .18419E-03
  24  Prefactor     1.4464        .31991        .12603E-06    .16793E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.64173e-07
  Prefactor  = 4.87598
  norm       = 1.60982e-09
  Prefactor  = 3.13249e-07
  Prefactor  = 2.80781e-06
  Prefactor  = 3.72369e-07
  norm       = 22.3017
  Prefactor  = 1.11022e-10
  Prefactor  = 7.21645e-10
  Prefactor  = 6.49559
  norm       = 3.81061
  Prefactor  = 3.68479
  norm       = 1.16573e-09
  Prefactor  = 1.45439e-08
  Prefactor  = 7.32747e-08
  Prefactor  = 0
  Prefactor  = 4.99835
  Prefactor  = 45.5416
  norm       = 3.15067
  Prefactor  = 4.44089e-10
  Prefactor  = 5.55112e-11
  norm       = 17.2508
  Normalizat = 0.809989
  Prefactor  = 1.44638
 **********
 **   18 **HESSE 
 **********

 FCN=   4492.770     FROM HESSE     STATUS=OK           443 CALLS     2534 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96417E-06    23.132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8760        6.5405        .45784E-03   -1.5664    
   3  norm          .16098E-08    9.5543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31325E-06    13.580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .28078E-05    21.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .37237E-06    13.883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.302        17.677        .20993E-03   -1.5614    
   8  Prefactor     .11102E-09    3.7124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .72164E-09    3.3981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4956        7.7952        .39742E-03   -1.5657    
  11  norm          3.8106        2.9535        .51883E-03   -1.5669    
  12  Prefactor     3.6848        7.0109        .52751E-03   -1.5670    
  13  norm          .11657E-08    7.0030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14544E-07    141.58        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .73275E-07    30.948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.9051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9984        57.500        .77224E-03   -1.5663    
  18  Prefactor     45.542        119.74        .21340E-03   -1.5573    
  19  norm          3.1507        .50690        .41658E-03   -1.5672    
  20  Prefactor     .44409E-09    6.4504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    4.9441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.251        15.373        .23943E-03   -1.5625    
  23  Normalizat    .80999        .22020        .66117E-01   -.99699    
  24  Prefactor     1.4464        .26770        .65005E-01   -.79053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7765e-07
Minuit parameter uncertainties:
  1  0.00944527
  2  6.54046
  3  0.000247078
  4  0.00412504
  5  0.015449
  6  0.00454746
  7  17.677
  8  3.77761e-05
  9  9.88509e-05
  10  7.79524
  11  2.95349
  12  7.01093
  13  0.000178902
  14  0.0028721
  15  0.00301146
  16  1.78606e-05
  17  33.9064
  18  119.744
  19  0.506897
  20  0.000108438
  21  2.87999e-05
  22  15.3732
  23  0.22044
  24  0.267959
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.166e-09  1.789e-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:  1.446e+00  2.680e-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:  8.100e-01  2.204e-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: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362323/likelihoodResults_695001601_695260801_4FGL_J1023.1+3949_daily_bin1758.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) = 4492.76951401
delta logL = -1.70251314557e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4492.76951359
delta logL = -1.28648116515e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65881E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    2.4199       1.0000          .0000       5.0000    
     3 'Normalizat'    .81027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4460       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=   4492.770     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      240 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        8.7107       -.25712E-06** at limit **
   2  alpha         1.9607        3.4554        .10438E-04     .0000    
   3  Normalizat    .80999        .24945        .66769E-05   -.12539E-05
   4  Prefactor     1.4464        .31858       -.73495E-05    .20297E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.96066
  Normalizat = 0.809987
  Prefactor  = 1.44638
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4492.770     FROM HESSE     STATUS=FAILED        11 CALLS      251 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        8.6387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .83759        1.1682        .10438E-04   -.21744    
   3  Normalizat    .80999        1.1486        .66769E-05   -.99699    
   4  Prefactor     1.4464        1.0547       -.73495E-05   -.79053    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.54689e-12
Minuit parameter uncertainties:
  1  1.70956e-05
  2  1.00522
  3  1.1861
  4  1.07122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362323': 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): 101
logL (Free Index) = 4492.76951231
delta logL = 1.14596332423e-10

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  0.000e+00  1.710e-05  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  1.961e+00  1.005e+00  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.446e+00  1.071e+00  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:  8.100e-01  1.186e+00  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/362323/cmap_HighResolution_695001601_695260801_4FGL_J1023.1+3949_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-05', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2023-01-13 00:45:30.576350', job_id='362323', GAL2='1.45', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1673599530.58', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='1.15e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1758' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:45:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 362323: <4FGL_J1023.1+3949_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 00:30:28 2023
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:32:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:32:26 2023
Terminated at Fri Jan 13 00:45:31 2023
Results reported at Fri Jan 13 00:45:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1758 155.788 39.8226 695001601 695260801 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 :                                   576.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            903 sec.

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

