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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin1764
RA = 325.701, Dec = 19.982
tmin = 696556801, tmax = 696816001
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='464665', job_status='RUN', time_executed='2023-01-31 01:57:50.756982', time_epoch_executed='1675159070.76' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464665

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464665/ft1_4FGL_J2142.8+1958_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464665/ft1_4FGL_J2142.8+1958_daily_bin1764.fits outfile=/scratch/kocevski/464665/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1764.fits ra=325.701 dec=19.982 rad=12.0 tmin=696556801.0 tmax=696816001.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.78
user 3.49
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.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/464665/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/464665/ft1_filtered_4FGL_J2142.8+1958_daily_bin1764.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 739

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/464665/ft1_filtered_4FGL_J2142.8+1958_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/464665/ltcube_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.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/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits
.....................!
real 14.88
user 14.35
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464665/ft1_filtered_4FGL_J2142.8+1958_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/464665/ltcube_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.fits outfile=/scratch/kocevski/464665/expmap_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.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/464665/ltcube_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.fits
.....................!
real 192.24
user 186.12
sys 5.23

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2142.8+1958 @ 325.701 19.982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/464665/ft1_filtered_4FGL_J2142.8+1958_daily_bin1764.fits scfile=/scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits outfile=/scratch/kocevski/464665/cmap_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.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=325.701 yref=19.982 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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/464665/ft1_filtered_4FGL_J2142.8+1958_daily_bin1764.fits scfile=/scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits outfile=/scratch/kocevski/464665/cmap_HighResolution_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.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=325.701 yref=19.982 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/464665/ft1_filtered_4FGL_J2142.8+1958_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/464665/Model_4FGL_J2142.8+1958_daily_bin1764.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/464665/ft1_filtered_4FGL_J2142.8+1958_daily_bin1764.fits.....................!
real 114.45
user 112.78
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/464665/ft1_filtered_4FGL_J2142.8+1958_daily_bin1764.fits', '/scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits', expMap='/scratch/kocevski/464665/expmap_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.fits', expCube='/scratch/kocevski/464665/ltcube_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/464665/Model_4FGL_J2142.8+1958_daily_bin1764.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.8+1958'

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  4.708e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/464665/ft1_filtered_4FGL_J2142.8+1958_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/464665/ft2_4FGL_J2142.8+1958_daily_bin1764.fits
Exposure map: /scratch/kocevski/464665/expmap_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.fits
Exposure cube: /scratch/kocevski/464665/ltcube_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/464665/Model_4FGL_J2142.8+1958_daily_bin1764.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) = 7725.40582002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.346       1.0000          .0000       .10000E+07
     2 'Prefactor '    143.32       1.0000          .0000       .10000E+07
     3 'Prefactor '    26.000       1.0000          .0000       .10000E+07
     4 'Prefactor '    53.848       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.9259       1.0000          .0000       .10000E+07
     6 'norm      '    .12355       1.0000          .0000       .10000E+07
     7 'norm      '    3.4518       1.0000          .0000       .10000E+07
     8 'Prefactor '    .46574E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10083       1.0000          .0000       .10000E+07
    10 'norm      '    .16540E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.2744       1.0000          .0000       .10000E+07
    12 'norm      '    .58155E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.4852       1.0000          .0000       .10000E+07
    14 'norm      '    .40244E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    12.880       1.0000          .0000       .10000E+07
    16 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Prefactor '    .21350E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .23515E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .37312E-01   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0172       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7725.214     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1736 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.747        15.824        .11331E-08   -.48962E-02
   2  Prefactor     138.80        86.775       -.73926E-09    .54863E-02
   3  Prefactor     26.051        13.631       -.71643E-08    .17883    
   4  Prefactor     54.633        21.471        .61594E-08   -.32410    
   5  Prefactor     3.9612        5.7578        .22597E-10    .18089E-01
   6  norm          .16196        47.265       -.15559E-08** at limit **
   7  norm          3.4446        5.3995       -.40165E-09    .24215E-03
   8  Prefactor      .0000        2.1302        .24218E-09** at limit **
   9  Prefactor     .15543E-08    41.225       -.67906E-09** at limit **
  10  norm          .55511E-10    .78585       -.10103E-09** at limit **
  11  Prefactor     7.2448        6.7096       -.69800E-10    .33354E-03
  12  norm           .0000        1.9379       -.49423E-10** at limit **
  13  Prefactor     7.8543        21.918        .19755E-08   -.15126E-01
  14  norm           .0000        1.2242       -.52531E-10** at limit **
  15  Prefactor     15.099        38.735       -.45340E-08    .58594E-01
  16  norm           .0000        .71116       -.50239E-10** at limit **
  17  Prefactor     .55511E-10    5.7715        .60723E-10** at limit **
  18  norm          .55511E-10    1.3727       -.12003E-09** at limit **
  19  Prefactor     .63755E-06    91.292       -.99651E-08** at limit **
  20  Normalizat    1.0177        .25558       -.93895E-08   -.75364E-04
  21  Prefactor     .87416        .11265        .38865E-08    .57783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7472
  Prefactor  = 138.801
  Prefactor  = 26.0506
  Prefactor  = 54.6332
  Prefactor  = 3.96121
  norm       = 0.161957
  norm       = 3.44463
  Prefactor  = 0
  Prefactor  = 1.55431e-09
  norm       = 5.55112e-11
  Prefactor  = 7.24481
  norm       = 0
  Prefactor  = 7.85428
  norm       = 0
  Prefactor  = 15.099
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 6.37546e-07
  Normalizat = 1.01766
  Prefactor  = 0.874162
 **********
 **   18 **HESSE 
 **********

 FCN=   7725.214     FROM HESSE     STATUS=OK           377 CALLS     2113 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.747        16.030        .26419E-03   -1.5634    
   2  Prefactor     138.80        86.100        .83537E-04   -1.5472    
   3  Prefactor     26.051        15.568        .19616E-03   -1.5606    
   4  Prefactor     54.633        36.801        .13628E-03   -1.5560    
   5  Prefactor     3.9612        5.9430        .50891E-03   -1.5668    
   6  norm          .16196        3.3162        .87347E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4446        5.5454        .54410E-03   -1.5671    
   8  Prefactor      .0000        2.1331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15543E-08    41.243        .13907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .78531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2448        6.7061        .37165E-03   -1.5654    
  12  norm           .0000        1.8902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8543        22.127        .34390E-03   -1.5652    
  14  norm           .0000        1.2003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.099        40.876        .27885E-03   -1.5630    
  16  norm           .0000        .33798        .19141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    5.7745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55511E-10    1.3732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .63755E-06    4.3775        .10924E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0177        .22003        .79599E-01   -.92441    
  21  Prefactor     .87416        .93966E-01    .44670E-01   -.97050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32165e-06
