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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin1761
RA = 325.701, Dec = 19.982
tmin = 695779201, tmax = 696038401
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='933615', job_status='RUN', time_executed='2023-01-22 01:36:46.175574', time_epoch_executed='1674380206.18' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933615/ft1_4FGL_J2142.8+1958_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933615/ft2_4FGL_J2142.8+1958_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933615/ft1_4FGL_J2142.8+1958_daily_bin1761.fits outfile=/scratch/kocevski/933615/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1761.fits ra=325.701 dec=19.982 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.16
user 4.82
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933615/ft2_4FGL_J2142.8+1958_daily_bin1761.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/933615/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1761.fits evtable="EVENTS" outfile="/scratch/kocevski/933615/ft1_filtered_4FGL_J2142.8+1958_daily_bin1761.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.34
sys 0.16

Number of photons that the gtmktime cut: 821

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933615/ft1_filtered_4FGL_J2142.8+1958_daily_bin1761.fits" evtable="EVENTS" scfile=/scratch/kocevski/933615/ft2_4FGL_J2142.8+1958_daily_bin1761.fits sctable="SC_DATA" outfile=/scratch/kocevski/933615/ltcube_695779201_696038401_4FGL_J2142.8+1958_daily_bin1761.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/933615/ft2_4FGL_J2142.8+1958_daily_bin1761.fits
.....................!
real 15.03
user 14.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933615/ft1_filtered_4FGL_J2142.8+1958_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/933615/ft2_4FGL_J2142.8+1958_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/933615/ltcube_695779201_696038401_4FGL_J2142.8+1958_daily_bin1761.fits outfile=/scratch/kocevski/933615/expmap_695779201_696038401_4FGL_J2142.8+1958_daily_bin1761.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/933615/ltcube_695779201_696038401_4FGL_J2142.8+1958_daily_bin1761.fits
.....................!
real 191.84
user 186.40
sys 4.70

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/933615/ft1_filtered_4FGL_J2142.8+1958_daily_bin1761.fits scfile=/scratch/kocevski/933615/ft2_4FGL_J2142.8+1958_daily_bin1761.fits outfile=/scratch/kocevski/933615/cmap_695779201_696038401_4FGL_J2142.8+1958_daily_bin1761.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933615/ft1_filtered_4FGL_J2142.8+1958_daily_bin1761.fits scfile=/scratch/kocevski/933615/ft2_4FGL_J2142.8+1958_daily_bin1761.fits outfile=/scratch/kocevski/933615/cmap_HighResolution_695779201_696038401_4FGL_J2142.8+1958_daily_bin1761.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.59
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31530E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .99088E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .87304E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16347E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.2143       1.0000          .0000       .10000E+07
     6 'norm      '    .20910E-03   1.0000          .0000       .10000E+07
     7 'norm      '    3.4495       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.1956       1.0000          .0000       .10000E+07
     9 'Prefactor '    .96006E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.9980       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19776E-02   1.0000          .0000       .10000E+07
    12 'norm      '    3.7323       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.641       1.0000          .0000       .10000E+07
    14 'norm      '    .20212E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .30008E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .23556       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.9135       1.0000          .0000       .10000E+07
    18 'norm      '    1.0739       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.4991       1.0000          .0000       .10000E+07
    20 'Normalizat'    .37407       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1570       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=   8785.351     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1363 TOTAL
                     EDM=   .51E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.6336        .35186E-07** at limit **
   2  Prefactor      .0000        27.712        .20755E-07** at limit **
   3  Prefactor      .0000        46.477       -.48998E-07** at limit **
   4  Prefactor      .0000        14.494       -.40885E-06** at limit **
   5  Prefactor     1.2676        3.4914       -.47440E-07   -.16615E-05
   6  norm           .0000        5.8704       -.34214E-07** at limit **
   7  norm          3.4575        3.5446       -.47243E-07    .11033E-03
   8  Prefactor     8.2476        6.7583       -.59623E-07    .50210E-05
   9  Prefactor      .0000        42.921        .32874E-06** at limit **
  10  norm          2.9663        2.3772       -.27457E-07   -.28732E-03
  11  Prefactor     .12768E-08    290.08        .90919E-06** at limit **
  12  norm          3.7352        2.4050        .36993E-07   -.84655E-03
  13  Prefactor     16.108        29.138        .60832E-07   -.61912E-04
  14  norm           .0000        .68017        .88880E-07** at limit **
  15  Prefactor      .0000        14.544        .55642E-09** at limit **
  16  norm          .23416        .56296       -.24216E-07** at limit **
  17  Prefactor     2.0365        36.941       -.18861E-06   -.97378E-05
  18  norm          1.0774        2.3721       -.11151E-07   -.11251E-03
  19  Prefactor     4.4922        7.3863       -.17748E-08    .16726E-04
  20  Normalizat    .37168        .25726        .77505E-06   -.14717E-05
  21  Prefactor     1.1573        .10593        .16485E-05    .13531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.26758
  norm       = 0
  norm       = 3.45753
  Prefactor  = 8.24757
  Prefactor  = 0
  norm       = 2.96629
  Prefactor  = 1.27676e-09
  norm       = 3.73519
  Prefactor  = 16.1079
  norm       = 0
  Prefactor  = 0
  norm       = 0.234159
  Prefactor  = 2.03654
  norm       = 1.07745
  Prefactor  = 4.49217
  Normalizat = 0.371679
  Prefactor  = 1.15729
 **********
 **   18 **HESSE 
 **********

 FCN=   8785.351     FROM HESSE     STATUS=OK           377 CALLS     1740 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.6351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        27.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        8.5400        .94621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        14.445        .17290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2676        3.5332        .10251E-02   -1.5685    
   6  norm           .0000        5.8424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4575        3.5783        .54430E-03   -1.5671    
   8  Prefactor     8.2476        6.9225        .34996E-03   -1.5651    
   9  Prefactor      .0000        43.058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9663        2.4249        .58599E-03   -1.5674    
  11  Prefactor     .12768E-08    5.9857        .64114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7352        2.4256        .52242E-03   -1.5669    
  13  Prefactor     16.108        29.648        .26150E-03   -1.5628    
  14  norm           .0000        .67778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        14.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .23416        .56967        .25105E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0365        40.437        .75113E-03   -1.5679    
  18  norm          1.0774        2.7711        .48832E-02   -1.5687    
  19  Prefactor     4.4922        7.4486        .47443E-03   -1.5666    
  20  Normalizat    .37168        .30016        .12606       -1.1879    
  21  Prefactor     1.1573        .11421        .35736E-01   -.87656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54457e-07
