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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin1729
RA = 325.701, Dec = 19.982
tmin = 687484801, tmax = 687744001
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='378640', job_status='RUN', time_executed='2022-10-18 00:35:34.492921', time_epoch_executed='1666078534.49' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='1729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378640/ft1_4FGL_J2142.8+1958_daily_bin1729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378640/ft2_4FGL_J2142.8+1958_daily_bin1729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378640/ft1_4FGL_J2142.8+1958_daily_bin1729.fits outfile=/scratch/kocevski/378640/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin1729.fits ra=325.701 dec=19.982 rad=12.0 tmin=687484801.0 tmax=687744001.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 4.59
user 3.35
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378640/ft1_filtered_4FGL_J2142.8+1958_daily_bin1729.fits" evtable="EVENTS" scfile=/scratch/kocevski/378640/ft2_4FGL_J2142.8+1958_daily_bin1729.fits sctable="SC_DATA" outfile=/scratch/kocevski/378640/ltcube_687484801_687744001_4FGL_J2142.8+1958_daily_bin1729.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/378640/ft2_4FGL_J2142.8+1958_daily_bin1729.fits
.....................!
real 12.30
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378640/ft1_filtered_4FGL_J2142.8+1958_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/378640/ft2_4FGL_J2142.8+1958_daily_bin1729.fits sctable="SC_DATA" expcube=/scratch/kocevski/378640/ltcube_687484801_687744001_4FGL_J2142.8+1958_daily_bin1729.fits outfile=/scratch/kocevski/378640/expmap_687484801_687744001_4FGL_J2142.8+1958_daily_bin1729.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/378640/ltcube_687484801_687744001_4FGL_J2142.8+1958_daily_bin1729.fits
.....................!
real 190.94
user 185.73
sys 4.86

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/378640/ft1_filtered_4FGL_J2142.8+1958_daily_bin1729.fits scfile=/scratch/kocevski/378640/ft2_4FGL_J2142.8+1958_daily_bin1729.fits outfile=/scratch/kocevski/378640/cmap_687484801_687744001_4FGL_J2142.8+1958_daily_bin1729.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378640/ft1_filtered_4FGL_J2142.8+1958_daily_bin1729.fits scfile=/scratch/kocevski/378640/ft2_4FGL_J2142.8+1958_daily_bin1729.fits outfile=/scratch/kocevski/378640/cmap_HighResolution_687484801_687744001_4FGL_J2142.8+1958_daily_bin1729.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.54
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64719E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .56099E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .82604E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15733E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.8066       1.0000          .0000       .10000E+07
     6 'norm      '    5.7843       1.0000          .0000       .10000E+07
     7 'norm      '    1.9755       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9868       1.0000          .0000       .10000E+07
     9 'Prefactor '    58.717       1.0000          .0000       .10000E+07
    10 'norm      '    2.3968       1.0000          .0000       .10000E+07
    11 'Prefactor '    .57753E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .51158E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .29179E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .14098       1.0000          .0000       .10000E+07
    15 'Prefactor '    .67165E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .10769E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    51.268       1.0000          .0000       .10000E+07
    18 'norm      '    5.1682       1.0000          .0000       .10000E+07
    19 'Prefactor '    .69967       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2554       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82201       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=   6955.000     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     1743 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.759        .14751E-07** at limit **
   2  Prefactor      .0000        45.814       -.73760E-07** at limit **
   3  Prefactor      .0000        3.3806       -.89656E-08** at limit **
   4  Prefactor      .0000        6.9732       -.39538E-07** at limit **
   5  Prefactor     1.8232        5.0088        .12068E-06   -.27084E-03
   6  norm          5.7513        6.0517       -.15977E-07    .10294E-04
   7  norm          1.9756        2.0579        .18034E-07   -.52670E-03
   8  Prefactor     2.9390        6.6638       -.45194E-07    .63008E-04
   9  Prefactor     56.731        126.45       -.58536E-06    .13549E-03
  10  norm          2.4018        2.7946        .30766E-07    .27162E-03
  11  Prefactor      .0000        5.4797       -.31776E-07** at limit **
  12  norm           .0000        4.0928       -.74126E-07** at limit **
  13  Prefactor      .0000        22.314        .13106E-06** at limit **
  14  norm          .13841        3.5955       -.30432E-07** at limit **
  15  Prefactor     .11102E-09    32.382       -.45131E-07** at limit **
  16  norm           .0000        .46598        .23040E-09** at limit **
  17  Prefactor     51.322        11.134        .17536E-06   -.11215E-01
  18  norm          5.1627        5.4472        .20961E-07   -.19084E-03
  19  Prefactor     .63792        88.629       -.21731E-05   -.96976E-03
  20  Normalizat    1.2558        .28963        .91051E-06   -.86584E-05
  21  Prefactor     .82209        .11519       -.56347E-06    .13358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.82321
  norm       = 5.75135
  norm       = 1.97557
  Prefactor  = 2.93902
  Prefactor  = 56.7308
  norm       = 2.40184
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0.138413
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 51.3222
  norm       = 5.1627
  Prefactor  = 0.637922
  Normalizat = 1.25581
  Prefactor  = 0.822089
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.000     FROM HESSE     STATUS=OK           365 CALLS     2108 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        45.623        .15305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        3.3804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        6.9846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8232        5.1578        .77717E-03   -1.5681    
   6  norm          5.7513        6.1997        .41737E-03   -1.5660    
   7  norm          1.9756        2.0489        .73728E-03   -1.5680    
   8  Prefactor     2.9390        6.6959        .58716E-03   -1.5674    
   9  Prefactor     56.731        126.96        .13051E-03   -1.5557    
  10  norm          2.4018        2.8123        .66118E-03   -1.5677    
  11  Prefactor      .0000        5.4662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        4.0082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        22.373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .13841        .82874        .40433E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-09    32.434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .46357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     51.322        28.142        .13967E-03   -1.5565    
  18  norm          5.1627        5.4652        .44197E-03   -1.5663    
  19  Prefactor     .63792        94.618        .60735E-03   -1.5692    
  20  Normalizat    1.2558        .24913        .76534E-01   -.84895    
  21  Prefactor     .82209        .96207E-01    .44003E-01   -.98919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80081e-08
