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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin635
RA = 325.701, Dec = 19.982
tmin = 403920001, tmax = 404179201
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='695746', job_status='RUN', time_executed='2021-09-27 01:03:45.596421', time_epoch_executed='1632729825.6' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695746

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695746/ft1_4FGL_J2142.8+1958_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695746/ft2_4FGL_J2142.8+1958_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695746/ft1_4FGL_J2142.8+1958_daily_bin635.fits outfile=/scratch/kocevski/695746/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin635.fits ra=325.701 dec=19.982 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.12
user 9.78
sys 0.28

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695746/ft1_filtered_4FGL_J2142.8+1958_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/695746/ft2_4FGL_J2142.8+1958_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/695746/ltcube_403920001_404179201_4FGL_J2142.8+1958_daily_bin635.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/695746/ft2_4FGL_J2142.8+1958_daily_bin635.fits
.....................!
real 11.19
user 10.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695746/ft1_filtered_4FGL_J2142.8+1958_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/695746/ft2_4FGL_J2142.8+1958_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/695746/ltcube_403920001_404179201_4FGL_J2142.8+1958_daily_bin635.fits outfile=/scratch/kocevski/695746/expmap_403920001_404179201_4FGL_J2142.8+1958_daily_bin635.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/695746/ltcube_403920001_404179201_4FGL_J2142.8+1958_daily_bin635.fits
.....................!
real 192.20
user 186.73
sys 4.91

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/695746/ft1_filtered_4FGL_J2142.8+1958_daily_bin635.fits scfile=/scratch/kocevski/695746/ft2_4FGL_J2142.8+1958_daily_bin635.fits outfile=/scratch/kocevski/695746/cmap_403920001_404179201_4FGL_J2142.8+1958_daily_bin635.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.71
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695746/ft1_filtered_4FGL_J2142.8+1958_daily_bin635.fits scfile=/scratch/kocevski/695746/ft2_4FGL_J2142.8+1958_daily_bin635.fits outfile=/scratch/kocevski/695746/cmap_HighResolution_403920001_404179201_4FGL_J2142.8+1958_daily_bin635.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.239       1.0000         .10000E-03   10000.    
     3 'Prefactor '    60.465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.254       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47217E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22124E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.9660       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9570       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4569       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32555       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6528       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2045       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1812       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77623       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=   5413.256     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3116 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.313       -.83856E-08** at limit **
   2  Prefactor     49.236        26.938       -.24656E-06   -.75645E-04
   3  Prefactor     60.485        74.783        .64455E-05    .23237E-03
   4  Prefactor     21.251        20.057       -.50727E-08   -.13342E-04
   5  Prefactor     .10000E-03    14.571       -.90476E-06** at limit **
   6  Prefactor     .10000E-03    2.7963        .13323E-07** at limit **
   7  Prefactor     .10000E-03    24.629       -.17967E-06** at limit **
   8  norm          .10000E-03    3.8609        .10449E-06** at limit **
   9  norm          5.9653        5.2834        .19422E-08   -.15169E-03
  10  Prefactor     5.9509        7.6473        .30615E-05   -.11839E-02
  11  Prefactor     .10000E-03    4.0778       -.35374E-06** at limit **
  12  Prefactor     .10003E-03    79.548       -.93044E-05** at limit **
  13  norm          1.4569        2.7411        .35270E-06   -.20184E-03
  14  Prefactor     .31911        6.2573        .85828E-06   -.29284E-03
  15  Prefactor     .10001E-03    61.326        .59629E-05** at limit **
  16  norm          5.6521        3.3687       -.47988E-07   -.12691E-03
  17  Prefactor     .10000E-03    14.729        .12250E-05** at limit **
  18  norm          .10000E-03    .43277        .62285E-07** at limit **
  19  Prefactor     .10001E-03    64.022        .56278E-05** at limit **
  20  norm          .10000E-03    .41650        .35720E-07** at limit **
  21  Prefactor     .10000E-03    9.3169        .24077E-07** at limit **
  22  norm          .10000E-03    2.2997        .85220E-08** at limit **
  23  Prefactor     .10000E-03    47.319       -.33200E-05** at limit **
  24  Prefactor     9.2037        11.146        .20265E-06   -.23607E-04
  25  Normalizat    1.1811        .26264       -.12562E-05   -.55296E-04
  26  Prefactor     .77628        .10614       -.42752E-06   -.91877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.2356
  Prefactor  = 60.4847
  Prefactor  = 21.2514
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.96532
  Prefactor  = 5.95091
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  norm       = 1.45693
  Prefactor  = 0.319113
  Prefactor  = 0.000100012
  norm       = 5.65214
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 9.20366
  Normalizat = 1.18114
  Prefactor  = 0.77628
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.256     FROM HESSE     STATUS=OK           454 CALLS     3570 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.236        27.005        .57148E-04   -1.4303    
   3  Prefactor     60.485        76.738        .51599E-04   -1.4151    
   4  Prefactor     21.251        20.043        .86880E-04   -1.4786    
   5  Prefactor     .10000E-03    14.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.704        .23073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.2339        .27591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9653        5.2835        .15329E-03   -1.5219    
  10  Prefactor     5.9509        8.6810        .82261E-03   -1.5220    
  11  Prefactor     .10000E-03    4.1109        .14522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    83.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4569        2.7263        .15684E-03   -1.5467    
  14  Prefactor     .31911        27.079        .35357E-02   -1.5595    
  15  Prefactor     .10001E-03    62.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6521        3.3704        .10038E-03   -1.5232    
  17  Prefactor     .10000E-03    14.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .43919        .47251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    65.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .53254        .92093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.3591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.3071        .10895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    47.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.2037        11.171        .13210E-03   -1.5101    
  25  Normalizat    1.1811        .30980        .33019E-03   -.87188    
  26  Prefactor     .77628        .12642        .16576E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64451e-09
