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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1395
RA = 325.645, Dec = -25.8777
tmin = 600912001, tmax = 601171201
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='691459', job_status='RUN', time_executed='2021-09-27 00:49:47.596608', time_epoch_executed='1632728987.6' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691459

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691459/ft1_4FGL_J2142.5-2552_daily_bin1395.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691459/ft2_4FGL_J2142.5-2552_daily_bin1395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691459/ft1_4FGL_J2142.5-2552_daily_bin1395.fits outfile=/scratch/kocevski/691459/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1395.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=600912001.0 tmax=601171201.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.79
user 3.41
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691459/ft1_filtered_4FGL_J2142.5-2552_daily_bin1395.fits" evtable="EVENTS" scfile=/scratch/kocevski/691459/ft2_4FGL_J2142.5-2552_daily_bin1395.fits sctable="SC_DATA" outfile=/scratch/kocevski/691459/ltcube_600912001_601171201_4FGL_J2142.5-2552_daily_bin1395.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/691459/ft2_4FGL_J2142.5-2552_daily_bin1395.fits
.....................!
real 13.25
user 12.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691459/ft1_filtered_4FGL_J2142.5-2552_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/691459/ft2_4FGL_J2142.5-2552_daily_bin1395.fits sctable="SC_DATA" expcube=/scratch/kocevski/691459/ltcube_600912001_601171201_4FGL_J2142.5-2552_daily_bin1395.fits outfile=/scratch/kocevski/691459/expmap_600912001_601171201_4FGL_J2142.5-2552_daily_bin1395.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/691459/ltcube_600912001_601171201_4FGL_J2142.5-2552_daily_bin1395.fits
.....................!
real 191.13
user 185.18
sys 5.07

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/691459/ft1_filtered_4FGL_J2142.5-2552_daily_bin1395.fits scfile=/scratch/kocevski/691459/ft2_4FGL_J2142.5-2552_daily_bin1395.fits outfile=/scratch/kocevski/691459/cmap_600912001_601171201_4FGL_J2142.5-2552_daily_bin1395.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691459/ft1_filtered_4FGL_J2142.5-2552_daily_bin1395.fits scfile=/scratch/kocevski/691459/ft2_4FGL_J2142.5-2552_daily_bin1395.fits outfile=/scratch/kocevski/691459/cmap_HighResolution_600912001_601171201_4FGL_J2142.5-2552_daily_bin1395.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/691459/ft1_filtered_4FGL_J2142.5-2552_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/691459/ft2_4FGL_J2142.5-2552_daily_bin1395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691459/Model_4FGL_J2142.5-2552_daily_bin1395.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/691459/ft1_filtered_4FGL_J2142.5-2552_daily_bin1395.fits.....................!
real 48.81
user 46.23
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    206.86       1.0000         .10000E-03   10000.    
     2 'norm      '    .16235E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20913E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16622       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.251       1.0000         .10000E-03   10000.    
     9 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26234E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24905E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1512       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.7439       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .64505       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=   4840.455     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     1728 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     207.06        141.53        .13546E-03    .58607E-04
   2  norm          .10000E-03    17.419       -.28304E-05** at limit **
   3  Prefactor     .10000E-03    45.433       -.58447E-06** at limit **
   4  Prefactor     .11549        6.7117       -.44726E-05   -.64538E-04
   5  norm          .10000E-03    3.5565        .41035E-06** at limit **
   6  Prefactor     .10000E-03    7.2981       -.35906E-05** at limit **
   7  Prefactor     .10000E-03    7.8857        .31164E-05** at limit **
   8  Prefactor     42.243        21.036       -.50395E-06    .16815E-04
   9  norm          .10000E-03    4.7831        .39742E-06** at limit **
  10  Prefactor     .10000E-03    6.7005        .30583E-06** at limit **
  11  Prefactor     .10000E-03    13.688       -.22184E-05** at limit **
  12  Prefactor     .10000E-03    68.593       -.58346E-06** at limit **
  13  norm          .10000E-03    3.8707        .42898E-06** at limit **
  14  Prefactor     .10000E-03    39.300       -.82520E-05** at limit **
  15  norm          1.1507        .46561        .13033E-06   -.55694E-03
  16  Prefactor     .10000E-03    5.1839       -.76343E-07** at limit **
  17  Prefactor     .10000E-03    9.2160       -.10066E-05** at limit **
  18  norm          .10000E-03    14.936        .41291E-05** at limit **
  19  Normalizat    1.7442        .24321       -.16701E-05    .25871E-03
  20  Prefactor     .64530        .14246       -.35165E-05    .35551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 207.057
  norm       = 0.000100003
  Prefactor  = 0.000100003
  Prefactor  = 0.115495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.2425
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100001
  norm       = 1.1507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.74416
  Prefactor  = 0.645302
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.455     FROM HESSE     STATUS=OK           287 CALLS     2015 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     207.06        141.76        .14052E-03   -1.2820    
   2  norm          .10000E-03    17.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11549        7.2117        .51965E-01   -1.5640    
   5  norm          .10000E-03    3.5594        .12814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.243        21.051        .61672E-04   -1.4407    
   9  norm          .10000E-03    4.8069        .14859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7063        .17589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    68.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.308        .25265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.887        .42933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1507        .45742        .28596E-04   -1.5493    
  16  Prefactor     .10000E-03    5.1980        .15470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.7442        .27385        .25984E-03   -.71130    
  20  Prefactor     .64530        .16262        .23831E-03   -1.0571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98953e-10
