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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin852
RA = 325.645, Dec = -25.8777
tmin = 460166401, tmax = 460425601
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='689579', job_status='RUN', time_executed='2021-09-27 00:40:57.639743', time_epoch_executed='1632728457.64' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='852'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/689579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/689579/ft1_4FGL_J2142.5-2552_daily_bin852.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/689579/ft2_4FGL_J2142.5-2552_daily_bin852.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/689579/ft1_4FGL_J2142.5-2552_daily_bin852.fits outfile=/scratch/kocevski/689579/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin852.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=460166401.0 tmax=460425601.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.58
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/689579/ft2_4FGL_J2142.5-2552_daily_bin852.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/689579/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin852.fits evtable="EVENTS" outfile="/scratch/kocevski/689579/ft1_filtered_4FGL_J2142.5-2552_daily_bin852.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/689579/ft1_filtered_4FGL_J2142.5-2552_daily_bin852.fits" evtable="EVENTS" scfile=/scratch/kocevski/689579/ft2_4FGL_J2142.5-2552_daily_bin852.fits sctable="SC_DATA" outfile=/scratch/kocevski/689579/ltcube_460166401_460425601_4FGL_J2142.5-2552_daily_bin852.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/689579/ft2_4FGL_J2142.5-2552_daily_bin852.fits
.....................!
real 13.78
user 13.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/689579/ft1_filtered_4FGL_J2142.5-2552_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/689579/ft2_4FGL_J2142.5-2552_daily_bin852.fits sctable="SC_DATA" expcube=/scratch/kocevski/689579/ltcube_460166401_460425601_4FGL_J2142.5-2552_daily_bin852.fits outfile=/scratch/kocevski/689579/expmap_460166401_460425601_4FGL_J2142.5-2552_daily_bin852.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/689579/ltcube_460166401_460425601_4FGL_J2142.5-2552_daily_bin852.fits
.....................!
real 190.78
user 185.58
sys 4.81

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/689579/ft1_filtered_4FGL_J2142.5-2552_daily_bin852.fits scfile=/scratch/kocevski/689579/ft2_4FGL_J2142.5-2552_daily_bin852.fits outfile=/scratch/kocevski/689579/cmap_460166401_460425601_4FGL_J2142.5-2552_daily_bin852.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.97
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/689579/ft1_filtered_4FGL_J2142.5-2552_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/689579/ft2_4FGL_J2142.5-2552_daily_bin852.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/689579/Model_4FGL_J2142.5-2552_daily_bin852.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/689579/ft1_filtered_4FGL_J2142.5-2552_daily_bin852.fits.....................!
real 49.00
user 47.66
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.335       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1359       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5413       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.233       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.400       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15265E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4621       1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9201       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6718       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.354       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.662       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2072       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71417       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=   5504.709     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1729 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.318        .24542E-06** at limit **
   2  norm          .10000E-03    9.1068       -.63332E-07** at limit **
   3  Prefactor     37.328        22.341        .28836E-07   -.51263E-04
   4  Prefactor     5.1364        7.2050        .41393E-06    .32379E-05
   5  norm          3.5413        4.1259       -.60592E-07   -.13623E-04
   6  Prefactor     .10000E-03    3.6000        .13008E-06** at limit **
   7  Prefactor     .10000E-03    10.253        .40831E-06** at limit **
   8  Prefactor     14.242        13.070       -.92816E-06    .20424E-04
   9  norm          .10000E-03    2.2209        .40579E-07** at limit **
  10  Prefactor     11.399        17.009        .10592E-06   -.87169E-05
  11  Prefactor     .10000E-03    17.044       -.14525E-04** at limit **
  12  Prefactor     1.3825        290.13       -.66476E-05    .37852E-05
  13  norm          .10000E-03    2.1338       -.86205E-06** at limit **
  14  Prefactor     4.9264        19.106        .68741E-06    .13242E-04
  15  norm          1.6718        .46054       -.78557E-07    .73419E-03
  16  Prefactor     11.357        13.464       -.97701E-06    .22909E-04
  17  Prefactor     .10000E-03    9.3591        .11729E-06** at limit **
  18  norm          16.661        22.003       -.35262E-07   -.21451E-05
  19  Normalizat    1.2073        .20100        .11187E-05   -.43353E-04
  20  Prefactor     .71416        .12458       -.17628E-05    .92120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.3277
  Prefactor  = 5.13636
  norm       = 3.54127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.242
  norm       = 0.0001
  Prefactor  = 11.3992
  Prefactor  = 0.0001
  Prefactor  = 1.38253
  norm       = 0.0001
  Prefactor  = 4.92636
  norm       = 1.67184
  Prefactor  = 11.3572
  Prefactor  = 0.0001
  norm       = 16.6605
  Normalizat = 1.2073
  Prefactor  = 0.714164
 **********
 **   18 **HESSE 
 **********

 FCN=   5504.709     FROM HESSE     STATUS=OK           297 CALLS     2026 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.1077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.328        22.348        .65593E-04   -1.4485    
   4  Prefactor     5.1364        7.2040        .17740E-03   -1.5255    
   5  norm          3.5413        4.1263        .15884E-03   -1.5332    
   6  Prefactor     .10000E-03    3.6135        .13747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.242        13.069        .10617E-03   -1.4953    
   9  norm          .10000E-03    2.2240        .10798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.399        17.002        .11865E-03   -1.5033    
  11  Prefactor     .10000E-03    17.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3825        302.41        .35577E-02   -1.5473    
  13  norm          .10000E-03    2.1498        .10554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9264        19.084        .18133E-03   -1.5264    
  15  norm          1.6718        .46116        .25319E-04   -1.5449    
  16  Prefactor     11.357        13.517        .11889E-03   -1.5034    
  17  Prefactor     .10000E-03    9.3848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.661        22.027        .98120E-04   -1.4891    
  19  Normalizat    1.2073        .23340        .25757E-03   -.86378    
  20  Prefactor     .71416        .14371        .20608E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05687e-10
