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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1317
RA = 325.645, Dec = -25.8777
tmin = 580694401, tmax = 580953601
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='691338', job_status='RUN', time_executed='2021-09-27 00:48:33.480497', time_epoch_executed='1632728913.48' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691338

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691338/ft1_4FGL_J2142.5-2552_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691338/ft2_4FGL_J2142.5-2552_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691338/ft1_4FGL_J2142.5-2552_daily_bin1317.fits outfile=/scratch/kocevski/691338/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1317.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=580694401.0 tmax=580953601.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 2.81
user 2.57
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691338/ft1_filtered_4FGL_J2142.5-2552_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/691338/ft2_4FGL_J2142.5-2552_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/691338/ltcube_580694401_580953601_4FGL_J2142.5-2552_daily_bin1317.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/691338/ft2_4FGL_J2142.5-2552_daily_bin1317.fits
.....................!
real 16.68
user 16.27
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691338/ft1_filtered_4FGL_J2142.5-2552_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/691338/ft2_4FGL_J2142.5-2552_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/691338/ltcube_580694401_580953601_4FGL_J2142.5-2552_daily_bin1317.fits outfile=/scratch/kocevski/691338/expmap_580694401_580953601_4FGL_J2142.5-2552_daily_bin1317.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/691338/ltcube_580694401_580953601_4FGL_J2142.5-2552_daily_bin1317.fits
.....................!
real 192.37
user 185.85
sys 5.98

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/691338/ft1_filtered_4FGL_J2142.5-2552_daily_bin1317.fits scfile=/scratch/kocevski/691338/ft2_4FGL_J2142.5-2552_daily_bin1317.fits outfile=/scratch/kocevski/691338/cmap_580694401_580953601_4FGL_J2142.5-2552_daily_bin1317.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691338/ft1_filtered_4FGL_J2142.5-2552_daily_bin1317.fits scfile=/scratch/kocevski/691338/ft2_4FGL_J2142.5-2552_daily_bin1317.fits outfile=/scratch/kocevski/691338/cmap_HighResolution_580694401_580953601_4FGL_J2142.5-2552_daily_bin1317.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691338/ft1_filtered_4FGL_J2142.5-2552_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/691338/ft2_4FGL_J2142.5-2552_daily_bin1317.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691338/Model_4FGL_J2142.5-2552_daily_bin1317.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/691338/ft1_filtered_4FGL_J2142.5-2552_daily_bin1317.fits.....................!
real 74.64
user 73.30
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.188       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.990       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27393       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2038       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2751       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2482       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.202       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7827       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.609       1.0000         .10000E-03   10000.    
    15 'norm      '    .33200       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.899       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86474       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1590       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=   9930.861     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2079 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.128        75.414        .38222E-06    .16549E-04
   2  norm          .10000E-03    7.5314        .10204E-05** at limit **
   3  Prefactor     13.984        15.777       -.62296E-07   -.70009E-05
   4  Prefactor     .33075        4.1126        .12047E-05   -.14310E-03
   5  norm          .10000E-03    2.2352        .11304E-08** at limit **
   6  Prefactor     .10000E-03    2.3494       -.65805E-07** at limit **
   7  Prefactor     2.2047        7.2093        .10895E-05    .47564E-05
   8  Prefactor     5.2756        6.6159        .28140E-06   -.37669E-04
   9  norm          1.2483        4.5901        .25644E-05   -.14634E-04
  10  Prefactor     .10000E-03    21.014       -.17055E-05** at limit **
  11  Prefactor     .10000E-03    6.9361        .48089E-05** at limit **
  12  Prefactor     20.181        29.767       -.23877E-05   -.85457E-04
  13  norm          1.7827        2.6062        .52480E-06   -.54077E-04
  14  Prefactor     14.615        12.201        .25179E-06   -.10101E-04
  15  norm          .33202        .18028        .24023E-07   -.40796E-03
  16  Prefactor     .10000E-03    2.0767        .14698E-06** at limit **
  17  Prefactor     .10000E-03    10.141       -.14226E-06** at limit **
  18  norm          17.899        15.546        .15556E-06   -.14750E-04
  19  Normalizat    .86482        .15375       -.64346E-06   -.20533E-03
  20  Prefactor     1.1589        .10636       -.10793E-05   -.13551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1281
  norm       = 0.0001
  Prefactor  = 13.9842
  Prefactor  = 0.330754
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20469
  Prefactor  = 5.27557
  norm       = 1.24829
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.1811
  norm       = 1.78267
  Prefactor  = 14.6154
  norm       = 0.332016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.8994
  Normalizat = 0.864819
  Prefactor  = 1.15889
 **********
 **   18 **HESSE 
 **********

 FCN=   9930.861     FROM HESSE     STATUS=OK           297 CALLS     2376 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.128        75.075        .93913E-04   -1.4856    
   2  norm          .10000E-03    7.5265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.984        15.791        .10709E-03   -1.4960    
   4  Prefactor     .33075        19.645        .36772E-02   -1.5593    
   5  norm          .10000E-03    2.2392        .14550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3980        .14911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2047        7.1570        .13857E-02   -1.5411    
   8  Prefactor     5.2756        6.6120        .87501E-03   -1.5249    
   9  norm          1.2483        4.5958        .19711E-02   -1.5485    
  10  Prefactor     .10000E-03    21.765        .42898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.181        30.103        .89112E-04   -1.4809    
  13  norm          1.7827        2.5793        .18028E-03   -1.5441    
  14  Prefactor     14.615        12.198        .10479E-03   -1.4943    
  15  norm          .33202        .17946        .29874E-04   -1.5593    
  16  Prefactor     .10000E-03    2.0852        .14027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.899        15.551        .94670E-04   -1.4862    
  19  Normalizat    .86482        .17665        .30267E-03   -.97708    
  20  Prefactor     1.1589        .12214        .18432E-03   -.87606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37782e-08
