/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 220 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 = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2142.8+1958_daily_bin375
RA = 325.701, Dec = 19.982
tmin = 336528001, tmax = 336787201
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='694289', job_status='RUN', time_executed='2021-09-27 01:00:37.509844', time_epoch_executed='1632729637.51' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694289

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694289/ft1_4FGL_J2142.8+1958_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694289/ft1_4FGL_J2142.8+1958_daily_bin375.fits outfile=/scratch/kocevski/694289/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin375.fits ra=325.701 dec=19.982 rad=12.0 tmin=336528001.0 tmax=336787201.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 6.69
user 5.69
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.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/694289/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/694289/ft1_filtered_4FGL_J2142.8+1958_daily_bin375.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694289/ft1_filtered_4FGL_J2142.8+1958_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/694289/ltcube_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.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/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits
.....................!
real 14.19
user 13.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694289/ft1_filtered_4FGL_J2142.8+1958_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/694289/ltcube_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.fits outfile=/scratch/kocevski/694289/expmap_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.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/694289/ltcube_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.fits
.....................!
real 192.84
user 186.33
sys 5.14

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2142.8+1958 @ 325.701 19.982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/694289/ft1_filtered_4FGL_J2142.8+1958_daily_bin375.fits scfile=/scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits outfile=/scratch/kocevski/694289/cmap_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.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.701 yref=19.982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694289/ft1_filtered_4FGL_J2142.8+1958_daily_bin375.fits scfile=/scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits outfile=/scratch/kocevski/694289/cmap_HighResolution_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.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.701 yref=19.982 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/694289/ft1_filtered_4FGL_J2142.8+1958_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/694289/Model_4FGL_J2142.8+1958_daily_bin375.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/694289/ft1_filtered_4FGL_J2142.8+1958_daily_bin375.fits.....................!
real 86.41
user 85.04
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/694289/ft1_filtered_4FGL_J2142.8+1958_daily_bin375.fits', '/scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits', expMap='/scratch/kocevski/694289/expmap_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.fits', expCube='/scratch/kocevski/694289/ltcube_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/694289/Model_4FGL_J2142.8+1958_daily_bin375.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.8+1958'

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  4.708e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/694289/ft1_filtered_4FGL_J2142.8+1958_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/694289/ft2_4FGL_J2142.8+1958_daily_bin375.fits
Exposure map: /scratch/kocevski/694289/expmap_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.fits
Exposure cube: /scratch/kocevski/694289/ltcube_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/694289/Model_4FGL_J2142.8+1958_daily_bin375.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) = 5112.60077071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.733       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7253       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.492       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5510       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1295       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7136       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    427.06       1.0000         .10000E-03   10000.    
    13 'norm      '    5.2388       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0478       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4333       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .72925E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1140       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.585       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .48057       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5112.583     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3171 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.467       -.60211E-07** at limit **
   2  Prefactor     45.798        43.715        .14222E-05   -.30581E-03
   3  Prefactor     2.8014        1783.5       -.25917E-04   -.15636E-04
   4  Prefactor     13.500        20.619        .29200E-06    .86861E-04
   5  Prefactor     .10000E-03    33.146       -.53605E-06** at limit **
   6  Prefactor     2.5570        6.7011        .64672E-05   -.14258E-03
   7  Prefactor     .10000E-03    18.002        .10268E-06** at limit **
   8  norm          4.1292        5.1293       -.86334E-06   -.21957E-04
   9  norm          .10000E-03    3.3012       -.93800E-07** at limit **
  10  Prefactor     1.7159        11.045        .12795E-05   -.10720E-04
  11  Prefactor     .10000E-03    6.7454       -.37195E-07** at limit **
  12  Prefactor     427.08        262.20        .37538E-06    .21908E-05
  13  norm          5.2403        3.9583        .13256E-06   -.24588E-04
  14  Prefactor     2.0486        8.4430       -.39178E-06    .21003E-03
  15  Prefactor     .10000E-03    80.985        .59532E-07** at limit **
  16  norm          1.4402        5.0876        .10325E-05    .14150E-04
  17  Prefactor     .10000E-03    26.188        .89138E-07** at limit **
  18  norm          .10005E-03    .84177        .25150E-06** at limit **
  19  Prefactor     .10000E-03    26.423       -.68426E-07** at limit **
  20  norm          1.1152        1.6703        .25671E-06    .13323E-03
  21  Prefactor     .10000E-03    24.634        .17933E-06** at limit **
  22  norm          .10000E-03    4.8157        .60645E-07** at limit **
  23  Prefactor     .10000E-03    137.41        .94807E-07** at limit **
  24  Prefactor     18.595        19.630        .56293E-06   -.25697E-04
  25  Normalizat    .47950        .45197       -.80721E-05   -.13107E-03
  26  Prefactor     1.2326        .16843        .93277E-06   -.70385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.7984
  Prefactor  = 2.80139
  Prefactor  = 13.4999
  Prefactor  = 0.0001
  Prefactor  = 2.55697
  Prefactor  = 0.0001
  norm       = 4.12915
  norm       = 0.0001
  Prefactor  = 1.71595
  Prefactor  = 0.0001
  Prefactor  = 427.079
  norm       = 5.2403
  Prefactor  = 2.04864
  Prefactor  = 0.0001
  norm       = 1.44021
  Prefactor  = 0.0001
  norm       = 0.000100048
  Prefactor  = 0.0001
  norm       = 1.1152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5945
  Normalizat = 0.479496
  Prefactor  = 1.23259
 **********
 **   18 **HESSE 
 **********

 FCN=   5112.583     FROM HESSE     STATUS=OK           464 CALLS     3635 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.798        43.821        .59288E-04   -1.4353    
   3  Prefactor     2.8014        1717.4        .20921E-03   -1.5373    
   4  Prefactor     13.500        20.468        .10905E-03   -1.4973    
   5  Prefactor     .10000E-03    33.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5570        6.6649        .12782E-02   -1.5388    
   7  Prefactor     .10000E-03    18.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1292        5.1200        .17079E-03   -1.5302    
   9  norm          .10000E-03    3.3208        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7159        10.903        .32106E-03   -1.5446    
  11  Prefactor     .10000E-03    6.7721        .18126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     427.08        262.23        .19783E-04   -1.1545    
  13  norm          5.2403        3.9274        .11473E-03   -1.5250    
  14  Prefactor     2.0486        8.4976        .28890E-03   -1.5422    
  15  Prefactor     .10000E-03    80.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4402        4.9168        .26278E-03   -1.5468    
  17  Prefactor     .10000E-03    26.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10005E-03    1.6771        .23544E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1152        1.6083        .10392E-03   -1.5497    
  21  Prefactor     .10000E-03    24.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.8873        .15320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    137.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.595        19.392        .92905E-04   -1.4845    
  25  Normalizat    .47950        .41168        .59067E-03   -1.1338    
  26  Prefactor     1.2326        .16507        .16114E-03   -.85334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07894e-09