Minuit parameter uncertainties:
  1  141.993
  2  0.000424373
  3  0.000784241
  4  1.82472
  5  4.7444e-06
  6  4.71903e-05
  7  2.17413e-05
  8  21.0545
  9  1.32181e-05
  10  1.27473e-05
  11  2.17028e-05
  12  0.000132811
  13  0.000415611
  14  0.000464883
  15  0.45742
  16  1.46068e-05
  17  1.66796e-05
  18  1.32531e-05
  19  0.274094
  20  0.162741
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  4.224e+01  2.105e+01  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.453e-01  1.627e-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.744e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.28
Ra Dec: 325.645 -25.878
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 4.99e-08
Energy Flux (Fixed Index): 4.43e-05 +/- 2.21e-05

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) = 4840.45385097
delta logL = 0.00130374287164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4840.45306395
delta logL = 0.00209076848387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.258       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2374       1.0000          .0000       10.000    
     3 'Normalizat'    1.7416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64618       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=   4840.453     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      266 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.263        26.426        .62408E-04    .14573E-04
   2  Index         2.2373        .45932        .49038E-02    .31675E-03
   3  Normalizat    1.7416        .27560        .25998E-03   -.24051E-05
   4  Prefactor     .64612        .16207        .23817E-03   -.27924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.2634
  Index      = 2.23732
  Normalizat = 1.74164
  Prefactor  = 0.646123
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.453     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.263        25.812        .24963E-05   -1.4422    
   2  Index         2.2373        .44850        .98076E-03   -.58540    
   3  Normalizat    1.7416        .27568        .10399E-04   -.71197    
   4  Prefactor     .64612        .16216        .95269E-05   -1.0568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4056e-12
Minuit parameter uncertainties:
  1  25.8194
  2  0.449372
  3  0.275929
  4  0.162282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691459': 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) = 4840.45306387
delta logL = 0.00209084707785

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  4.126e+01  2.582e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.237e+00  4.494e-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.461e-01  1.623e-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.742e+00  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.27
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 2.24 +/- 0.45
Photon Flux (Free Index): 1.03e-07 +/- 6.60e-08
Energy Flux (Free Index): 4.32e-05 +/- 2.69e-05

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/691459/cmap_HighResolution_600912001_601171201_4FGL_J2142.5-2552_daily_bin1395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='4.32e-05', photon_flux_error='4.99e-08', dlogl='2.09e-03', energy_flux='4.43e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-27 00:57:36.780453', photon_index_error2='0.45', photon_index2='2.24', ts='9.28', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='2.69e-05', EG='1.74', time_epoch_completed='1632729456.78', return_code='0', job_id='691459', GAL2='0.65', EG2='1.74', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='6.60e-08', ts2='9.27', photon_index='2.21' WHERE bin_id='1395' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:57:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 691459: <4FGL_J2142.5-2552_daily_bin1395> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1395> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:46:01 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:49: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:49:03 2021
Terminated at Mon Sep 27 00:57:37 2021
Results reported at Mon Sep 27 00:57:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1395 325.645 -25.8777 600912001 601171201 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 :                                   463.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            696 sec.

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

