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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1478
RA = 325.645, Dec = -25.8777
tmin = 622425601, tmax = 622684801
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='691585', job_status='RUN', time_executed='2021-09-27 00:51:42.185524', time_epoch_executed='1632729102.19' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691585

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691585/ft1_4FGL_J2142.5-2552_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691585/ft2_4FGL_J2142.5-2552_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691585/ft1_4FGL_J2142.5-2552_daily_bin1478.fits outfile=/scratch/kocevski/691585/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1478.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=622425601.0 tmax=622684801.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 4.46
user 4.20
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691585/ft1_filtered_4FGL_J2142.5-2552_daily_bin1478.fits" evtable="EVENTS" scfile=/scratch/kocevski/691585/ft2_4FGL_J2142.5-2552_daily_bin1478.fits sctable="SC_DATA" outfile=/scratch/kocevski/691585/ltcube_622425601_622684801_4FGL_J2142.5-2552_daily_bin1478.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/691585/ft2_4FGL_J2142.5-2552_daily_bin1478.fits
.....................!
real 19.51
user 19.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691585/ft1_filtered_4FGL_J2142.5-2552_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/691585/ft2_4FGL_J2142.5-2552_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/691585/ltcube_622425601_622684801_4FGL_J2142.5-2552_daily_bin1478.fits outfile=/scratch/kocevski/691585/expmap_622425601_622684801_4FGL_J2142.5-2552_daily_bin1478.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/691585/ltcube_622425601_622684801_4FGL_J2142.5-2552_daily_bin1478.fits
.....................!
real 196.35
user 191.23
sys 4.52

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/691585/ft1_filtered_4FGL_J2142.5-2552_daily_bin1478.fits scfile=/scratch/kocevski/691585/ft2_4FGL_J2142.5-2552_daily_bin1478.fits outfile=/scratch/kocevski/691585/cmap_622425601_622684801_4FGL_J2142.5-2552_daily_bin1478.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.80
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691585/ft1_filtered_4FGL_J2142.5-2552_daily_bin1478.fits scfile=/scratch/kocevski/691585/ft2_4FGL_J2142.5-2552_daily_bin1478.fits outfile=/scratch/kocevski/691585/cmap_HighResolution_622425601_622684801_4FGL_J2142.5-2552_daily_bin1478.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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691585/ft1_filtered_4FGL_J2142.5-2552_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/691585/ft2_4FGL_J2142.5-2552_daily_bin1478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691585/Model_4FGL_J2142.5-2552_daily_bin1478.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/691585/ft1_filtered_4FGL_J2142.5-2552_daily_bin1478.fits.....................!
real 57.66
user 55.55
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18688E-03   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 '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.482       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3916       1.0000         .10000E-03   10000.    
    13 'norm      '    .39527       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71120       1.0000         .10000E-03   10000.    
    15 'norm      '    .55798       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94552       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=   6316.674     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1761 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.678        .11785E-06** at limit **
   2  norm          .10000E-03    5.4261       -.26423E-07** at limit **
   3  Prefactor     .10000E-03    15.734        .11157E-06** at limit **
   4  Prefactor     .10000E-03    2.6753        .65837E-06** at limit **
   5  norm          .10000E-03    2.5879       -.34590E-08** at limit **
   6  Prefactor     .10000E-03    3.5250        .72320E-07** at limit **
   7  Prefactor     .10000E-03    6.8691        .19671E-06** at limit **
   8  Prefactor     24.483        14.328       -.14763E-06    .38510E-04
   9  norm          .10000E-03    3.0395        .97153E-07** at limit **
  10  Prefactor     .10000E-03    10.130        .14197E-06** at limit **
  11  Prefactor     .10000E-03    10.274       -.44045E-05** at limit **
  12  Prefactor     7.3345        69.793        .69425E-05    .44429E-04
  13  norm          .38473        3.0108        .11505E-05   -.10385E-02
  14  Prefactor     .66403        12.846        .16916E-05   -.24326E-03
  15  norm          .55806        .29249        .21152E-07    .31970E-03
  16  Prefactor     .10000E-03    6.1319       -.40077E-06** at limit **
  17  Prefactor     .10000E-03    8.1639       -.22207E-06** at limit **
  18  norm          .10000E-03    17.301       -.31116E-07** at limit **
  19  Normalizat    1.0420        .19207        .30441E-05    .85242E-04
  20  Prefactor     .94556        .12078       -.15207E-05    .16443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4829
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 7.33454
  norm       = 0.384729
  Prefactor  = 0.664032
  norm       = 0.558061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.04199
  Prefactor  = 0.945565
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.674     FROM HESSE     STATUS=OK           289 CALLS     2050 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.4250        .18080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9224        .24630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5912        .12487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5454        .14569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.483        14.326        .80958E-04   -1.4718    
   9  norm          .10000E-03    3.0507        .13528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3345        74.026        .14752E-03   -1.5166    
  13  norm          .38473        9.8230        .21095E-02   -1.5584    
  14  Prefactor     .66403        91.196        .52363E-02   -1.5545    
  15  norm          .55806        .29530        .29342E-04   -1.5559    
  16  Prefactor     .10000E-03    6.2023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0420        .21804        .27708E-03   -.91637    
  20  Prefactor     .94556        .13687        .18591E-03   -.94567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18988e-09
