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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1337
RA = 325.645, Dec = -25.8777
tmin = 585878401, tmax = 586137601
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='691372', job_status='RUN', time_executed='2021-09-27 00:49:28.053644', time_epoch_executed='1632728968.05' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691372/ft1_4FGL_J2142.5-2552_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691372/ft2_4FGL_J2142.5-2552_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691372/ft1_4FGL_J2142.5-2552_daily_bin1337.fits outfile=/scratch/kocevski/691372/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1337.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=585878401.0 tmax=586137601.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.39
user 2.60
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691372/ft1_filtered_4FGL_J2142.5-2552_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/691372/ft2_4FGL_J2142.5-2552_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/691372/ltcube_585878401_586137601_4FGL_J2142.5-2552_daily_bin1337.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/691372/ft2_4FGL_J2142.5-2552_daily_bin1337.fits
.....................!
real 14.92
user 14.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691372/ft1_filtered_4FGL_J2142.5-2552_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/691372/ft2_4FGL_J2142.5-2552_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/691372/ltcube_585878401_586137601_4FGL_J2142.5-2552_daily_bin1337.fits outfile=/scratch/kocevski/691372/expmap_585878401_586137601_4FGL_J2142.5-2552_daily_bin1337.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/691372/ltcube_585878401_586137601_4FGL_J2142.5-2552_daily_bin1337.fits
.....................!
real 190.63
user 185.68
sys 4.58

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/691372/ft1_filtered_4FGL_J2142.5-2552_daily_bin1337.fits scfile=/scratch/kocevski/691372/ft2_4FGL_J2142.5-2552_daily_bin1337.fits outfile=/scratch/kocevski/691372/cmap_585878401_586137601_4FGL_J2142.5-2552_daily_bin1337.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691372/ft1_filtered_4FGL_J2142.5-2552_daily_bin1337.fits scfile=/scratch/kocevski/691372/ft2_4FGL_J2142.5-2552_daily_bin1337.fits outfile=/scratch/kocevski/691372/cmap_HighResolution_585878401_586137601_4FGL_J2142.5-2552_daily_bin1337.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 1.01
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691372/ft1_filtered_4FGL_J2142.5-2552_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/691372/ft2_4FGL_J2142.5-2552_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691372/Model_4FGL_J2142.5-2552_daily_bin1337.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/691372/ft1_filtered_4FGL_J2142.5-2552_daily_bin1337.fits......................!
real 22.05
user 20.83
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.967       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6834       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1780       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.272       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1742       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .31667E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30625       1.0000         .10000E-03   10000.    
    18 'norm      '    .15623E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64943       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1418       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=   1298.181     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     2367 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.923        250.48        .53150E-04    .78072E-06
   2  norm          .10000E-03    43.654        .18142E-02** at limit **
   3  Prefactor     .10000E-03    16.482        .14291E-02** at limit **
   4  Prefactor     .10000E-03    10.992        .11659E-02** at limit **
   5  norm          .10000E-03    10.450        .11378E-02** at limit **
   6  Prefactor     1.6822        32.665        .32461E-03   -.44462E-04
   7  Prefactor     8.1706        31.997        .14019E-03    .94067E-05
   8  Prefactor     .10000E-03    22.751        .16787E-02** at limit **
   9  norm          15.268        29.888        .10249E-03    .77344E-04
  10  Prefactor     9.5052        50.057        .12922E-03    .89081E-05
  11  Prefactor     .10000E-03    31.374        .18142E-02** at limit **
  12  Prefactor     .10000E-03    96.946        .18142E-02** at limit **
  13  norm          1.1744        16.768        .27207E-03   -.29889E-03
  14  Prefactor     .10000E-03    34.189        .18142E-02** at limit **
  15  norm          .31135E-01    3.5132        .73539E-03    .68775E-03
  16  Prefactor     .10000E-03    45.762        .18142E-02** at limit **
  17  Prefactor     .17835        59.000        .72702E-01    .92685E-04
  18  norm          .10000E-03    154.91        .18142E-02** at limit **
  19  Normalizat    .64968        .51017        .34057E-03    .13258E-03
  20  Prefactor     1.1420        .35079        .17994E-03    .35740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.9231
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.68221
  Prefactor  = 8.17063
  Prefactor  = 0.0001
  norm       = 15.2682
  Prefactor  = 9.50524
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 1.17445
  Prefactor  = 0.0001
  norm       = 0.0311345
  Prefactor  = 0.0001
  Prefactor  = 0.178354
  norm       = 0.000100004
  Normalizat = 0.649682
  Prefactor  = 1.14196
 **********
 **   18 **HESSE 
 **********

 FCN=   1298.181     FROM HESSE     STATUS=OK           283 CALLS     2650 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.923        250.53        .10630E-04   -1.4198    
   2  norm          .10000E-03    43.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.482        .28582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.992        .23318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.450        .22757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6822        32.652        .12984E-04   -1.5449    
   7  Prefactor     8.1706        31.993        .56078E-05   -1.5136    
   8  Prefactor     .10000E-03    22.752        .33574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.268        29.883        .40995E-05   -1.4926    
  10  Prefactor     9.5052        50.024        .51687E-05   -1.5091    
  11  Prefactor     .10000E-03    31.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    96.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1744        16.666        .10883E-04   -1.5491    
  14  Prefactor     .10000E-03    34.190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .31135E-01    3.4946        .29415E-04   -1.5673    
  16  Prefactor     .10000E-03    45.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .17835        53.029        .78404E-01   -1.5624    
  18  norm          .10000E-03    154.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .64968        .51030        .68115E-04   -1.0591    
  20  Prefactor     1.1420        .35094        .35987E-04   -.88137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92366e-09
