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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1656
RA = 325.645, Dec = -25.8777
tmin = 668563201, tmax = 668822401
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='383080', job_status='RUN', time_executed='2022-03-13 00:43:05.612488', time_epoch_executed='1647160985.61' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383080/ft1_4FGL_J2142.5-2552_daily_bin1656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383080/ft2_4FGL_J2142.5-2552_daily_bin1656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383080/ft1_4FGL_J2142.5-2552_daily_bin1656.fits outfile=/scratch/kocevski/383080/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1656.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=668563201.0 tmax=668822401.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 5.51
user 5.04
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383080/ft2_4FGL_J2142.5-2552_daily_bin1656.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/383080/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1656.fits evtable="EVENTS" outfile="/scratch/kocevski/383080/ft1_filtered_4FGL_J2142.5-2552_daily_bin1656.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.35
sys 0.14
Number of photons that survived the gtmktime cut: 484

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383080/ft1_filtered_4FGL_J2142.5-2552_daily_bin1656.fits" evtable="EVENTS" scfile=/scratch/kocevski/383080/ft2_4FGL_J2142.5-2552_daily_bin1656.fits sctable="SC_DATA" outfile=/scratch/kocevski/383080/ltcube_668563201_668822401_4FGL_J2142.5-2552_daily_bin1656.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/383080/ft2_4FGL_J2142.5-2552_daily_bin1656.fits
.....................!
real 15.14
user 14.32
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383080/ft1_filtered_4FGL_J2142.5-2552_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/383080/ft2_4FGL_J2142.5-2552_daily_bin1656.fits sctable="SC_DATA" expcube=/scratch/kocevski/383080/ltcube_668563201_668822401_4FGL_J2142.5-2552_daily_bin1656.fits outfile=/scratch/kocevski/383080/expmap_668563201_668822401_4FGL_J2142.5-2552_daily_bin1656.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/383080/ltcube_668563201_668822401_4FGL_J2142.5-2552_daily_bin1656.fits
.....................!
real 193.28
user 188.64
sys 4.13

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/383080/ft1_filtered_4FGL_J2142.5-2552_daily_bin1656.fits scfile=/scratch/kocevski/383080/ft2_4FGL_J2142.5-2552_daily_bin1656.fits outfile=/scratch/kocevski/383080/cmap_668563201_668822401_4FGL_J2142.5-2552_daily_bin1656.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.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383080/ft1_filtered_4FGL_J2142.5-2552_daily_bin1656.fits scfile=/scratch/kocevski/383080/ft2_4FGL_J2142.5-2552_daily_bin1656.fits outfile=/scratch/kocevski/383080/cmap_HighResolution_668563201_668822401_4FGL_J2142.5-2552_daily_bin1656.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/383080/ft1_filtered_4FGL_J2142.5-2552_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/383080/ft2_4FGL_J2142.5-2552_daily_bin1656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383080/Model_4FGL_J2142.5-2552_daily_bin1656.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/383080/ft1_filtered_4FGL_J2142.5-2552_daily_bin1656.fits.....................!
real 50.40
user 49.07
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    213.96       1.0000         .10000E-03   10000.    
     2 'norm      '    .10458E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5326       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.328       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.1231       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.123       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8355       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.688       1.0000         .10000E-03   10000.    
    18 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2620       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87895       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=   5339.267     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2081 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     213.82        148.41        .11310E-04   -.10551E-04
   2  norm          .10000E-03    9.4505       -.44316E-06** at limit **
   3  Prefactor     56.930        28.009        .58473E-06   -.18859E-04
   4  Prefactor     .10000E-03    3.0078       -.45349E-06** at limit **
   5  norm          .10000E-03    6.8860        .13683E-06** at limit **
   6  Prefactor     .10000E-03    2.4396        .38153E-07** at limit **
   7  Prefactor     .10000E-03    14.853        .35889E-06** at limit **
   8  Prefactor     1.5352        16.652        .14690E-04    .37311E-05
   9  norm          3.8258        7.6231        .23339E-05   -.10193E-04
  10  Prefactor     14.324        26.284        .10847E-05   -.10004E-04
  11  Prefactor     .10000E-03    34.598       -.19368E-06** at limit **
  12  Prefactor     .10000E-03    36.789        .46836E-06** at limit **
  13  norm          8.1244        5.8961        .40004E-07   -.26270E-04
  14  Prefactor     23.123        19.795        .85333E-07   -.80550E-05
  15  norm          .10000E-03    .15180        .31949E-07** at limit **
  16  Prefactor     6.8341        11.577        .15907E-06   -.88108E-05
  17  Prefactor     24.687        23.320        .24037E-06   -.12208E-04
  18  norm          .10000E-03    24.327        .23326E-06** at limit **
  19  Normalizat    1.2619        .23428       -.11108E-05   -.79453E-06
  20  Prefactor     .87899        .13772       -.99968E-06   -.15047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 213.816
  norm       = 0.0001
  Prefactor  = 56.9297
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53515
  norm       = 3.8258
  Prefactor  = 14.3243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.12437
  Prefactor  = 23.1226
  norm       = 0.0001
  Prefactor  = 6.83413
  Prefactor  = 24.6875
  norm       = 0.0001
  Normalizat = 1.26194
  Prefactor  = 0.878991
 **********
 **   18 **HESSE 
 **********

 FCN=   5339.267     FROM HESSE     STATUS=OK           295 CALLS     2376 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     213.82        148.40        .13822E-03   -1.2773    
   2  norm          .10000E-03    9.4575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.930        28.025        .53164E-04   -1.4197    
   4  Prefactor     .10000E-03    3.0251        .12383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.0035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4427        .11146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5352        16.651        .17235E-02   -1.5460    
   9  norm          3.8258        7.6178        .10316E-02   -1.5317    
  10  Prefactor     14.324        26.325        .10581E-03   -1.4951    
  11  Prefactor     .10000E-03    35.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.1244        5.8592        .13916E-03   -1.5138    
  14  Prefactor     23.123        19.787        .83299E-04   -1.4746    
  15  norm          .10000E-03    .18427        .54595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8341        11.577        .15346E-03   -1.5185    
  17  Prefactor     24.687        23.374        .80620E-04   -1.4714    
  18  norm          .10000E-03    24.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2619        .27294        .29051E-03   -.84710    
  20  Prefactor     .87899        .15965        .20874E-03   -.96879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0874e-10