Minuit parameter uncertainties:
  1  16.0298
  2  86.1006
  3  15.568
  4  36.801
  5  5.94303
  6  1.46572
  7  5.54537
  8  3.62682e-06
  9  0.000505265
  10  1.35465e-05
  11  6.70609
  12  1.01226e-05
  13  22.1277
  14  6.80288e-06
  15  40.877
  16  3.54785e-06
  17  4.26941e-05
  18  2.01537e-05
  19  0.00334121
  20  0.220229
  21  0.0939834
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.554e-09  5.053e-04  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.742e-01  9.398e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.018e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 4.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/464665/likelihoodResults_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.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) = 7725.22508623
delta logL = -0.0115657889091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7725.21352245
delta logL = -2.01160128199e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11747E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.4846       1.0000          .0000       10.000    
     3 'Normalizat'    1.0174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7725.214     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      247 TOTAL
                     EDM=   .12E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.887        .42118E-03** at limit **
   2  Index         .13167E-01    .22254        .34236E-04     .0000    
   3  Normalizat    1.0177        1.2748       -.46532E-05   -.19822E-05
   4  Prefactor     .87416        1.2203        .14754E-05    .44291E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.0131674
  Normalizat = 1.01767
  Prefactor  = 0.874159
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7725.214     FROM HESSE     STATUS=FAILED         9 CALLS      256 TOTAL
                     EDM=   .12E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .82480        .58909        .34236E-04   -1.6434    
   3  Normalizat    1.0177        1.2748       -.46532E-05   -.92441    
   4  Prefactor     .87416        1.2203        .14754E-05   -.97050    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.17079e-13
Minuit parameter uncertainties:
  1  1.60901e-06
  2  0.108741
  3  1.31642
  4  1.26181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464665': 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) = 7725.21352044
delta logL = 4.08363121096e-10

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.609e-06  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.317e-02  1.087e-01  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.742e-01  1.262e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.018e+00  1.316e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.701 19.982

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/464665/cmap_HighResolution_696556801_696816001_4FGL_J2142.8+1958_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2023-01-31 02:09:14.423927', job_id='464665', GAL2='0.87', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1675159754.42', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.08e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1764' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 02:09:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 464665: <4FGL_J2142.8+1958_daily_bin1764> in cluster <slac> Done

Job <4FGL_J2142.8+1958_daily_bin1764> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jan 31 01:55:16 2023
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 01:56:09 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 01:56:09 2023
Terminated at Tue Jan 31 02:09:15 2023
Results reported at Tue Jan 31 02:09:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin1764 325.701 19.982 696556801 696816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2142.8+1958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   684.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             348.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            839 sec.

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