Minuit parameter uncertainties:
  1  1.10481e-05
  2  43.8519
  3  143.056
  4  20.4791
  5  0.000236091
  6  6.66679
  7  2.87701e-05
  8  5.12051
  9  9.29081e-06
  10  8.65277
  11  4.44646e-06
  12  262.971
  13  3.92763
  14  8.34652
  15  3.22231e-05
  16  4.91817
  17  2.43684e-05
  18  0.000566537
  19  0.000139193
  20  1.60836
  21  7.8206e-06
  22  9.56589e-06
  23  0.000153357
  24  19.3981
  25  0.414327
  26  0.165137
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  4.271e+02  2.630e+02  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.233e+00  1.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  4.795e-01  4.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 325.701 19.982
Photon Index (Fixed Index): 1.79 +/- 0.00
Photon Flux (Fixed Index): 8.66e-08 +/- 5.33e-08
Energy Flux (Fixed Index): 1.05e-04 +/- 6.48e-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) = 5112.24273163
delta logL = 0.339891786958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5112.2409702
delta logL = 0.34165321598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    229.07       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1143       1.0000          .0000       10.000    
     3 'Normalizat'    .45110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2369       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+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=   5112.241     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      287 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     229.01        290.50        .13368E-03    .40718E-04
   2  Index         2.1144        .46075        .29445E-02    .66553E-03
   3  Normalizat    .45083        .37919        .60794E-03   -.80094E-04
   4  Prefactor     1.2370        .16152        .16078E-03   -.53170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 229.009
  Index      = 2.11438
  Normalizat = 0.45083
  Prefactor  = 1.23704
 **********
 **   18 **HESSE 
 **********

 FCN=   5112.241     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     229.01        258.71        .26737E-04   -1.2670    
   2  Index         2.1144        .40982        .58891E-03   -.61520    
   3  Normalizat    .45083        .37832        .24317E-04   -1.1475    
   4  Prefactor     1.2370        .16130        .32156E-04   -.85199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8514e-10
Minuit parameter uncertainties:
  1  260.014
  2  0.410506
  3  0.380494
  4  0.161361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694289': 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) = 5112.24096947
delta logL = 0.341653944158

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  2.290e+02  2.600e+02  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  2.114e+00  4.105e-01  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.237e+00  1.614e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  4.508e-01  3.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.19
Ra Dec: 325.701 19.982
Photon Index (Free Index): 2.11 +/- 0.41
Photon Flux (Free Index): 1.24e-07 +/- 8.01e-08
Energy Flux (Free Index): 6.60e-05 +/- 5.08e-05

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/694289/cmap_HighResolution_336528001_336787201_4FGL_J2142.8+1958_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.66e-08', energy_flux2='6.60e-05', photon_flux_error='5.33e-08', dlogl='3.42e-01', energy_flux='1.05e-04', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-27 01:11:20.071991', photon_index_error2='0.41', photon_index2='2.11', ts='5.52', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='5.08e-05', EG='0.48', time_epoch_completed='1632730280.07', return_code='0', job_id='694289', GAL2='1.24', EG2='0.45', return_code2='0', energy_flux_error='6.48e-05', photon_flux_error2='8.01e-08', ts2='6.19', photon_index='1.79' WHERE bin_id='375' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:11:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 694289: <4FGL_J2142.8+1958_daily_bin375> in cluster <slac> Done

Job <4FGL_J2142.8+1958_daily_bin375> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 00:55:19 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:56:45 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:56:45 2021
Terminated at Mon Sep 27 01:11:20 2021
Results reported at Mon Sep 27 01:11:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin375 325.701 19.982 336528001 336787201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2142.8+1958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            961 sec.

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

