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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1481
RA = 325.645, Dec = -25.8777
tmin = 623203201, tmax = 623462401
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='691590', job_status='RUN', time_executed='2021-09-27 00:51:28.447465', time_epoch_executed='1632729088.45' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691590/ft1_4FGL_J2142.5-2552_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691590/ft2_4FGL_J2142.5-2552_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691590/ft1_4FGL_J2142.5-2552_daily_bin1481.fits outfile=/scratch/kocevski/691590/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1481.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.93
user 2.67
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691590/ft1_filtered_4FGL_J2142.5-2552_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/691590/ft2_4FGL_J2142.5-2552_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/691590/ltcube_623203201_623462401_4FGL_J2142.5-2552_daily_bin1481.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/691590/ft2_4FGL_J2142.5-2552_daily_bin1481.fits
.....................!
real 13.30
user 12.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691590/ft1_filtered_4FGL_J2142.5-2552_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/691590/ft2_4FGL_J2142.5-2552_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/691590/ltcube_623203201_623462401_4FGL_J2142.5-2552_daily_bin1481.fits outfile=/scratch/kocevski/691590/expmap_623203201_623462401_4FGL_J2142.5-2552_daily_bin1481.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/691590/ltcube_623203201_623462401_4FGL_J2142.5-2552_daily_bin1481.fits
.....................!
real 192.50
user 186.54
sys 4.56

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/691590/ft1_filtered_4FGL_J2142.5-2552_daily_bin1481.fits scfile=/scratch/kocevski/691590/ft2_4FGL_J2142.5-2552_daily_bin1481.fits outfile=/scratch/kocevski/691590/cmap_623203201_623462401_4FGL_J2142.5-2552_daily_bin1481.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/691590/ft1_filtered_4FGL_J2142.5-2552_daily_bin1481.fits scfile=/scratch/kocevski/691590/ft2_4FGL_J2142.5-2552_daily_bin1481.fits outfile=/scratch/kocevski/691590/cmap_HighResolution_623203201_623462401_4FGL_J2142.5-2552_daily_bin1481.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691590/ft1_filtered_4FGL_J2142.5-2552_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/691590/ft2_4FGL_J2142.5-2552_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691590/Model_4FGL_J2142.5-2552_daily_bin1481.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/691590/ft1_filtered_4FGL_J2142.5-2552_daily_bin1481.fits.....................!
real 61.38
user 58.00
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10095E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.7141       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6009       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.679       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.060       1.0000         .10000E-03   10000.    
     9 'norm      '    4.5024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12456E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.615       1.0000         .10000E-03   10000.    
    13 'norm      '    .15386E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0563       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3949       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.462       1.0000         .10000E-03   10000.    
    18 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1143       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94002       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=   6882.350     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     2439 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.050        .13979E-04** at limit **
   2  norm          .10000E-03    7.5266       -.44934E-07** at limit **
   3  Prefactor     .10001E-03    20.560       -.16069E-04** at limit **
   4  Prefactor     .10000E-03    5.3551       -.30603E-06** at limit **
   5  norm          8.7137        6.4444        .15608E-06    .52507E-04
   6  Prefactor     3.6006        4.9942        .28087E-05   -.45217E-03
   7  Prefactor     17.682        11.683        .26896E-06   -.99376E-05
   8  Prefactor     39.063        18.618       -.12730E-05    .14676E-03
   9  norm          4.5028        4.5696        .28952E-05   -.31118E-03
  10  Prefactor     .10000E-03    26.415        .16229E-05** at limit **
  11  Prefactor     .10003E-03    44.318       -.26859E-04** at limit **
  12  Prefactor     52.640        61.860        .31360E-04    .11611E-03
  13  norm          .10001E-03    2.4087       -.15619E-05** at limit **
  14  Prefactor     .10000E-03    28.343        .11444E-04** at limit **
  15  norm          1.0566        .37084       -.11446E-06    .28456E-02
  16  Prefactor     3.3965        9.1874       -.16825E-05   -.14189E-03
  17  Prefactor     27.458        21.145       -.24832E-05    .14356E-03
  18  norm          .10000E-03    18.306        .85344E-05** at limit **
  19  Normalizat    1.1140        .20647       -.36043E-05    .49359E-03
  20  Prefactor     .94023        .12074        .47421E-06    .33252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 8.71372
  Prefactor  = 3.60063
  Prefactor  = 17.6816
  Prefactor  = 39.0633
  norm       = 4.50282
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 52.6399
  norm       = 0.000100007
  Prefactor  = 0.000100002
  norm       = 1.05663
  Prefactor  = 3.39649
  Prefactor  = 27.4576
  norm       = 0.000100001
  Normalizat = 1.11403
  Prefactor  = 0.940229
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.350     FROM HESSE     STATUS=OK           283 CALLS     2722 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.5285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    20.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.7137        6.4472        .13579E-03   -1.5118    
   6  Prefactor     3.6006        4.9670        .21119E-03   -1.5328    
   7  Prefactor     17.682        11.735        .95256E-04   -1.4867    
   8  Prefactor     39.063        18.620        .64133E-04   -1.4457    
   9  norm          4.5028        4.5626        .17297E-03   -1.5284    
  10  Prefactor     .10000E-03    26.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    46.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     52.640        62.969        .55293E-04   -1.4256    
  13  norm          .10001E-03    5.1941        .24458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0566        .36912        .28509E-04   -1.5502    
  16  Prefactor     3.3965        9.1804        .21958E-03   -1.5339    
  17  Prefactor     27.458        21.193        .76447E-04   -1.4659    
  18  norm          .10000E-03    18.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1140        .24152        .30327E-03   -.89303    
  20  Prefactor     .94023        .14175        .20152E-03   -.94749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5717e-09