Minuit parameter uncertainties:
  1  4.41526e-05
  2  8.20695e-06
  3  2.16411e-05
  4  8.32846e-05
  5  7.51746e-07
  6  5.87993e-07
  7  2.59291e-06
  8  14.3283
  9  1.33561e-06
  10  6.66747e-06
  11  0.000452179
  12  46.677
  13  3.88823
  14  15.5868
  15  0.295296
  16  3.44125e-05
  17  4.087e-05
  18  2.94436e-05
  19  0.218229
  20  0.136923
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  2.448e+01  1.433e+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:  9.456e-01  1.369e-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.042e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.63
Ra Dec: 325.645 -25.878
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.50e-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) = 6316.28763991
delta logL = 0.386231357545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6316.26956531
delta logL = 0.40430595333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.468       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7767       1.0000          .0000       10.000    
     3 'Normalizat'    1.0641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94066       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=   6316.270     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      249 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.472        18.310        .76439E-04   -.11922E-03
   2  Index         1.7768        .49642        .83381E-02   -.65831E-04
   3  Normalizat    1.0641        .21220        .27468E-03   -.67902E-03
   4  Prefactor     .94068        .13627        .18644E-03   -.89217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4721
  Index      = 1.77676
  Normalizat = 1.06406
  Prefactor  = 0.940683
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.270     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.472        18.428        .15288E-04   -1.4659    
   2  Index         1.7768        .49953        .33352E-03   -.70056    
   3  Normalizat    1.0641        .21234        .54936E-04   -.90914    
   4  Prefactor     .94068        .13637        .37287E-04   -.94734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13816e-10
Minuit parameter uncertainties:
  1  18.4319
  2  0.500959
  3  0.212509
  4  0.136417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691585': 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) = 6316.2695652
delta logL = 0.404306067982

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  2.747e+01  1.843e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.777e+00  5.010e-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:  9.407e-01  1.364e-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.064e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.43
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 1.78 +/- 0.50
Photon Flux (Free Index): 3.34e-08 +/- 3.46e-08
Energy Flux (Free Index): 4.29e-05 +/- 4.19e-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/691585/cmap_HighResolution_622425601_622684801_4FGL_J2142.5-2552_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='4.29e-05', photon_flux_error='3.40e-08', dlogl='4.04e-01', energy_flux='2.57e-05', photon_flux2='3.34e-08', job_status='DONE', time_completed='2021-09-27 01:00:45.181770', photon_index_error2='0.50', photon_index2='1.78', ts='12.63', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='4.19e-05', EG='1.04', time_epoch_completed='1632729645.18', return_code='0', job_id='691585', GAL2='0.94', EG2='1.06', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.46e-08', ts2='13.43', photon_index='2.21' WHERE bin_id='1478' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:00:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 691585: <4FGL_J2142.5-2552_daily_bin1478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1478 325.645 -25.8777 622425601 622684801 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 :                                   539.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            873 sec.

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

