/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 176 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 = 7461
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2142.5-2552_daily_bin640
RA = 325.645, Dec = -25.8777
tmin = 405216001, tmax = 405475201
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='688198', job_status='RUN', time_executed='2021-09-27 00:39:09.524404', time_epoch_executed='1632728349.52' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/688198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/688198/ft1_4FGL_J2142.5-2552_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/688198/ft2_4FGL_J2142.5-2552_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/688198/ft1_4FGL_J2142.5-2552_daily_bin640.fits outfile=/scratch/kocevski/688198/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin640.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=405216001.0 tmax=405475201.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.64
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/688198/ft1_filtered_4FGL_J2142.5-2552_daily_bin640.fits" evtable="EVENTS" scfile=/scratch/kocevski/688198/ft2_4FGL_J2142.5-2552_daily_bin640.fits sctable="SC_DATA" outfile=/scratch/kocevski/688198/ltcube_405216001_405475201_4FGL_J2142.5-2552_daily_bin640.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/688198/ft2_4FGL_J2142.5-2552_daily_bin640.fits
.....................!
real 14.08
user 13.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/688198/ft1_filtered_4FGL_J2142.5-2552_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/688198/ft2_4FGL_J2142.5-2552_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/688198/ltcube_405216001_405475201_4FGL_J2142.5-2552_daily_bin640.fits outfile=/scratch/kocevski/688198/expmap_405216001_405475201_4FGL_J2142.5-2552_daily_bin640.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/688198/ltcube_405216001_405475201_4FGL_J2142.5-2552_daily_bin640.fits
.....................!
real 192.19
user 185.63
sys 5.66

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/688198/ft1_filtered_4FGL_J2142.5-2552_daily_bin640.fits scfile=/scratch/kocevski/688198/ft2_4FGL_J2142.5-2552_daily_bin640.fits outfile=/scratch/kocevski/688198/cmap_405216001_405475201_4FGL_J2142.5-2552_daily_bin640.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/688198/ft1_filtered_4FGL_J2142.5-2552_daily_bin640.fits scfile=/scratch/kocevski/688198/ft2_4FGL_J2142.5-2552_daily_bin640.fits outfile=/scratch/kocevski/688198/cmap_HighResolution_405216001_405475201_4FGL_J2142.5-2552_daily_bin640.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/688198/ft1_filtered_4FGL_J2142.5-2552_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/688198/ft2_4FGL_J2142.5-2552_daily_bin640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/688198/Model_4FGL_J2142.5-2552_daily_bin640.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/688198/ft1_filtered_4FGL_J2142.5-2552_daily_bin640.fits.....................!
real 58.27
user 56.89
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.324       1.0000         .10000E-03   10000.    
     2 'norm      '    .10754E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.657       1.0000         .10000E-03   10000.    
     5 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56750       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.895       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.612       1.0000         .10000E-03   10000.    
    15 'norm      '    .38165       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2259       1.0000         .10000E-03   10000.    
    18 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4348       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .66608       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=   6565.896     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     1752 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.822        377.77       -.40600E-04   -.16518E-04
   2  norm          .10000E-03    20.962       -.16931E-04** at limit **
   3  Prefactor     .10000E-03    12.279       -.79520E-06** at limit **
   4  Prefactor     13.668        9.0052       -.81031E-07   -.70516E-04
   5  norm          .10000E-03    4.6070        .39352E-06** at limit **
   6  Prefactor     .10000E-03    2.8417        .35419E-06** at limit **
   7  Prefactor     12.098        9.2919        .25476E-06   -.25175E-04
   8  Prefactor     .10000E-03    10.035        .74029E-06** at limit **
   9  norm          24.330        9.7048        .55195E-07   -.39983E-04
  10  Prefactor     .57178        12.040       -.18515E-05    .45946E-03
  11  Prefactor     .10000E-03    5.2379        .98160E-07** at limit **
  12  Prefactor     .10000E-03    19.340        .24932E-06** at limit **
  13  norm          21.894        6.5756        .17323E-06   -.19020E-03
  14  Prefactor     16.594        14.170       -.36146E-06    .27124E-04
  15  norm          .38158        .33849        .77418E-07    .51229E-03
  16  Prefactor     .10000E-03    6.9746        .66726E-06** at limit **
  17  Prefactor     9.2285        17.729        .70661E-06   -.47595E-04
  18  norm          .10079E-03    11.064        .21911E-05** at limit **
  19  Normalizat    1.4348        .20546       -.49774E-05    .70577E-04
  20  Prefactor     .66617        .12203        .35130E-05   -.25552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8221
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 13.6677
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.098
  Prefactor  = 0.0001
  norm       = 24.3301
  Prefactor  = 0.571783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.894
  Prefactor  = 16.5945
  norm       = 0.381578
  Prefactor  = 0.0001
  Prefactor  = 9.2285
  norm       = 0.000100791
  Normalizat = 1.43483
  Prefactor  = 0.666174
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.896     FROM HESSE     STATUS=OK           301 CALLS     2053 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.822        389.33        .59525E-02   -1.5050    
   2  norm          .10000E-03    21.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.668        9.0206        .10838E-03   -1.4968    
   5  norm          .10000E-03    4.6260        .16986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8540        .13341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.098        9.3064        .11519E-03   -1.5012    
   8  Prefactor     .10000E-03    10.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.330        9.7064        .81205E-04   -1.4721    
  10  Prefactor     .57178        119.93        .52024E-02   -1.5557    
  11  Prefactor     .10000E-03    5.2392        .18112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.894        6.5668        .85601E-04   -1.4772    
  14  Prefactor     16.594        14.210        .98267E-04   -1.4893    
  15  norm          .38158        .32080        .41279E-03   -1.5584    
  16  Prefactor     .10000E-03    7.1020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2285        17.817        .13195E-03   -1.5100    
  18  norm          .10079E-03    116.08        .51621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4348        .23317        .26019E-03   -.79627    
  20  Prefactor     .66617        .13657        .22663E-03   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79398e-08