Minuit parameter uncertainties:
  1  0.000146812
  2  1.95983e-05
  3  22.3526
  4  7.20518
  5  4.12658
  6  6.20886e-06
  7  1.80307e-05
  8  13.072
  9  2.1617e-06
  10  17.0092
  11  6.91299e-05
  12  41.1052
  13  6.80269e-06
  14  19.1077
  15  0.461157
  16  13.5205
  17  4.0943e-05
  18  22.0379
  19  0.2336
  20  0.143784
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.424e+01  1.307e+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:  7.142e-01  1.438e-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.207e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.90
Ra Dec: 325.645 -25.878
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.38e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.37e-05

TS (Fixed Index): 2.90
Ra Dec: 325.645 -25.878
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/689579/likelihoodResults_460166401_460425601_4FGL_J2142.5-2552_daily_bin852.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) = 5504.70686546
delta logL = 0.00203250302548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5504.70584489
delta logL = 0.00305307961753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.915       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1434       1.0000          .0000       10.000    
     3 'Normalizat'    1.2099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71317       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=   5504.706     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      231 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.915        16.390        .10371E-03    .36698E-03
   2  Index         2.1434        .84451        .97544E-02    .70044E-04
   3  Normalizat    1.2099        .22499        .25733E-03    .36360E-04
   4  Prefactor     .71318        .14151        .20621E-03    .10706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.915
  Index      = 2.14342
  Normalizat = 1.20991
  Prefactor  = 0.713176
 **********
 **   18 **HESSE 
 **********

 FCN=   5504.706     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.915        15.842        .20742E-04   -1.4935    
   2  Index         2.1434        .81586        .39018E-03   -.60811    
   3  Normalizat    1.2099        .22485        .10293E-04   -.86297    
   4  Prefactor     .71318        .14154        .82486E-05   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03923e-10
Minuit parameter uncertainties:
  1  15.8461
  2  0.821338
  3  0.225033
  4  0.141607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/689579': 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) = 5504.70584489
delta logL = 0.00305308073712

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.491e+01  1.585e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.143e+00  8.213e-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:  7.132e-01  1.416e-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.210e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 2.14 +/- 0.82
Photon Flux (Free Index): 3.16e-08 +/- 3.95e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.94e-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/689579/cmap_HighResolution_460166401_460425601_4FGL_J2142.5-2552_daily_bin852.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', comment='SUCCESS', photon_flux='3.38e-08', energy_flux2='1.59e-05', photon_flux_error='3.10e-08', dlogl='3.05e-03', energy_flux='1.49e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2021-09-27 00:49:41.811356', photon_index_error2='0.82', photon_index2='2.14', ts='2.90', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.94e-05', EG='1.21', time_epoch_completed='1632728981.81', return_code='0', job_id='689579', GAL2='0.71', EG2='1.21', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.95e-08', ts2='2.90', photon_index='2.21' WHERE bin_id='852' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:49:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 689579: <4FGL_J2142.5-2552_daily_bin852> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin852> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:40:19 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:40:38 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:40:38 2021
Terminated at Mon Sep 27 00:49:42 2021
Results reported at Mon Sep 27 00:49:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin852 325.645 -25.8777 460166401 460425601 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 :                                   522.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   544 sec.
    Turnaround time :                            563 sec.

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

