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 17 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1692
RA = 325.645, Dec = -25.8777
tmin = 677894401, tmax = 678153601
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='484193', job_status='RUN', time_executed='2022-06-29 04:54:35.224152', time_epoch_executed='1656503675.22' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484193

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484193/ft1_4FGL_J2142.5-2552_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484193/ft1_4FGL_J2142.5-2552_daily_bin1692.fits outfile=/scratch/kocevski/484193/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1692.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=677894401.0 tmax=678153601.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.50
user 4.21
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.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/484193/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/484193/ft1_filtered_4FGL_J2142.5-2552_daily_bin1692.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 401

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484193/ft1_filtered_4FGL_J2142.5-2552_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/484193/ltcube_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.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/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits
.....................!
real 14.50
user 14.01
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484193/ft1_filtered_4FGL_J2142.5-2552_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/484193/ltcube_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.fits outfile=/scratch/kocevski/484193/expmap_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.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/484193/ltcube_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.fits
.....................!
real 191.80
user 186.35
sys 4.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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2142.5-2552 @ 325.645 -25.8777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/484193/ft1_filtered_4FGL_J2142.5-2552_daily_bin1692.fits scfile=/scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits outfile=/scratch/kocevski/484193/cmap_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.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.645 yref=-25.8777 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484193/ft1_filtered_4FGL_J2142.5-2552_daily_bin1692.fits scfile=/scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits outfile=/scratch/kocevski/484193/cmap_HighResolution_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.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.645 yref=-25.8777 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/484193/ft1_filtered_4FGL_J2142.5-2552_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484193/Model_4FGL_J2142.5-2552_daily_bin1692.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/484193/ft1_filtered_4FGL_J2142.5-2552_daily_bin1692.fits.....................!
real 44.68
user 43.33
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484193/ft1_filtered_4FGL_J2142.5-2552_daily_bin1692.fits', '/scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits', expMap='/scratch/kocevski/484193/expmap_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.fits', expCube='/scratch/kocevski/484193/ltcube_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484193/Model_4FGL_J2142.5-2552_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.5-2552'

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  2.690e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.208e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/484193/ft1_filtered_4FGL_J2142.5-2552_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/484193/ft2_4FGL_J2142.5-2552_daily_bin1692.fits
Exposure map: /scratch/kocevski/484193/expmap_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.fits
Exposure cube: /scratch/kocevski/484193/ltcube_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484193/Model_4FGL_J2142.5-2552_daily_bin1692.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) = 4568.56911359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    215.02       1.0000         .10000E-03   10000.    
     2 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.752       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7948       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.398       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11678E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.345       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.577       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.744       1.0000         .10000E-03   10000.    
    15 'norm      '    .20270       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2974       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.276       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2380       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83719       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4568.566     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     2046 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     215.00        189.20       -.12444E-04   -.43070E-05
   2  norm          .10000E-03    18.307        .34469E-05** at limit **
   3  Prefactor     13.750        29.725       -.40379E-05   -.10158E-04
   4  Prefactor     .10000E-03    10.961        .39338E-06** at limit **
   5  norm          .10000E-03    2.6027        .39211E-07** at limit **
   6  Prefactor     4.7951        5.7799       -.55165E-06   -.84199E-05
   7  Prefactor     12.394        14.837       -.17307E-05   -.98236E-04
   8  Prefactor     .10000E-03    4.8606       -.30606E-07** at limit **
   9  norm          .10000E-03    23.521        .86678E-05** at limit **
  10  Prefactor     34.345        25.067       -.35334E-06    .23570E-05
  11  Prefactor     12.576        15.681       -.48650E-06    .18221E-04
  12  Prefactor     .10000E-03    26.298       -.81213E-05** at limit **
  13  norm          .10000E-03    2.8333        .56995E-07** at limit **
  14  Prefactor     13.744        15.631       -.18399E-06    .30944E-05
  15  norm          .20268        .18643        .15172E-08    .33648E-03
  16  Prefactor     2.2963        14.470       -.22168E-05   -.19385E-03
  17  Prefactor     22.278        26.458        .10868E-05    .11190E-04
  18  norm          .10000E-03    17.371       -.46092E-05** at limit **
  19  Normalizat    1.2381        .24906        .75801E-06   -.56420E-04
  20  Prefactor     .83708        .15136        .89615E-06   -.86556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 215.001
  norm       = 0.0001
  Prefactor  = 13.7499
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.7951
  Prefactor  = 12.3942
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.345
  Prefactor  = 12.5758
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7445
  norm       = 0.202676
  Prefactor  = 2.29628
  Prefactor  = 22.2776
  norm       = 0.0001
  Normalizat = 1.23815
  Prefactor  = 0.837076
 **********
 **   18 **HESSE 
 **********

 FCN=   4568.566     FROM HESSE     STATUS=OK           297 CALLS     2343 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     215.00        189.21        .13788E-03   -1.2765    
   2  norm          .10000E-03    18.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.750        29.749        .10801E-03   -1.4966    
   4  Prefactor     .10000E-03    11.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6028        .10650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7951        5.7772        .17324E-03   -1.5270    
   7  Prefactor     12.394        14.928        .11376E-03   -1.5004    
   8  Prefactor     .10000E-03    4.8640        .14554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.345        25.128        .68379E-04   -1.4535    
  11  Prefactor     12.576        15.673        .11295E-03   -1.4999    
  12  Prefactor     .10000E-03    26.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8656        .11101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.744        15.628        .10804E-03   -1.4966    
  15  norm          .20268        .19920        .27259E-03   -1.5618    
  16  Prefactor     2.2963        14.810        .27077E-03   -1.5405    
  17  Prefactor     22.278        26.564        .84866E-04   -1.4764    
  18  norm          .10000E-03    17.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2381        .29776        .28003E-03   -.85432    
  20  Prefactor     .83708        .18031        .20797E-03   -.98376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59787e-10
