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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1033
RA = 325.645, Dec = -25.8777
tmin = 507081601, tmax = 507340801
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='689845', job_status='RUN', time_executed='2021-09-27 00:42:47.752375', time_epoch_executed='1632728567.75' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/689845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/689845/ft1_4FGL_J2142.5-2552_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/689845/ft2_4FGL_J2142.5-2552_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/689845/ft1_4FGL_J2142.5-2552_daily_bin1033.fits outfile=/scratch/kocevski/689845/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1033.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=507081601.0 tmax=507340801.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.64
user 4.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/689845/ft1_filtered_4FGL_J2142.5-2552_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/689845/ft2_4FGL_J2142.5-2552_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/689845/ltcube_507081601_507340801_4FGL_J2142.5-2552_daily_bin1033.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/689845/ft2_4FGL_J2142.5-2552_daily_bin1033.fits
.....................!
real 15.84
user 14.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/689845/ft1_filtered_4FGL_J2142.5-2552_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/689845/ft2_4FGL_J2142.5-2552_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/689845/ltcube_507081601_507340801_4FGL_J2142.5-2552_daily_bin1033.fits outfile=/scratch/kocevski/689845/expmap_507081601_507340801_4FGL_J2142.5-2552_daily_bin1033.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/689845/ltcube_507081601_507340801_4FGL_J2142.5-2552_daily_bin1033.fits
.....................!
real 193.72
user 188.38
sys 4.73

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/689845/ft1_filtered_4FGL_J2142.5-2552_daily_bin1033.fits scfile=/scratch/kocevski/689845/ft2_4FGL_J2142.5-2552_daily_bin1033.fits outfile=/scratch/kocevski/689845/cmap_507081601_507340801_4FGL_J2142.5-2552_daily_bin1033.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=325.645 yref=-25.8777 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/689845/ft1_filtered_4FGL_J2142.5-2552_daily_bin1033.fits scfile=/scratch/kocevski/689845/ft2_4FGL_J2142.5-2552_daily_bin1033.fits outfile=/scratch/kocevski/689845/cmap_HighResolution_507081601_507340801_4FGL_J2142.5-2552_daily_bin1033.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/689845/ft1_filtered_4FGL_J2142.5-2552_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/689845/ft2_4FGL_J2142.5-2552_daily_bin1033.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/689845/Model_4FGL_J2142.5-2552_daily_bin1033.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/689845/ft1_filtered_4FGL_J2142.5-2552_daily_bin1033.fits.....................!
real 76.72
user 75.24
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.9466       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4201       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59698E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2244       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.166       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.5613       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3838       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83768       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1496       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=   9567.093     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1749 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.830       -.15983E-06** at limit **
   2  norm          .10000E-03    10.439       -.52627E-07** at limit **
   3  Prefactor     .10000E-03    3.2994       -.55214E-07** at limit **
   4  Prefactor     4.9464        4.5929       -.11129E-05    .46208E-03
   5  norm          .10000E-03    1.7687       -.67263E-08** at limit **
   6  Prefactor     5.4198        5.2611       -.13269E-06    .19536E-06
   7  Prefactor     .10000E-03    28.761        .10763E-04** at limit **
   8  Prefactor     6.2236        8.7136       -.18813E-06    .12705E-04
   9  norm          1.1966        5.7430       -.62321E-06    .18463E-03
  10  Prefactor     31.160        14.309        .98437E-06    .87182E-03
  11  Prefactor     .10000E-03    5.1166        .13720E-06** at limit **
  12  Prefactor     .10000E-03    16.278        .16939E-06** at limit **
  13  norm          7.5614        4.4604        .24202E-07    .51896E-03
  14  Prefactor     1.3348        49.397       -.23453E-05    .71914E-04
  15  norm          2.1696        .42549       -.70242E-08    .49471E-03
  16  Prefactor     .10000E-03    7.0846       -.48701E-06** at limit **
  17  Prefactor     .10000E-03    2.5540       -.13846E-07** at limit **
  18  norm          .10000E-03    7.0367       -.28124E-07** at limit **
  19  Normalizat    .83768        .16754        .69843E-06    .50414E-03
  20  Prefactor     1.1496        .10847        .43885E-06    .85484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.94637
  norm       = 0.0001
  Prefactor  = 5.41984
  Prefactor  = 0.000100002
  Prefactor  = 6.22357
  norm       = 1.19656
  Prefactor  = 31.1603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.56138
  Prefactor  = 1.33476
  norm       = 2.16958
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.83768
  Prefactor  = 1.14965
 **********
 **   18 **HESSE 
 **********

 FCN=   9567.093     FROM HESSE     STATUS=OK           291 CALLS     2040 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3055        .17352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9464        4.6009        .90415E-03   -1.5263    
   5  norm          .10000E-03    1.7698        .12704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4198        5.2588        .17260E-03   -1.5242    
   7  Prefactor     .10000E-03    28.001        .36248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2236        8.7068        .16090E-03   -1.5209    
   9  norm          1.1966        5.7312        .41670E-03   -1.5489    
  10  Prefactor     31.160        14.606        .71772E-04   -1.4591    
  11  Prefactor     .10000E-03    5.1235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.5614        4.4731        .14299E-03   -1.5158    
  14  Prefactor     1.3348        50.255        .36983E-03   -1.5477    
  15  norm          2.1696        .42661        .26502E-04   -1.5413    
  16  Prefactor     .10000E-03    7.2908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5551        .15266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.0459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .83768        .19055        .32114E-03   -.98686    
  20  Prefactor     1.1496        .12415        .18784E-03   -.87895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01314e-09
