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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin710
RA = 325.701, Dec = 19.982
tmin = 423360001, tmax = 423619201
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='695857', job_status='RUN', time_executed='2021-09-27 01:03:00.929462', time_epoch_executed='1632729780.93' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695857

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695857/ft1_4FGL_J2142.8+1958_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695857/ft2_4FGL_J2142.8+1958_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695857/ft1_4FGL_J2142.8+1958_daily_bin710.fits outfile=/scratch/kocevski/695857/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin710.fits ra=325.701 dec=19.982 rad=12.0 tmin=423360001.0 tmax=423619201.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 5.81
user 5.37
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/695857/ft2_4FGL_J2142.8+1958_daily_bin710.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/695857/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin710.fits evtable="EVENTS" outfile="/scratch/kocevski/695857/ft1_filtered_4FGL_J2142.8+1958_daily_bin710.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695857/ft1_filtered_4FGL_J2142.8+1958_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/695857/ft2_4FGL_J2142.8+1958_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/695857/ltcube_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.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/695857/ft2_4FGL_J2142.8+1958_daily_bin710.fits
.....................!
real 13.85
user 13.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695857/ft1_filtered_4FGL_J2142.8+1958_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/695857/ft2_4FGL_J2142.8+1958_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/695857/ltcube_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.fits outfile=/scratch/kocevski/695857/expmap_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.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/695857/ltcube_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.fits
.....................!
real 192.59
user 187.54
sys 4.41

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/695857/ft1_filtered_4FGL_J2142.8+1958_daily_bin710.fits scfile=/scratch/kocevski/695857/ft2_4FGL_J2142.8+1958_daily_bin710.fits outfile=/scratch/kocevski/695857/cmap_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695857/ft1_filtered_4FGL_J2142.8+1958_daily_bin710.fits scfile=/scratch/kocevski/695857/ft2_4FGL_J2142.8+1958_daily_bin710.fits outfile=/scratch/kocevski/695857/cmap_HighResolution_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/695857/ft1_filtered_4FGL_J2142.8+1958_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/695857/ft2_4FGL_J2142.8+1958_daily_bin710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695857/Model_4FGL_J2142.8+1958_daily_bin710.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/695857/ft1_filtered_4FGL_J2142.8+1958_daily_bin710.fits.....................!
real 108.55
user 107.11
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/695857/ft1_filtered_4FGL_J2142.8+1958_daily_bin710.fits', '/scratch/kocevski/695857/ft2_4FGL_J2142.8+1958_daily_bin710.fits', expMap='/scratch/kocevski/695857/expmap_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.fits', expCube='/scratch/kocevski/695857/ltcube_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/695857/Model_4FGL_J2142.8+1958_daily_bin710.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/695857/ft1_filtered_4FGL_J2142.8+1958_daily_bin710.fits
Spacecraft file(s): /scratch/kocevski/695857/ft2_4FGL_J2142.8+1958_daily_bin710.fits
Exposure map: /scratch/kocevski/695857/expmap_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.fits
Exposure cube: /scratch/kocevski/695857/ltcube_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/695857/Model_4FGL_J2142.8+1958_daily_bin710.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) = 6640.33179934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.307       1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.095       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.0472       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.658       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56490       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12144E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10613E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.772       1.0000         .10000E-03   10000.    
    20 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99173       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0057       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=   6640.323     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3236 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.999        38.915       -.88131E-06    .18489E-04
   2  Prefactor     31.310        22.343       -.39523E-06    .13111E-04
   3  Prefactor     62.378        80.838       -.39166E-05    .38619E-05
   4  Prefactor     .10000E-03    55.233       -.11266E-04** at limit **
   5  Prefactor     .10000E-03    16.300       -.20565E-06** at limit **
   6  Prefactor     .10000E-03    2.4575       -.63179E-06** at limit **
   7  Prefactor     67.099        53.789       -.33801E-05   -.39142E-05
   8  norm          .10000E-03    2.3144       -.17959E-06** at limit **
   9  norm          6.0446        6.0794       -.40559E-06    .11767E-03
  10  Prefactor     .10000E-03    9.7397       -.12360E-06** at limit **
  11  Prefactor     .10000E-03    11.081        .17655E-05** at limit **
  12  Prefactor     .10000E-03    37.708        .21934E-05** at limit **
  13  norm          13.657        4.0096       -.64643E-06    .30510E-03
  14  Prefactor     .57355        7.6964        .62831E-06    .12420E-03
  15  Prefactor     .10000E-03    68.180       -.21520E-06** at limit **
  16  norm          .10000E-03    1.9138       -.29820E-06** at limit **
  17  Prefactor     .10000E-03    10.443       -.36093E-06** at limit **
  18  norm          .10000E-03    .73710       -.10611E-06** at limit **
  19  Prefactor     38.783        42.263       -.12898E-05    .18018E-05
  20  norm          .10000E-03    .58093       -.46217E-07** at limit **
  21  Prefactor     .10000E-03    9.8850       -.30708E-06** at limit **
  22  norm          .10000E-03    18.682        .58287E-05** at limit **
  23  Prefactor     .10000E-03    50.276       -.30512E-05** at limit **
  24  Prefactor     .10000E-03    20.489        .90285E-06** at limit **
  25  Normalizat    .99176        .25729        .18146E-05    .13958E-03
  26  Prefactor     1.0057        .10904        .52593E-06    .18199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.9987
  Prefactor  = 31.3103
  Prefactor  = 62.3778
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.0985
  norm       = 0.0001
  norm       = 6.04464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6569
  Prefactor  = 0.573552
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.7827
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.991761
  Prefactor  = 1.00572
 **********
 **   18 **HESSE 
 **********

 FCN=   6640.323     FROM HESSE     STATUS=OK           458 CALLS     3694 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.999        38.650        .61844E-04   -1.4411    
   2  Prefactor     31.310        22.350        .71610E-04   -1.4588    
   3  Prefactor     62.378        80.921        .50816E-04   -1.4127    
   4  Prefactor     .10000E-03    75.677        .47366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4930        .12473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     67.099        53.265        .48999E-04   -1.4068    
   8  norm          .10000E-03    2.3277        .12108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0446        6.0992        .16327E-03   -1.5216    
  10  Prefactor     .10000E-03    9.9513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.657        4.0129        .41980E-03   -1.4969    
  14  Prefactor     .57355        31.054        .41672E-02   -1.5557    
  15  Prefactor     .10000E-03    68.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6312        .21722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3912        .13463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.783        42.279        .64370E-04   -1.4462    
  20  norm          .10000E-03    1.0198        .11968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.9447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    47.477        .35886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    50.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99176        .28685        .39417E-03   -.93307    
  26  Prefactor     1.0057        .12545        .16873E-03   -.92539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64412e-10