Minuit parameter uncertainties:
  1  240.548
  2  1.03635e-05
  3  3.00554e-06
  4  9.53234e-06
  5  1.46699e-06
  6  14.8315
  7  32.0604
  8  5.16762e-05
  9  29.9125
  10  43.6687
  11  0.000411037
  12  0.000785758
  13  8.85086
  14  2.25481e-05
  15  0.658688
  16  9.94746e-05
  17  6.15456
  18  0.00152138
  19  0.514076
  20  0.351652
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  5.168e-05  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.142e+00  3.517e-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:  6.497e-01  5.141e-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: 2.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691372/likelihoodResults_585878401_586137601_4FGL_J2142.5-2552_daily_bin1337.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) = 1298.18080469
delta logL = -0.000208677228102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1298.18059614
delta logL = -1.34057700052e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2949       1.0000          .0000       10.000    
     3 'Normalizat'    .64967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1420       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.

 FCN=   1298.181     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.537        .90712E-02** at limit **
   2  Index         2.2781        6.1390        .50000        .65255E-05
   3  Normalizat    .64969        .41861        .76918E-01    .59787E-05
   4  Prefactor     1.1420        .28961        .36173E-01    .41612E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27812
  Normalizat = 0.649685
  Prefactor  = 1.14196
 **********
 **   18 **HESSE 
 **********

 FCN=   1298.181     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    386.56        .16404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2781        8.8413        .50000       -.57565    
   3  Normalizat    .64969        .48119        .34056E-03   -1.0591    
   4  Prefactor     1.1420        .33408        .17994E-03   -.88137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03953e-09
Minuit parameter uncertainties:
  1  0.00019712
  2  17.8765
  3  0.484351
  4  0.334701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691372': 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) = 1298.18059611
delta logL = -1.02991180029e-07

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  1.971e-04  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.278e+00  1.788e+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.142e+00  3.347e-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:  6.497e-01  4.844e-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/691372/cmap_HighResolution_585878401_586137601_4FGL_J2142.5-2552_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', job_status='DONE', photon_flux_upper_limit='2.41e-07', time_completed='2021-09-27 00:55:39.366307', job_id='691372', GAL2='1.14', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632729339.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='-1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1337' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:55:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 691372: <4FGL_J2142.5-2552_daily_bin1337> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1337 325.645 -25.8777 585878401 586137601 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 :                                   369.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             314.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   442 sec.
    Turnaround time :                            586 sec.

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