Minuit parameter uncertainties:
  1  0.000653648
  2  4.78193e-06
  3  0.000745319
  4  3.53857e-05
  5  6.44773
  6  4.9676
  7  11.7367
  8  18.6231
  9  4.56297
  10  2.22658e-05
  11  0.00244813
  12  63.0489
  13  0.000377768
  14  0.000463634
  15  0.369119
  16  9.18418
  17  21.1993
  18  0.000259363
  19  0.241764
  20  0.141809
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  9.402e-01  1.418e-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.114e+00  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.50
Ra Dec: 325.645 -25.878
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 9.26e-08 +/- 4.41e-08
Energy Flux (Fixed Index): 4.10e-05 +/- 1.95e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6882.34734177
delta logL = 0.00242546461868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6882.34593283
delta logL = 0.00383439569578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.165       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1732       1.0000          .0000       10.000    
     3 'Normalizat'    1.1172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93918       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=   6882.346     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.164        22.926        .63247E-04    .49510E-03
   2  Index         2.1734        .40958        .52718E-02    .16902E-03
   3  Normalizat    1.1172        .22995        .30291E-03   -.82907E-04
   4  Prefactor     .93911        .14052        .20162E-03   -.15569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.1643
  Index      = 2.17335
  Normalizat = 1.11722
  Prefactor  = 0.939109
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.346     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.164        22.369        .12649E-04   -1.4440    
   2  Index         2.1734        .39934        .21087E-03   -.60083    
   3  Normalizat    1.1172        .22995        .12116E-04   -.89201    
   4  Prefactor     .93911        .14058        .40325E-04   -.94788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79845e-10
Minuit parameter uncertainties:
  1  22.3735
  2  0.399962
  3  0.23016
  4  0.140636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691590': 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) = 6882.34593258
delta logL = 0.00383465399227

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  9.391e-01  1.406e-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.117e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.52
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 2.17 +/- 0.40
Photon Flux (Free Index): 8.96e-08 +/- 5.42e-08
Energy Flux (Free Index): 4.23e-05 +/- 2.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/691590/cmap_HighResolution_623203201_623462401_4FGL_J2142.5-2552_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.26e-08', energy_flux2='4.23e-05', photon_flux_error='4.41e-08', dlogl='3.83e-03', energy_flux='4.10e-05', photon_flux2='8.96e-08', job_status='DONE', time_completed='2021-09-27 01:01:06.630223', photon_index_error2='0.40', photon_index2='2.17', ts='10.50', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.11', time_epoch_completed='1632729666.63', return_code='0', job_id='691590', GAL2='0.94', EG2='1.12', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='5.42e-08', ts2='10.52', photon_index='2.21' WHERE bin_id='1481' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:01:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 691590: <4FGL_J2142.5-2552_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1481> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:46:13 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:50:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 00:50:34 2021
Terminated at Mon Sep 27 01:01:07 2021
Results reported at Mon Sep 27 01:01:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1481 325.645 -25.8777 623203201 623462401 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 :                                   565.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            894 sec.

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