Minuit parameter uncertainties:
  1  2.22229e-06
  2  1.13302e-06
  3  8.12883e-06
  4  3.57816e-05
  5  3.53323
  6  2.11859e-06
  7  3.57827
  8  6.92246
  9  4.74538e-05
  10  2.42492
  11  0.000173822
  12  2.42556
  13  29.6488
  14  1.7375e-06
  15  5.36206e-06
  16  0.569675
  17  18.1497
  18  2.77105
  19  7.44863
  20  0.301471
  21  0.114239
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  4.745e-05  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.157e+00  1.142e-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.717e-01  3.015e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933615/likelihoodResults_695779201_696038401_4FGL_J2142.8+1958_daily_bin1761.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) = 8785.36176265
delta logL = -0.0110831248603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8785.35067973
delta logL = -2.08425262826e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22654E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .24650E-03   1.0000          .0000       10.000    
     3 'Normalizat'    .37173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1572       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.

 FCN=   8785.351     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      239 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88818E-09    15.906        .42118E-03** at limit **
   2  Index         .30800E-01    5.9103        .50000       -.27285E-10
   3  Normalizat    .37168        .23715        .12606        .43533E-03
   4  Prefactor     1.1573        .10590        .35730E-01    .10884E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88178e-10
  Index      = 0.0307997
  Normalizat = 0.371682
  Prefactor  = 1.15729
 **********
 **   18 **HESSE 
 **********

 FCN=   8785.351     FROM HESSE     STATUS=OK            27 CALLS      266 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88818E-09    15.886        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .30800E-01    5.9091        .50000       -1.4597    
   3  Normalizat    .37168        .22967        .55814E-03   -1.1879    
   4  Prefactor     1.1573        .10274        .14477E-03   -.87656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14527e-10
Minuit parameter uncertainties:
  1  0.000236756
  2  0.554134
  3  0.230252
  4  0.102756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933615': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8785.35067952
delta logL = -2.58296495304e-10

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  8.882e-10  2.368e-04  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  3.080e-02  5.541e-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:  1.157e+00  1.028e-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.717e-01  2.303e-01  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/933615/cmap_HighResolution_695779201_696038401_4FGL_J2142.8+1958_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-03', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2023-01-22 01:48:19.554532', job_id='933615', GAL2='1.16', fit_tolerance='1e-08', EG2='0.37', EG='0.37', time_epoch_completed='1674380899.55', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-2.58e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1761' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:48:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 933615: <4FGL_J2142.8+1958_daily_bin1761> in cluster <slac> Done

Job <4FGL_J2142.8+1958_daily_bin1761> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan 22 01:35:29 2023
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:36:36 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:36:36 2023
Terminated at Sun Jan 22 01:48:20 2023
Results reported at Sun Jan 22 01:48:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin1761 325.701 19.982 695779201 696038401 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 :                                   694.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             379.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            771 sec.

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