Minuit parameter uncertainties:
  1  73.9423
  2  7.18631e-06
  3  15.7957
  4  5.09909
  5  2.49961e-06
  6  8.57395e-06
  7  7.15975
  8  6.61295
  9  4.59712
  10  0.00021676
  11  2.35167e-05
  12  30.1261
  13  2.57943
  14  12.2005
  15  0.179457
  16  3.99489e-06
  17  2.71902e-05
  18  15.5541
  19  0.17677
  20  0.12217
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  5.276e+00  6.613e+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:  1.159e+00  1.222e-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:  8.648e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 325.645 -25.878
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 1.57e-08
Energy Flux (Fixed Index): 5.53e-06 +/- 6.93e-06

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

Saving results to:
/scratch/kocevski/691338/likelihoodResults_580694401_580953601_4FGL_J2142.5-2552_daily_bin1317.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) = 9929.90458311
delta logL = 0.95637303492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9929.8756324
delta logL = 0.985323743034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8331       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1130       1.0000          .0000       10.000    
     3 'Normalizat'    .87417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1565       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=   9929.876     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8214        4.1288        .51535E-02   -.34665E-03
   2  Index         1.1119        .43735        .33747       -.76718E-04
   3  Normalizat    .87409        .14834        .68070E-01    .31466E-04
   4  Prefactor     1.1565        .10348        .35751E-01   -.11736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.82138
  Index      = 1.1119
  Normalizat = 0.874095
  Prefactor  = 1.15654
 **********
 **   18 **HESSE 
 **********

 FCN=   9929.876     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8214        5.5425        .20535E-03   -1.5317    
   2  Index         1.1119        .64339        .13562E-01   -.89087    
   3  Normalizat    .87409        .17022        .30115E-03   -.97376    
   4  Prefactor     1.1565        .11896        .18444E-03   -.87679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03039e-09
Minuit parameter uncertainties:
  1  5.54319
  2  0.647971
  3  0.170321
  4  0.118992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691338': 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) = 9929.87563022
delta logL = 0.985325918602

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  3.821e+00  5.543e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.112e+00  6.480e-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:  1.157e+00  1.190e-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:  8.741e-01  1.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.29
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 1.11 +/- 0.65
Photon Flux (Free Index): 3.17e-09 +/- 4.04e-09
Energy Flux (Free Index): 3.42e-05 +/- 5.34e-05

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/691338/cmap_HighResolution_580694401_580953601_4FGL_J2142.5-2552_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='3.42e-05', photon_flux_error='1.57e-08', dlogl='9.85e-01', energy_flux='5.53e-06', photon_flux2='3.17e-09', job_status='DONE', time_completed='2021-09-27 01:00:43.687789', photon_index_error2='0.65', photon_index2='1.11', ts='1.32', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='5.87e-08', energy_flux_error2='5.34e-05', EG='0.86', time_epoch_completed='1632729643.69', return_code='0', job_id='691338', GAL2='1.16', EG2='0.87', return_code2='0', energy_flux_error='6.93e-06', photon_flux_error2='4.04e-09', ts2='3.29', photon_index='2.21' WHERE bin_id='1317' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:00:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 691338: <4FGL_J2142.5-2552_daily_bin1317> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1317> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:45:51 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:48:05 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:48:05 2021
Terminated at Mon Sep 27 01:00:44 2021
Results reported at Mon Sep 27 01:00:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1317 325.645 -25.8777 580694401 580953601 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 :                                   728.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            893 sec.

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

