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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1518
RA = 325.645, Dec = -25.8777
tmin = 632793601, tmax = 633052801
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='691651', job_status='RUN', time_executed='2021-09-27 00:51:55.600422', time_epoch_executed='1632729115.6' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691651/ft1_4FGL_J2142.5-2552_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691651/ft2_4FGL_J2142.5-2552_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691651/ft1_4FGL_J2142.5-2552_daily_bin1518.fits outfile=/scratch/kocevski/691651/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1518.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=632793601.0 tmax=633052801.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.06
user 2.85
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691651/ft1_filtered_4FGL_J2142.5-2552_daily_bin1518.fits" evtable="EVENTS" scfile=/scratch/kocevski/691651/ft2_4FGL_J2142.5-2552_daily_bin1518.fits sctable="SC_DATA" outfile=/scratch/kocevski/691651/ltcube_632793601_633052801_4FGL_J2142.5-2552_daily_bin1518.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/691651/ft2_4FGL_J2142.5-2552_daily_bin1518.fits
.....................!
real 13.09
user 12.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691651/ft1_filtered_4FGL_J2142.5-2552_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/691651/ft2_4FGL_J2142.5-2552_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/691651/ltcube_632793601_633052801_4FGL_J2142.5-2552_daily_bin1518.fits outfile=/scratch/kocevski/691651/expmap_632793601_633052801_4FGL_J2142.5-2552_daily_bin1518.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/691651/ltcube_632793601_633052801_4FGL_J2142.5-2552_daily_bin1518.fits
.....................!
real 156.40
user 152.19
sys 3.90

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/691651/ft1_filtered_4FGL_J2142.5-2552_daily_bin1518.fits scfile=/scratch/kocevski/691651/ft2_4FGL_J2142.5-2552_daily_bin1518.fits outfile=/scratch/kocevski/691651/cmap_632793601_633052801_4FGL_J2142.5-2552_daily_bin1518.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691651/ft1_filtered_4FGL_J2142.5-2552_daily_bin1518.fits scfile=/scratch/kocevski/691651/ft2_4FGL_J2142.5-2552_daily_bin1518.fits outfile=/scratch/kocevski/691651/cmap_HighResolution_632793601_633052801_4FGL_J2142.5-2552_daily_bin1518.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.48
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691651/ft1_filtered_4FGL_J2142.5-2552_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/691651/ft2_4FGL_J2142.5-2552_daily_bin1518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691651/Model_4FGL_J2142.5-2552_daily_bin1518.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/691651/ft1_filtered_4FGL_J2142.5-2552_daily_bin1518.fits.....................!
real 37.37
user 36.33
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.879       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1863       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.317       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.975       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1036       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .25111E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87379       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1078       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=   4944.054     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1992 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.311       -.19827E-04** at limit **
   2  norm          .10000E-03    12.525        .54248E-05** at limit **
   3  Prefactor     .10000E-03    20.463       -.33082E-05** at limit **
   4  Prefactor     .10000E-03    3.5326       -.45545E-07** at limit **
   5  norm          .10000E-03    2.8496       -.41529E-07** at limit **
   6  Prefactor     .10000E-03    6.6913       -.19381E-06** at limit **
   7  Prefactor     12.880        16.388       -.55750E-07   -.23505E-04
   8  Prefactor     .10000E-03    20.631       -.38151E-05** at limit **
   9  norm          4.1870        9.2070       -.33661E-06   -.14484E-03
  10  Prefactor     48.321        27.789        .34257E-05    .62236E-05
  11  Prefactor     .10000E-03    9.4262       -.10346E-04** at limit **
  12  Prefactor     .10000E-03    39.705        .22961E-04** at limit **
  13  norm          11.039        8.1478       -.71566E-07   -.11318E-03
  14  Prefactor     15.966        26.568       -.89527E-05   -.12017E-04
  15  norm          2.1036        .62961        .41307E-08    .58229E-04
  16  Prefactor     .10000E-03    3.7936       -.77401E-07** at limit **
  17  Prefactor     .10000E-03    8.8961        .77916E-05** at limit **
  18  norm          .10006E-03    19.331       -.16066E-05** at limit **
  19  Normalizat    .87373        .25530       -.25823E-06    .23522E-04
  20  Prefactor     1.1078        .15408        .27787E-06    .45837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8802
  Prefactor  = 0.0001
  norm       = 4.18698
  Prefactor  = 48.3214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0385
  Prefactor  = 15.9664
  norm       = 2.10364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100063
  Normalizat = 0.873725
  Prefactor  = 1.10778
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.054     FROM HESSE     STATUS=OK           287 CALLS     2279 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5450        .12905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.8500        .11592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7499        .17760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.880        16.408        .11162E-03   -1.4990    
   8  Prefactor     .10000E-03    20.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1870        9.1793        .19697E-03   -1.5299    
  10  Prefactor     48.321        27.817        .57688E-04   -1.4317    
  11  Prefactor     .10000E-03    9.4259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.039        8.2128        .12059E-03   -1.5043    
  14  Prefactor     15.966        26.583        .10021E-03   -1.4909    
  15  norm          2.1036        .63296        .28056E-04   -1.5418    
  16  Prefactor     .10000E-03    3.7975        .13375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.9056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10006E-03    79.042        .60200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87373        .29452        .34327E-03   -.97390    
  20  Prefactor     1.1078        .17820        .19465E-03   -.89218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23662e-10
