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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin1710
RA = 325.701, Dec = 19.982
tmin = 682560001, tmax = 682819201
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='234650', job_status='RUN', time_executed='2022-09-16 23:25:09.635870', time_epoch_executed='1663395909.64' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234650/ft1_4FGL_J2142.8+1958_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234650/ft1_4FGL_J2142.8+1958_daily_bin1710.fits outfile=/scratch/kocevski/234650/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1710.fits ra=325.701 dec=19.982 rad=12.0 tmin=682560001.0 tmax=682819201.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.04
user 2.83
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.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/234650/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/234650/ft1_filtered_4FGL_J2142.8+1958_daily_bin1710.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.45
user 0.29
sys 0.15

Number of photons that the gtmktime cut: 835

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/234650/ft1_filtered_4FGL_J2142.8+1958_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/234650/ltcube_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.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/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.fits
.....................!
real 12.38
user 11.98
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234650/ft1_filtered_4FGL_J2142.8+1958_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/234650/ltcube_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.fits outfile=/scratch/kocevski/234650/expmap_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.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/234650/ltcube_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.fits
.....................!
real 156.58
user 152.05
sys 4.21

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/234650/ft1_filtered_4FGL_J2142.8+1958_daily_bin1710.fits scfile=/scratch/kocevski/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.fits outfile=/scratch/kocevski/234650/cmap_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234650/ft1_filtered_4FGL_J2142.8+1958_daily_bin1710.fits scfile=/scratch/kocevski/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.fits outfile=/scratch/kocevski/234650/cmap_HighResolution_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.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.48
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/234650/ft1_filtered_4FGL_J2142.8+1958_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/234650/Model_4FGL_J2142.8+1958_daily_bin1710.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/234650/ft1_filtered_4FGL_J2142.8+1958_daily_bin1710.fits.....................!
real 100.50
user 99.27
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/234650/ft1_filtered_4FGL_J2142.8+1958_daily_bin1710.fits', '/scratch/kocevski/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.fits', expMap='/scratch/kocevski/234650/expmap_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.fits', expCube='/scratch/kocevski/234650/ltcube_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/234650/Model_4FGL_J2142.8+1958_daily_bin1710.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/234650/ft1_filtered_4FGL_J2142.8+1958_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/234650/ft2_4FGL_J2142.8+1958_daily_bin1710.fits
Exposure map: /scratch/kocevski/234650/expmap_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.fits
Exposure cube: /scratch/kocevski/234650/ltcube_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/234650/Model_4FGL_J2142.8+1958_daily_bin1710.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) = 8892.87612416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.031       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11730E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .96497E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .14522E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .78247       1.0000          .0000       .10000E+07
     6 'norm      '    .16436E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .71104E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    6.4841       1.0000          .0000       .10000E+07
     9 'Prefactor '    .25715E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .17254       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.0510       1.0000          .0000       .10000E+07
    12 'norm      '    .32888       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.549       1.0000          .0000       .10000E+07
    14 'norm      '    .54096E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .47889E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .34342       1.0000          .0000       .10000E+07
    17 'Prefactor '    33.759       1.0000          .0000       .10000E+07
    18 'norm      '    .59549E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34695E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .35552       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2273       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=   8892.754     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     1796 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.998        1.4475        .65892E-08   -.17787E-01
   2  Prefactor     .19821E-05    18.418        .12536E-06** at limit **
   3  Prefactor     .55511E-10    3.7343        .37155E-08** at limit **
   4  Prefactor     .27134E-06    10.859        .12082E-06** at limit **
   5  Prefactor     .78197        3.7906       -.22658E-06   -.13215E-02
   6  norm          .13922E-06    17.933        .27492E-06** at limit **
   7  norm           .0000        1.3891       -.56243E-07** at limit **
   8  Prefactor     6.4986        6.5426       -.47015E-07    .92154E-03
   9  Prefactor     .10497E-05    13.560        .11885E-06** at limit **
  10  norm          .17231        2.1353        .11648E-06** at limit **
  11  Prefactor     6.0496        7.0554        .44130E-08    .55591E-03
  12  norm          .32465        4.9038        .26155E-07    .58154E-03
  13  Prefactor     14.645        3.0022       -.52097E-09   -.13054E-01
  14  norm           .0000        1.5976        .26228E-07** at limit **
  15  Prefactor     .75773E-07    48.877       -.51512E-07** at limit **
  16  norm          .34238        .74371        .28872E-07    .10856E-02
  17  Prefactor     33.464        11.288        .16403E-07    .13756    
  18  norm          .55511E-10    3.2947        .55547E-07** at limit **
  19  Prefactor     .16653E-09    6.2885       -.11830E-06** at limit **
  20  Normalizat    .35625        .24995       -.50156E-05    .16443E-04
  21  Prefactor     1.2272        .10936        .15462E-05    .14340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.998
  Prefactor  = 1.98208e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 2.71339e-07
  Prefactor  = 0.781974
  norm       = 1.39222e-07
  norm       = 0
  Prefactor  = 6.49857
  Prefactor  = 1.04972e-06
  norm       = 0.172309
  Prefactor  = 6.04957
  norm       = 0.324646
  Prefactor  = 14.6452
  norm       = 0
  Prefactor  = 7.57727e-08
  norm       = 0.342385
  Prefactor  = 33.4638
  norm       = 5.55112e-11
  Prefactor  = 1.66533e-10
  Normalizat = 0.356253
  Prefactor  = 1.22717
 **********
 **   18 **HESSE 
 **********

 FCN=   8892.754     FROM HESSE     STATUS=OK           375 CALLS     2171 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.998        18.910        .21812E-03   -1.5616    
   2  Prefactor     .19821E-05    24.910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    3.7385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27134E-06    27.908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .78197        3.8917        .54251E-03   -1.5690    
   6  norm          .13922E-06    17.757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.4008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4986        6.6999        .39389E-03   -1.5657    
   9  Prefactor     .10497E-05    28.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .17231        1.0994        .33036E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0496        7.0779        .40793E-03   -1.5659    
  12  norm          .32465        1.2606        .56435E-02   -1.5697    
  13  Prefactor     14.645        20.673        .26233E-03   -1.5631    
  14  norm           .0000        .43474        .22184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .75773E-07    49.008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .34238        .78342        .96358E-03   -1.5696    
  17  Prefactor     33.464        18.209        .17213E-03   -1.5592    
  18  norm          .55511E-10    3.3154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16653E-09    6.2771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .35625        .30057        .13182       -1.1963    
  21  Prefactor     1.2272        .12159        .34014E-01   -.85499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01224e-06