Minuit parameter uncertainties:
  1  148.657
  2  6.09557e-05
  3  28.0315
  4  3.45779e-05
  5  1.45054e-05
  6  2.64337e-06
  7  5.94897e-05
  8  10.115
  9  7.61972
  10  26.3461
  11  6.20026e-05
  12  1.17704e-05
  13  5.85963
  14  19.7927
  15  4.46436e-07
  16  11.5807
  17  23.3825
  18  2.59817e-05
  19  0.273249
  20  0.159734
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.535e+00  1.012e+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:  8.790e-01  1.597e-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.262e+00  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/383080/likelihoodResults_668563201_668822401_4FGL_J2142.5-2552_daily_bin1656.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) = 5339.19118001
delta logL = 0.0753503602027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5339.18064881
delta logL = 0.0858815572574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7057       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5837       1.0000          .0000       10.000    
     3 'Normalizat'    1.2653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87569       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=   5339.181     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7043        12.274        .18550E-03   -.33707E-05
   2  Index         1.5843        1.0902        .17566E-01   -.88137E-04
   3  Normalizat    1.2656        .25531        .29013E-03    .12108E-04
   4  Prefactor     .87552        .15736        .20907E-03    .87003E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70427
  Index      = 1.58429
  Normalizat = 1.2656
  Prefactor  = 0.875522
 **********
 **   18 **HESSE 
 **********

 FCN=   5339.181     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7043        12.310        .74201E-05   -1.5274    
   2  Index         1.5843        1.0941        .35132E-02   -.75206    
   3  Normalizat    1.2656        .25549        .11605E-04   -.84599    
   4  Prefactor     .87552        .15747        .83629E-05   -.97002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33111e-13
Minuit parameter uncertainties:
  1  12.3162
  2  1.11117
  3  0.255747
  4  0.157553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383080': 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) = 5339.18064795
delta logL = 0.0858824195475

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  4.704e+00  1.232e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.584e+00  1.111e+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:  8.755e-01  1.576e-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.266e+00  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 325.645 -25.878

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/383080/cmap_HighResolution_668563201_668822401_4FGL_J2142.5-2552_daily_bin1656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2022-03-13 00:52:20.587078', job_id='383080', GAL2='0.88', fit_tolerance='1e-08', EG2='1.27', EG='1.26', time_epoch_completed='1647161540.59', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.59e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1656' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar 13 00:52:20 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 383080: <4FGL_J2142.5-2552_daily_bin1656> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1656> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Mar 13 00:40:33 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar 13 00:42:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar 13 00:42:55 2022
Terminated at Sun Mar 13 00:52:21 2022
Results reported at Sun Mar 13 00:52:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1656 325.645 -25.8777 668563201 668822401 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 :                                   556.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            708 sec.

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

