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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1211
RA = 325.645, Dec = -25.8777
tmin = 553219201, tmax = 553478401
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='691167', job_status='RUN', time_executed='2021-09-27 00:50:40.908294', time_epoch_executed='1632729040.91' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691167

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691167/ft1_4FGL_J2142.5-2552_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691167/ft2_4FGL_J2142.5-2552_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691167/ft1_4FGL_J2142.5-2552_daily_bin1211.fits outfile=/scratch/kocevski/691167/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1211.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=553219201.0 tmax=553478401.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.77
user 2.52
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691167/ft2_4FGL_J2142.5-2552_daily_bin1211.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/691167/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/691167/ft1_filtered_4FGL_J2142.5-2552_daily_bin1211.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691167/ft1_filtered_4FGL_J2142.5-2552_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/691167/ft2_4FGL_J2142.5-2552_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/691167/ltcube_553219201_553478401_4FGL_J2142.5-2552_daily_bin1211.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/691167/ft2_4FGL_J2142.5-2552_daily_bin1211.fits
.....................!
real 14.94
user 14.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691167/ft1_filtered_4FGL_J2142.5-2552_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/691167/ft2_4FGL_J2142.5-2552_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/691167/ltcube_553219201_553478401_4FGL_J2142.5-2552_daily_bin1211.fits outfile=/scratch/kocevski/691167/expmap_553219201_553478401_4FGL_J2142.5-2552_daily_bin1211.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/691167/ltcube_553219201_553478401_4FGL_J2142.5-2552_daily_bin1211.fits
.....................!
real 195.84
user 187.96
sys 4.67

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/691167/ft1_filtered_4FGL_J2142.5-2552_daily_bin1211.fits scfile=/scratch/kocevski/691167/ft2_4FGL_J2142.5-2552_daily_bin1211.fits outfile=/scratch/kocevski/691167/cmap_553219201_553478401_4FGL_J2142.5-2552_daily_bin1211.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691167/ft1_filtered_4FGL_J2142.5-2552_daily_bin1211.fits scfile=/scratch/kocevski/691167/ft2_4FGL_J2142.5-2552_daily_bin1211.fits outfile=/scratch/kocevski/691167/cmap_HighResolution_553219201_553478401_4FGL_J2142.5-2552_daily_bin1211.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691167/ft1_filtered_4FGL_J2142.5-2552_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/691167/ft2_4FGL_J2142.5-2552_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691167/Model_4FGL_J2142.5-2552_daily_bin1211.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/691167/ft1_filtered_4FGL_J2142.5-2552_daily_bin1211.fits......................!
real 26.71
user 24.66
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22334E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12275E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.767       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .78239E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19845       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    24.118       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2511       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0371       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=   1770.565     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2040 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    610.26        .17208E-03** at limit **
   2  norm          .10000E-03    429.47        .10511E-03** at limit **
   3  Prefactor     52.292        118.16        .74525E-04   -.55342E-05
   4  Prefactor     .10000E-03    17.056       -.37990E-06** at limit **
   5  norm          .10000E-03    19.285        .41797E-06** at limit **
   6  Prefactor     .10000E-03    13.788        .43209E-07** at limit **
   7  Prefactor     .10000E-03    29.064        .21810E-04** at limit **
   8  Prefactor     48.795        50.646       -.55063E-05    .80326E-04
   9  norm          .10000E-03    11.343       -.59911E-07** at limit **
  10  Prefactor     .10000E-03    35.824       -.22475E-04** at limit **
  11  Prefactor     .10000E-03    27.419       -.13706E-04** at limit **
  12  Prefactor     .10000E-03    414.81       -.95604E-04** at limit **
  13  norm          .10000E-03    8.4540        .20797E-06** at limit **
  14  Prefactor     .16386E-03    65.436       -.40959E-05** at limit **
  15  norm          .10000E-03    .20704        .36917E-07** at limit **
  16  Prefactor     8.9601        21.184        .33559E-04    .89561E-05
  17  Prefactor     .10000E-03    40.144        .14189E-04** at limit **
  18  norm          24.123        24.576        .17165E-04   -.88949E-05
  19  Normalizat    1.2511        .39389       -.93170E-05    .11232E-03
  20  Prefactor     1.0373        .27561       -.30947E-05    .28500E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.2918
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.7948
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000163865
  norm       = 0.0001
  Prefactor  = 8.96011
  Prefactor  = 0.000100001
  norm       = 24.1226
  Normalizat = 1.25107
  Prefactor  = 1.03733
 **********
 **   18 **HESSE 
 **********

 FCN=   1770.565     FROM HESSE     STATUS=OK           287 CALLS     2327 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    610.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    429.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.292        118.16        .55516E-04   -1.4260    
   4  Prefactor     .10000E-03    17.062        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    19.347        .18053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.817        .15263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.795        50.662        .57423E-04   -1.4310    
   9  norm          .10000E-03    11.371        .13842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    416.82        .20915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.5482        .11941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16386E-03    85.710        .97272E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20709        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9601        21.196        .13392E-03   -1.5109    
  17  Prefactor     .10000E-03    40.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.123        24.586        .81566E-04   -1.4725    
  19  Normalizat    1.2511        .45977        .28533E-03   -.85039    
  20  Prefactor     1.0373        .32189        .21929E-03   -.91495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.751e-09