Minuit parameter uncertainties:
  1  130.751
  2  0.000514932
  3  2.94587e-06
  4  9.02152
  5  6.34514e-06
  6  8.83844e-06
  7  9.30748
  8  3.39355e-05
  9  9.70701
  10  16.5943
  11  4.1951e-06
  12  4.03428e-05
  13  6.567
  14  14.2129
  15  0.320799
  16  2.21846e-05
  17  17.8276
  18  0.0192054
  19  0.233344
  20  0.13664
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.394e-05  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:  6.662e-01  1.366e-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.435e+00  2.333e-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: 7.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/688198/likelihoodResults_405216001_405475201_4FGL_J2142.5-2552_daily_bin640.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) = 6565.89620395
delta logL = -0.000472654066471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6565.89573143
delta logL = -1.3686985767e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2036       1.0000          .0000       10.000    
     3 'Normalizat'    1.4348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66623       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.

 FCN=   6565.896     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1304.4        .90712E-02** at limit **
   2  Index         2.1989        7.1325        .50000        .38005E-05
   3  Normalizat    1.4348        .73856E-01    .58837E-01    .49602E-05
   4  Prefactor     .66618        .45840E-01    .41950E-01    .19365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1989
  Normalizat = 1.43482
  Prefactor  = 0.666176
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.896     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1445.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1989        5.6073        .50000       -.59465    
   3  Normalizat    1.4348        .81002E-01    .26019E-03   -.79627    
   4  Prefactor     .66618        .50361E-01    .22662E-03   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65514e-09
Minuit parameter uncertainties:
  1  9.72028e-05
  2  50.9208
  3  0.0810093
  4  0.0503643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/688198': 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) = 6565.89573128
delta logL = 9.30231180973e-09

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  9.720e-05  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.199e+00  5.092e+01  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:  6.662e-01  5.036e-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.435e+00  8.101e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/688198/cmap_HighResolution_405216001_405475201_4FGL_J2142.5-2552_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-09-27 00:48:39.412944', job_id='688198', GAL2='0.67', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1632728919.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='9.30e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='640' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:48:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 688198: <4FGL_J2142.5-2552_daily_bin640> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin640> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:35:27 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:36:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 00:36:03 2021
Terminated at Mon Sep 27 00:48:40 2021
Results reported at Mon Sep 27 00:48:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin640 325.645 -25.8777 405216001 405475201 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 :                                   569.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            793 sec.

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

