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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1666
RA = 325.645, Dec = -25.8777
tmin = 671155201, tmax = 671414401
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='414413', job_status='RUN', time_executed='2022-04-12 00:36:15.607249', time_epoch_executed='1649748975.61' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414413/ft1_4FGL_J2142.5-2552_daily_bin1666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414413/ft2_4FGL_J2142.5-2552_daily_bin1666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414413/ft1_4FGL_J2142.5-2552_daily_bin1666.fits outfile=/scratch/kocevski/414413/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1666.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=671155201.0 tmax=671414401.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.27
user 5.03
sys 0.22

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

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

Number of photons that the gtmktime cut: 835

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1666.fits" evtable="EVENTS" scfile=/scratch/kocevski/414413/ft2_4FGL_J2142.5-2552_daily_bin1666.fits sctable="SC_DATA" outfile=/scratch/kocevski/414413/ltcube_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.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/414413/ft2_4FGL_J2142.5-2552_daily_bin1666.fits
.....................!
real 11.68
user 11.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414413/ft2_4FGL_J2142.5-2552_daily_bin1666.fits sctable="SC_DATA" expcube=/scratch/kocevski/414413/ltcube_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.fits outfile=/scratch/kocevski/414413/expmap_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.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/414413/ltcube_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.fits
.....................!
real 191.08
user 185.36
sys 5.39

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/414413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1666.fits scfile=/scratch/kocevski/414413/ft2_4FGL_J2142.5-2552_daily_bin1666.fits outfile=/scratch/kocevski/414413/cmap_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1666.fits scfile=/scratch/kocevski/414413/ft2_4FGL_J2142.5-2552_daily_bin1666.fits outfile=/scratch/kocevski/414413/cmap_HighResolution_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414413/ft2_4FGL_J2142.5-2552_daily_bin1666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414413/Model_4FGL_J2142.5-2552_daily_bin1666.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/414413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1666.fits.....................!
real 71.72
user 70.41
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/414413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1666.fits', '/scratch/kocevski/414413/ft2_4FGL_J2142.5-2552_daily_bin1666.fits', expMap='/scratch/kocevski/414413/expmap_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.fits', expCube='/scratch/kocevski/414413/ltcube_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/414413/Model_4FGL_J2142.5-2552_daily_bin1666.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/414413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1666.fits
Spacecraft file(s): /scratch/kocevski/414413/ft2_4FGL_J2142.5-2552_daily_bin1666.fits
Exposure map: /scratch/kocevski/414413/expmap_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.fits
Exposure cube: /scratch/kocevski/414413/ltcube_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/414413/Model_4FGL_J2142.5-2552_daily_bin1666.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) = 8951.98790054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.76       1.0000         .10000E-03   10000.    
     2 'norm      '    19.432       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15517E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33222       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9983       1.0000         .10000E-03   10000.    
    15 'norm      '    .72620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1763       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84551       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=   8951.958     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2145 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.75        105.76       -.10668E-04   -.19272E-03
   2  norm          19.432        16.793        .51636E-06   -.44501E-04
   3  Prefactor     6.6069        15.579        .24082E-05   -.57977E-04
   4  Prefactor     .10010E-03    3.0463        .19693E-05** at limit **
   5  norm          .10004E-03    3.3587       -.16272E-05** at limit **
   6  Prefactor     .10000E-03    5.0663       -.31619E-06** at limit **
   7  Prefactor     .10000E-03    10.941       -.66370E-05** at limit **
   8  Prefactor     .36007        4.5331        .28883E-06   -.43490E-03
   9  norm          .10000E-03    2.2839        .25703E-07** at limit **
  10  Prefactor     .10000E-03    4.9906        .10439E-05** at limit **
  11  Prefactor     .10000E-03    5.5939       -.13597E-05** at limit **
  12  Prefactor     .10000E-03    31.081       -.34536E-06** at limit **
  13  norm          .10000E-03    1.2080       -.13897E-07** at limit **
  14  Prefactor     4.9991        13.317        .70533E-06   -.62491E-04
  15  norm          .72624        .25736        .33093E-09    .12452E-03
  16  Prefactor     .10000E-03    4.6881       -.11718E-05** at limit **
  17  Prefactor     .10000E-03    4.9049        .13339E-05** at limit **
  18  norm          .10000E-03    9.3740        .56991E-05** at limit **
  19  Normalizat    1.1761        .14780        .15678E-07   -.97655E-04
  20  Prefactor     .84556        .97649E-01    .92079E-07   -.13840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.746
  norm       = 19.4316
  Prefactor  = 6.60687
  Prefactor  = 0.000100095
  norm       = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.36007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.99906
  norm       = 0.726242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 1.17613
  Prefactor  = 0.845561
 **********
 **   18 **HESSE 
 **********

 FCN=   8951.958     FROM HESSE     STATUS=OK           291 CALLS     2436 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.75        106.69        .36473E-04   -1.3497    
   2  norm          19.432        16.794        .90859E-04   -1.4826    
   3  Prefactor     6.6069        15.480        .15614E-03   -1.5194    
   4  Prefactor     .10010E-03    13.793        .29794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10004E-03    11.946        .32278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36007        44.072        .38484E-02   -1.5588    
   9  norm          .10000E-03    2.2989        .13962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2298        .10142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9991        13.284        .17987E-03   -1.5261    
  15  norm          .72624        .25715        .27673E-04   -1.5538    
  16  Prefactor     .10000E-03    4.7394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.4478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1761        .17208        .25314E-03   -.87344    
  20  Prefactor     .84556        .11407        .19333E-03   -.98070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28584e-08