Minuit parameter uncertainties:
  1  18.9102
  2  0.0140532
  3  2.58116e-05
  4  0.00550365
  5  3.48897
  6  0.00314487
  7  4.11715e-06
  8  6.69994
  9  0.0108657
  10  0.870505
  11  7.07789
  12  1.26061
  13  20.673
  14  1.58084e-06
  15  0.00385406
  16  0.783422
  17  18.2086
  18  2.76656e-05
  19  6.45327e-05
  20  0.301946
  21  0.121613
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.050e-06  1.087e-02  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:  1.227e+00  1.216e-01  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:  3.563e-01  3.019e-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: 3.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/234650/likelihoodResults_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.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) = 8892.77068241
delta logL = -0.0169572474115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8892.75372684
delta logL = -1.68104088516e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42250E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .34404       1.0000          .0000       10.000    
     3 'Normalizat'    .35631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2272       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=   8892.754     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      210 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36859E-07    48.032       -.42791E-05** at limit **
   2  Index         .81704        7.6019       -.20623E-03   -.72197E-09
   3  Normalizat    .35625        .23816       -.22458E-04   -.11237E-03
   4  Prefactor     1.2272        .10842        .80139E-05   -.42062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.68594e-08
  Index      = 0.817039
  Normalizat = 0.356253
  Prefactor  = 1.22717
 **********
 **   18 **HESSE 
 **********

 FCN=   8892.754     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      245 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36859E-07    28.177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81704        8.2782        .37439       -.99103    
   3  Normalizat    .35625        .39950E-02    .13182       -1.1963    
   4  Prefactor     1.2272        .17979E-02    .34017E-01   -.85499    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52916e-10
Minuit parameter uncertainties:
  1  0.0020377
  2  21233.6
  3  0.00399498
  4  0.0017979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234650': 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) = 8892.75372514
delta logL = 1.8255377654e-08

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  3.686e-08  2.038e-03  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  8.170e-01  2.123e+04  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:  1.227e+00  1.798e-03  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:  3.563e-01  3.995e-03  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/234650/cmap_HighResolution_682560001_682819201_4FGL_J2142.8+1958_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-03', job_status='DONE', photon_flux_upper_limit='3.22e-08', time_completed='2022-09-16 23:35:17.145860', job_id='234650', GAL2='1.23', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1663396517.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1710' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:35:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 234650: <4FGL_J2142.8+1958_daily_bin1710> in cluster <slac> Done

Job <4FGL_J2142.8+1958_daily_bin1710> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 23:20:30 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:23:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:23:29 2022
Terminated at Fri Sep 16 23:35:17 2022
Results reported at Fri Sep 16 23:35:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin1710 325.701 19.982 682560001 682819201 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 :                                   609.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            887 sec.

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

