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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin1751
RA = 325.701, Dec = 19.982
tmin = 693187201, tmax = 693446401
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='87758', job_status='RUN', time_executed='2022-12-23 01:23:58.610258', time_epoch_executed='1671787438.61' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87758

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87758/ft1_4FGL_J2142.8+1958_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87758/ft2_4FGL_J2142.8+1958_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87758/ft1_4FGL_J2142.8+1958_daily_bin1751.fits outfile=/scratch/kocevski/87758/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1751.fits ra=325.701 dec=19.982 rad=12.0 tmin=693187201.0 tmax=693446401.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.62
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87758/ft2_4FGL_J2142.8+1958_daily_bin1751.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/87758/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/87758/ft1_filtered_4FGL_J2142.8+1958_daily_bin1751.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 845

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87758/ft1_filtered_4FGL_J2142.8+1958_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/87758/ft2_4FGL_J2142.8+1958_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/87758/ltcube_693187201_693446401_4FGL_J2142.8+1958_daily_bin1751.fits outfile=/scratch/kocevski/87758/expmap_693187201_693446401_4FGL_J2142.8+1958_daily_bin1751.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/87758/ltcube_693187201_693446401_4FGL_J2142.8+1958_daily_bin1751.fits
.....................!
real 193.61
user 187.65
sys 5.58

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/87758/ft1_filtered_4FGL_J2142.8+1958_daily_bin1751.fits scfile=/scratch/kocevski/87758/ft2_4FGL_J2142.8+1958_daily_bin1751.fits outfile=/scratch/kocevski/87758/cmap_693187201_693446401_4FGL_J2142.8+1958_daily_bin1751.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87758/ft1_filtered_4FGL_J2142.8+1958_daily_bin1751.fits scfile=/scratch/kocevski/87758/ft2_4FGL_J2142.8+1958_daily_bin1751.fits outfile=/scratch/kocevski/87758/cmap_HighResolution_693187201_693446401_4FGL_J2142.8+1958_daily_bin1751.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.899       1.0000          .0000       .10000E+07
     2 'Prefactor '    20.374       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.8057       1.0000          .0000       .10000E+07
     4 'Prefactor '    .60990       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7292       1.0000          .0000       .10000E+07
     6 'norm      '    .14085E-03   1.0000          .0000       .10000E+07
     7 'norm      '    1.8544       1.0000          .0000       .10000E+07
     8 'Prefactor '    .58373E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19839E-01   1.0000          .0000       .10000E+07
    10 'norm      '    1.6397       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8265       1.0000          .0000       .10000E+07
    12 'norm      '    4.5496       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.481       1.0000          .0000       .10000E+07
    14 'norm      '    .66468E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13200E-01   1.0000          .0000       .10000E+07
    16 'norm      '    .33079E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.516       1.0000          .0000       .10000E+07
    18 'norm      '    .13793E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .63979       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84523       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=   9034.910     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1666 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.299        17.467        .10961E-06   -.86801E-01
   2  Prefactor     16.065        55.904        .90242E-06    .68398E-02
   3  Prefactor     6.8391        12.655        .15060E-07    .74649E-03
   4  Prefactor     .95207        8.3038        .26996E-06   -.51133E-01
   5  Prefactor     1.7379        3.7233       -.14456E-07   -.12947E-03
   6  norm           .0000        2.3359       -.27324E-07** at limit **
   7  norm          1.8650        3.5937       -.14640E-07   -.86025E-04
   8  Prefactor      .0000        1.9407       -.85379E-08** at limit **
   9  Prefactor     .22204E-09    66.007        .13378E-06** at limit **
  10  norm          1.6255        2.3755        .14345E-07   -.15813E-02
  11  Prefactor     4.8031        7.4460        .29392E-07   -.34751E-03
  12  norm          4.5414        2.6308       -.54515E-08   -.16912E-02
  13  Prefactor     9.9501        26.251       -.60829E-06   -.17653E-01
  14  norm           .0000        1.6565        .18477E-07** at limit **
  15  Prefactor     .39154E-05    80.175        .56763E-06** at limit **
  16  norm           .0000        .36756        .40068E-08** at limit **
  17  Prefactor     23.059        16.257        .30207E-07   -.39467E-01
  18  norm           .0000        1.4244        .17347E-07** at limit **
  19  Prefactor     .66310        13.762        .34991E-06    .40985E-01
  20  Normalizat    1.3780        .27067        .24184E-06   -.12605E-04
  21  Prefactor     .84540        .10900       -.32552E-06   -.35034E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2992
  Prefactor  = 16.0646
  Prefactor  = 6.83911
  Prefactor  = 0.952067
  Prefactor  = 1.73786
  norm       = 0
  norm       = 1.86496
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  norm       = 1.62553
  Prefactor  = 4.8031
  norm       = 4.54138
  Prefactor  = 9.95015
  norm       = 0
  Prefactor  = 3.91542e-06
  norm       = 0
  Prefactor  = 23.0586
  norm       = 0
  Prefactor  = 0.663102
  Normalizat = 1.378
  Prefactor  = 0.845395
 **********
 **   18 **HESSE 
 **********

 FCN=   9034.910     FROM HESSE     STATUS=OK           371 CALLS     2037 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.299        20.154        .20460E-03   -1.5609    
   2  Prefactor     16.065        56.372        .22161E-03   -1.5628    
   3  Prefactor     6.8391        12.663        .38437E-03   -1.5656    
   4  Prefactor     .95207        138.89        .68346E-03   -1.5688    
   5  Prefactor     1.7379        3.7436        .79808E-03   -1.5682    
   6  norm           .0000        2.3310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8650        3.6472        .76516E-03   -1.5681    
   8  Prefactor      .0000        1.9422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22204E-09    65.625        .17047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6255        2.4157        .82491E-03   -1.5682    
  11  Prefactor     4.8031        7.5058        .45767E-03   -1.5664    
  12  norm          4.5414        2.6315        .47172E-03   -1.5665    
  13  Prefactor     9.9501        26.980        .30924E-03   -1.5645    
  14  norm           .0000        .56475        .25370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .39154E-05    82.606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .36507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.059        16.916        .20626E-03   -1.5612    
  18  norm           .0000        1.4233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .66310        42.550        .65737E-03   -1.5692    
  20  Normalizat    1.3780        .22929        .77445E-01   -.81267    
  21  Prefactor     .84540        .91621E-01    .44303E-01   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9458e-06