Minuit parameter uncertainties:
  1  0.000215431
  2  0.000365952
  3  118.696
  4  7.78187e-05
  5  4.2279e-05
  6  3.34941e-05
  7  8.80816e-05
  8  50.7064
  9  4.25633e-05
  10  0.000167674
  11  4.4338e-05
  12  0.000587262
  13  5.80054e-05
  14  0.148184
  15  2.03145e-07
  16  21.2137
  17  0.000463728
  18  24.5958
  19  0.461276
  20  0.322494
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  4.879e+01  5.071e+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:  1.037e+00  3.225e-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.251e+00  4.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 325.645 -25.878
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 1.20e-07
Energy Flux (Fixed Index): 5.12e-05 +/- 5.32e-05

TS (Fixed Index): 1.43
Ra Dec: 325.645 -25.878
Photon Flux Upper Limit: 3.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691167/likelihoodResults_553219201_553478401_4FGL_J2142.5-2552_daily_bin1211.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) = 1769.85836318
delta logL = 0.706527399376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1769.84063227
delta logL = 0.724258315358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.399       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3005       1.0000          .0000       10.000    
     3 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0958       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=   1769.841     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      300 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.415        66.369        .10357E-03   -.17632E-03
   2  Index         3.2993        2.0641        .27059E-02   -.45272E-04
   3  Normalizat    1.1035        .48243        .29974E-03   -.26442E-03
   4  Prefactor     1.0966        .34307        .21368E-03    .93375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4149
  Index      = 3.29934
  Normalizat = 1.10351
  Prefactor  = 1.09663
 **********
 **   18 **HESSE 
 **********

 FCN=   1769.841     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.415        33.765        .41426E-05   -1.4948    
   2  Index         3.2993        1.1530        .10823E-03   -.34706    
   3  Normalizat    1.1035        .46888        .59949E-04   -.89639    
   4  Prefactor     1.0966        .32918        .42735E-04   -.89574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33461e-09
Minuit parameter uncertainties:
  1  33.8097
  2  1.1649
  3  0.470664
  4  0.329795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691167': 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) = 1769.8406268
delta logL = 0.724263780488

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.441e+01  3.381e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  3.299e+00  1.165e+00  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.097e+00  3.298e-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.104e+00  4.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 3.30 +/- 1.16
Photon Flux (Free Index): 2.94e-07 +/- 2.18e-07
Energy Flux (Free Index): 5.20e-05 +/- 3.74e-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/691167/cmap_HighResolution_553219201_553478401_4FGL_J2142.5-2552_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-02', comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='5.20e-05', photon_flux_error='1.20e-07', dlogl='7.24e-01', energy_flux='5.12e-05', photon_flux2='2.94e-07', job_status='DONE', time_completed='2021-09-27 00:57:16.672015', photon_index_error2='1.16', photon_index2='3.30', ts='1.43', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='3.86e-07', energy_flux_error2='3.74e-05', EG='1.25', time_epoch_completed='1632729436.67', return_code='0', job_id='691167', GAL2='1.10', EG2='1.10', return_code2='0', energy_flux_error='5.32e-05', photon_flux_error2='2.18e-07', ts2='2.97', photon_index='2.21' WHERE bin_id='1211' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:57:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 691167: <4FGL_J2142.5-2552_daily_bin1211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1211 325.645 -25.8777 553219201 553478401 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 :                                   389.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            702 sec.

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