Minuit parameter uncertainties:
  1  1.79217e-06
  2  7.1173e-07
  3  2.6509e-06
  4  3.99086e-07
  5  5.41011e-09
  6  3.77402e-06
  7  16.4136
  8  4.97391e-06
  9  9.18237
  10  27.8247
  11  7.4604e-07
  12  4.16038e-06
  13  8.2136
  14  26.6025
  15  0.632965
  16  5.15713e-07
  17  3.63631e-06
  18  0.00447803
  19  0.295065
  20  0.178298
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  4.974e-06  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.108e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  8.737e-01  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/691651/likelihoodResults_632793601_633052801_4FGL_J2142.5-2552_daily_bin1518.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): 102
logL (Free Index) = 4944.0541109
delta logL = -0.00022972491297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4944.05388177
delta logL = -5.91580828768e-07

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 'Index     '    2.1198       1.0000          .0000       10.000    
     3 'Normalizat'    .87373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1078       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=   4944.054     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      277 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1442.4        .18142E-02** at limit **
   2  Index         2.1711        6.9316        .50000       -.27881E-04
   3  Normalizat    .87373        .62579E-01    .34327E-03    .16427E-04
   4  Prefactor     1.1078        .39782E-01    .19465E-03   -.21260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.17115
  Normalizat = 0.873726
  Prefactor  = 1.10778
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.054     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6939.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1711        7.5697        .50000       -.60137    
   3  Normalizat    .87373        .23223        .13731E-04   -.97390    
   4  Prefactor     1.1078        .14774        .38930E-04   -.89218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.08953e-09
Minuit parameter uncertainties:
  1  0.0148859
  2  64.2622
  3  0.232496
  4  0.147791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691651': 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): 102
logL (Free Index) = 4944.05388143
delta logL = -2.59078660747e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.108e+00  1.478e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  8.737e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/691651/cmap_HighResolution_632793601_633052801_4FGL_J2142.5-2552_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.57e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-27 00:59:02.768255', job_id='691651', GAL2='1.11', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632729542.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-2.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1518' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:59:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 691651: <4FGL_J2142.5-2552_daily_bin1518> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1518> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:46:19 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:51:09 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:51:09 2021
Terminated at Mon Sep 27 00:59:03 2021
Results reported at Mon Sep 27 00:59:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1518 325.645 -25.8777 632793601 633052801 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 :                                   422.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   474 sec.
    Turnaround time :                            764 sec.

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