Minuit parameter uncertainties:
  1  20.1538
  2  56.374
  3  12.6631
  4  22.9988
  5  3.7436
  6  9.51493e-06
  7  3.64719
  8  6.144e-06
  9  0.000250253
  10  2.41574
  11  7.50584
  12  2.63152
  13  26.98
  14  3.14132e-06
  15  0.0359692
  16  3.68146e-09
  17  16.9158
  18  4.51798e-06
  19  10.6236
  20  0.229458
  21  0.0916373
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  2.220e-10  2.503e-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.454e-01  9.164e-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.378e+00  2.295e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87758/likelihoodResults_693187201_693446401_4FGL_J2142.8+1958_daily_bin1751.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): 0
logL (Free Index) = 9034.91729504
delta logL = -0.00727221286252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9034.91002284
delta logL = -1.78424670594e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41550E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .87057E-02   1.0000          .0000       10.000    
     3 'Normalizat'    1.3780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84539       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=   9034.910     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      253 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    1.4454        .42118E-03** at limit **
   2  Index         1.1752        8.2577        .51000       -.89166E-11
   3  Normalizat    1.3780        .84531E-03    .77445E-01    .13605E-03
   4  Prefactor     .84539        .34848E-03    .44305E-01    .34431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Index      = 1.17515
  Normalizat = 1.378
  Prefactor  = 0.845394
 **********
 **   18 **HESSE 
 **********

 FCN=   9034.910     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    7.9042        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1752        8.2975        .51000       -.87099    
   3  Normalizat    1.3780        .19735E-02    .34276E-03   -.81267    
   4  Prefactor     .84539        .81446E-03    .17445E-03   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19968e-12
Minuit parameter uncertainties:
  1  8.80715e-05
  2  150172
  3  0.00197345
  4  0.000814463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87758': 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) = 9034.91002282
delta logL = -3.45607986674e-11

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  2.220e-10  8.807e-05  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.175e+00  1.502e+05  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.454e-01  8.145e-04  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.378e+00  1.973e-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/87758/cmap_HighResolution_693187201_693446401_4FGL_J2142.8+1958_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2022-12-23 01:35:57.109601', job_id='87758', GAL2='0.85', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1671788157.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-3.46e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1751' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:35:57 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 87758: <4FGL_J2142.8+1958_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2142.8+1958_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 01:20:14 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:20:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:20:16 2022
Terminated at Fri Dec 23 01:35:57 2022
Results reported at Fri Dec 23 01:35:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin1751 325.701 19.982 693187201 693446401 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