Minuit parameter uncertainties:
  1  189.756
  2  5.41567e-05
  3  29.7811
  4  4.30956e-05
  5  1.91816e-07
  6  5.77784
  7  14.9326
  8  5.96188e-07
  9  0.000172491
  10  25.1355
  11  15.6776
  12  2.05038e-06
  13  5.15229e-06
  14  15.6322
  15  0.199201
  16  11.667
  17  26.5778
  18  3.61054e-06
  19  0.298168
  20  0.180441
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  5.962e-07  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.208e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  8.371e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.238e+00  2.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.645 -25.878
Photon Flux Upper Limit: 6.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484193/likelihoodResults_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.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) = 4568.5666843
delta logL = -0.000965098694905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4568.56571928
delta logL = -7.66176526668e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1904       1.0000          .0000       10.000    
     3 'Normalizat'    1.2383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+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=   4568.566     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10136E-03    63.468        .14743E-02** at limit **
   2  Index         2.1312        6.7579        .50000        .25989E-04
   3  Normalizat    1.2381        .22145E-01    .28003E-03    .94594E-05
   4  Prefactor     .83708        .13892E-01    .20797E-03    .52479E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101365
  Index      = 2.13122
  Normalizat = 1.23815
  Prefactor  = 0.837076
 **********
 **   18 **HESSE 
 **********

 FCN=   4568.566     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10136E-03    259.44        .29487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1312        6.0473        .50000       -.61109    
   3  Normalizat    1.2381        .47027E-01    .11201E-04   -.85432    
   4  Prefactor     .83708        .29500E-01    .83186E-05   -.98376    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12661e-08
Minuit parameter uncertainties:
  1  0.0378011
  2  596.226
  3  0.0470287
  4  0.0295007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484193': 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) = 4568.5657188
delta logL = 4.02916157327e-07

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.014e-04  3.780e-02  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.131e+00  5.962e+02  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  8.371e-01  2.950e-02  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.238e+00  4.703e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.645 -25.878

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/484193/cmap_HighResolution_677894401_678153601_4FGL_J2142.5-2552_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2022-06-29 05:03:01.699845', job_id='484193', GAL2='0.84', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1656504181.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1692' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:03:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 484193: <4FGL_J2142.5-2552_daily_bin1692> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1692> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jun 29 04:50:19 2022
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:54:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:54:09 2022
Terminated at Wed Jun 29 05:03:02 2022
Results reported at Wed Jun 29 05:03:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1692 325.645 -25.8777 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2142.5-2552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   507.59 sec.
    Max Memory :                                 1004 MB
    Average Memory :                             329.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            763 sec.

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