Minuit parameter uncertainties:
  1  3.35101e-05
  2  3.53849e-05
  3  1.07608e-06
  4  2.6337e-06
  5  5.15777
  6  6.19971
  7  2.04888
  8  6.69595
  9  126.965
  10  2.81232
  11  5.346e-06
  12  1.79002e-06
  13  2.81065e-05
  14  0.677373
  15  0.00012603
  16  4.78196e-07
  17  28.142
  18  5.46521
  19  15.5385
  20  0.249367
  21  0.0962267
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  5.673e+01  1.270e+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:  8.221e-01  9.623e-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.256e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/378640/likelihoodResults_687484801_687744001_4FGL_J2142.8+1958_daily_bin1729.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) = 6954.8690239
delta logL = 0.130685896418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6954.86060881
delta logL = 0.13910098624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.013       1.0000          .0000       .10000E+07
     2 'Index     '    2.4254       1.0000          .0000       10.000    
     3 'Normalizat'    1.2353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82480       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6954.861     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      332 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.975        2366.4        .85277E-05    .51726E-03
   2  Index         2.4255        5.6689        .75371E-02    .79698E-04
   3  Normalizat    1.2336        .33766        .34133E-03    .16653E-03
   4  Prefactor     .82551        .11518        .16610E-03   -.54026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9748
  Index      = 2.42554
  Normalizat = 1.23356
  Prefactor  = 0.825513
 **********
 **   18 **HESSE 
 **********

 FCN=   6954.861     FROM HESSE     STATUS=OK            25 CALLS      357 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.975        86.059        .34111E-06   -1.5614    
   2  Index         2.4255        1.3546        .30148E-03   -.54088    
   3  Normalizat    1.2336        .28380        .13653E-04   -.85572    
   4  Prefactor     .82551        .11423        .33220E-04   -.98795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23944e-09
Minuit parameter uncertainties:
  1  86.0634
  2  1.37825
  3  0.284155
  4  0.114265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378640': 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) = 6954.86058713
delta logL = 0.139122669428

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  2.197e+01  8.606e+01  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  2.426e+00  1.378e+00  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.255e-01  1.143e-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:  1.234e+00  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/378640/cmap_HighResolution_687484801_687744001_4FGL_J2142.8+1958_daily_bin1729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2022-10-18 00:46:04.982890', job_id='378640', GAL2='0.83', fit_tolerance='1e-08', EG2='1.23', EG='1.26', time_epoch_completed='1666079164.98', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.39e-01', ts2='0.53', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1729' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:46:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 378640: <4FGL_J2142.8+1958_daily_bin1729> in cluster <slac> Done

Job <4FGL_J2142.8+1958_daily_bin1729> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Oct 18 00:35:22 2022
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:35:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:35:22 2022
Terminated at Tue Oct 18 00:46:05 2022
Results reported at Tue Oct 18 00:46:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin1729 325.701 19.982 687484801 687744001 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            643 sec.

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