Minuit parameter uncertainties:
  1  38.6735
  2  22.3558
  3  81.0646
  4  0.000455997
  5  2.72566e-05
  6  3.45371e-06
  7  53.3029
  8  1.09424e-06
  9  6.09981
  10  2.99208e-07
  11  2.01336e-06
  12  4.47479e-05
  13  4.01302
  14  8.44447
  15  2.51962e-05
  16  1.85987e-05
  17  1.09474e-05
  18  2.82857e-05
  19  42.3121
  20  4.18222e-06
  21  1.97556e-05
  22  0.000973281
  23  8.06578e-05
  24  9.69952e-05
  25  0.287301
  26  0.12549
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  4.475e-05  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.006e+00  1.255e-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:  9.918e-01  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 4.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695857/likelihoodResults_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.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) = 6640.32281913
delta logL = -0.000126124045892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6640.3226933
delta logL = -2.97082806355e-07

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 'Index     '    1.9162       1.0000          .0000       10.000    
     3 'Normalizat'    .99176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0057       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.

 FCN=   6640.323     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      240 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.530        .90712E-02** at limit **
   2  Index         1.8723        9.0621        .50000        .99368E-05
   3  Normalizat    .99176        .41971E-02    .89014E-01    .28984E-04
   4  Prefactor     1.0057        .18170E-02    .44043E-01    .31647E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.87231
  Normalizat = 0.991759
  Prefactor  = 1.00572
 **********
 **   18 **HESSE 
 **********

 FCN=   6640.323     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      271 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8723        7.9638        .50000       -.67582    
   3  Normalizat    .99176        .11424E-01    .39417E-03   -.93307    
   4  Prefactor     1.0057        .49568E-02    .16873E-03   -.92539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.49686e-08
Minuit parameter uncertainties:
  1  0.000757014
  2  109.979
  3  0.0114237
  4  0.00495682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695857': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6640.32269318
delta logL = -1.77463334694e-07

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  7.570e-04  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  1.872e+00  1.100e+02  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.006e+00  4.957e-03  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:  9.918e-01  1.142e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.701 19.982

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/695857/cmap_HighResolution_423360001_423619201_4FGL_J2142.8+1958_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-03', job_status='DONE', photon_flux_upper_limit='4.37e-08', time_completed='2021-09-27 01:16:44.178750', job_id='695857', GAL2='1.01', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632730604.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-1.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='710' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:16:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 695857: <4FGL_J2142.8+1958_daily_bin710> in cluster <slac> Done

Job <4FGL_J2142.8+1958_daily_bin710> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Sep 27 01:00:35 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 01:00:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 01:00:50 2021
Terminated at Mon Sep 27 01:16:45 2021
Results reported at Mon Sep 27 01:16:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin710 325.701 19.982 423360001 423619201 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 :                                   820.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            970 sec.

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