Minuit parameter uncertainties:
  1  2.79576e-05
  2  27.0118
  3  76.8641
  4  20.0498
  5  0.000123449
  6  0.000221362
  7  2.74677e-05
  8  9.77186e-06
  9  5.28389
  10  8.68285
  11  2.44151e-05
  12  0.00307971
  13  2.72657
  14  5.88107
  15  0.00172173
  16  3.37047
  17  0.000171146
  18  1.65571e-06
  19  0.0016557
  20  1.9113e-06
  21  6.54696e-06
  22  1.325e-06
  23  0.000830621
  24  11.1737
  25  0.310278
  26  0.126469
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  3.080e-03  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:  7.763e-01  1.265e-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:  1.181e+00  3.103e-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: 6.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695746/likelihoodResults_403920001_404179201_4FGL_J2142.8+1958_daily_bin635.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) = 5413.25640064
delta logL = -5.72804192416e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5413.25640063
delta logL = -5.72741373617e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96347E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7948       1.0000          .0000       10.000    
     3 'Normalizat'    1.1811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77628       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=   5413.256     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      210 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.131        .90714E-02** at limit **
   2  Index         1.7629        5.2569        .50000        .25954E-05
   3  Normalizat    1.1811        .39632E-02    .74609E-01    .39815E-05
   4  Prefactor     .77628        .16565E-02    .43408E-01    .12592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.76292
  Normalizat = 1.18114
  Prefactor  = 0.776281
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.256     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    232.98        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7629        5.7826        .50000       -.70419    
   3  Normalizat    1.1811        .10882E-01    .33019E-03   -.87188    
   4  Prefactor     .77628        .45540E-02    .16576E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17823e-08
Minuit parameter uncertainties:
  1  0.00133739
  2  148.037
  3  0.0108824
  4  0.004554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695746': 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) = 5413.25634334
delta logL = 2.29520082939e-08

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.337e-03  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  1.763e+00  1.480e+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:  7.763e-01  4.554e-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:  1.181e+00  1.088e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/695746/cmap_HighResolution_403920001_404179201_4FGL_J2142.8+1958_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-27 01:16:09.014560', job_id='695746', GAL2='0.78', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632730569.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='635' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:16:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 695746: <4FGL_J2142.8+1958_daily_bin635> in cluster <slac> Done

Job <4FGL_J2142.8+1958_daily_bin635> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Sep 27 01:00:25 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 01:00:28 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:28 2021
Terminated at Mon Sep 27 01:16:10 2021
Results reported at Mon Sep 27 01:16:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin635 325.701 19.982 403920001 404179201 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            945 sec.

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