Minuit parameter uncertainties:
  1  0.000157623
  2  1.32864e-05
  3  6.7747e-06
  4  4.60124
  5  6.45258e-07
  6  5.25925
  7  0.00050528
  8  8.70861
  9  5.23804
  10  14.6082
  11  1.68166e-05
  12  0.00010935
  13  4.47333
  14  16.3945
  15  0.426613
  16  0.000128564
  17  1.75801e-06
  18  3.12275e-05
  19  0.190698
  20  0.12418
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  6.224e+00  8.709e+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

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.150e+00  1.242e-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.377e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/689845/likelihoodResults_507081601_507340801_4FGL_J2142.5-2552_daily_bin1033.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) = 9566.99137932
delta logL = 0.101798752325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9566.98820288
delta logL = 0.10497518965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.031       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6944       1.0000          .0000       10.000    
     3 'Normalizat'    .84205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1475       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=   9566.988     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      269 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.047        528.43        .31630E-02    .73568E-04
   2  Index         1.6964        5.1741        .27910        .41774E-04
   3  Normalizat    .84196        .76380E-01    .72405E-01    .11492E-03
   4  Prefactor     1.1476        .41838E-01    .36009E-01    .62722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0466
  Index      = 1.6964
  Normalizat = 0.841959
  Prefactor  = 1.14756
 **********
 **   18 **HESSE 
 **********

 FCN=   9566.988     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.047        13.073        .12652E-03   -1.5074    
   2  Index         1.6964        .98491        .14403E-01   -.72178    
   3  Normalizat    .84196        .18134        .32041E-03   -.98531    
   4  Prefactor     1.1476        .12309        .18797E-03   -.87961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96219e-11
Minuit parameter uncertainties:
  1  13.077
  2  0.996584
  3  0.181467
  4  0.12312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/689845': 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) = 9566.98819926
delta logL = 0.104978815038

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.005e+01  1.308e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.696e+00  9.966e-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.148e+00  1.231e-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.420e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/689845/cmap_HighResolution_507081601_507340801_4FGL_J2142.5-2552_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2021-09-27 00:54:36.779516', job_id='689845', GAL2='1.15', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632729276.78', return_code2='0', ts='0.69', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.05e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1033' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:54:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 689845: <4FGL_J2142.5-2552_daily_bin1033> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1033> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 00:40:38 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:41:46 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:41:46 2021
Terminated at Mon Sep 27 00:54:37 2021
Results reported at Mon Sep 27 00:54:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1033 325.645 -25.8777 507081601 507340801 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 :                                   707.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            839 sec.

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