Minuit parameter uncertainties:
  1  106.856
  2  16.7985
  3  15.4893
  4  0.00229148
  5  0.00135113
  6  9.4099e-06
  7  0.000190101
  8  7.97213
  9  1.57322e-06
  10  2.37921e-05
  11  3.64774e-05
  12  2.06465e-05
  13  4.60425e-09
  14  13.2918
  15  0.257149
  16  2.84499e-05
  17  3.3277e-05
  18  0.000193968
  19  0.172159
  20  0.114104
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  3.601e-01  7.972e+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

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  8.456e-01  1.141e-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.176e+00  1.722e-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: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414413/likelihoodResults_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.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) = 8951.9579996
delta logL = 7.2240618465e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8951.95799348
delta logL = 6.84114638716e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36008       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2168       1.0000          .0000       10.000    
     3 'Normalizat'    1.1762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84564       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8951.958     FROM MIGRAD    STATUS=FAILED        91 CALLS      253 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35776        77.275        .37669E-02    .13709E-02
   2  Index         2.2276        6.0782        .20601E-01    .24014E-03
   3  Normalizat    1.1761        .17103        .25315E-03   -.11736E-02
   4  Prefactor     .84556        .11347        .19333E-03   -.16396E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8951.958     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      339 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35776        77.275        .58849E-03   -1.5588    
   2  Index         2.2276        6.0782        .30563E-02   -.58775    
   3  Normalizat    1.1761        .17103        .21189E-03   -.87344    
   4  Prefactor     .84556        .11347        .87252E-04   -.98070    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8951.958     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      373 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35658        44.718        .15068E-03    .21428E-04
   2  Index         2.2269        3.1837        .82403E-03    .38354E-05
   3  Normalizat    1.1761        .17113        .50629E-04    .41263E-03
   4  Prefactor     .84557        .11339        .38667E-04    .55828E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.356581
  Index      = 2.22691
  Normalizat = 1.17612
  Prefactor  = 0.845566
 **********
 **   18 **HESSE 
 **********

 FCN=   8951.958     FROM HESSE     STATUS=OK            23 CALLS      396 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35658        44.513        .60271E-05   -1.5589    
   2  Index         2.2269        3.1798        .32961E-04   -.58790    
   3  Normalizat    1.1761        .17115        .10126E-04   -.87344    
   4  Prefactor     .84557        .11340        .77333E-05   -.98070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50731e-10
Minuit parameter uncertainties:
  1  7.97296
  2  3.61934
  3  0.171233
  4  0.113431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414413': 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) = 8951.95798729
delta logL = 1.30349799292e-05

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  3.566e-01  7.973e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.227e+00  3.619e+00  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.456e-01  1.134e-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.176e+00  1.712e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/414413/cmap_HighResolution_671155201_671414401_4FGL_J2142.5-2552_daily_bin1666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2022-04-12 00:48:11.630397', job_id='414413', GAL2='0.85', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1649749691.63', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.30e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1666' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 12 00:48:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 414413: <4FGL_J2142.5-2552_daily_bin1666> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1666> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 12 00:35:32 2022
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:35:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:35:33 2022
Terminated at Tue Apr 12 00:48:12 2022
Results reported at Tue Apr 12 00:48:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1666 325.645 -25.8777 671155201 671414401 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

