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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin736
RA = 325.701, Dec = 19.982
tmin = 430099201, tmax = 430358401
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='695897', job_status='RUN', time_executed='2021-09-27 01:04:02.878344', time_epoch_executed='1632729842.88' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695897

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695897/ft1_4FGL_J2142.8+1958_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695897/ft2_4FGL_J2142.8+1958_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695897/ft1_4FGL_J2142.8+1958_daily_bin736.fits outfile=/scratch/kocevski/695897/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin736.fits ra=325.701 dec=19.982 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.29
user 10.70
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/695897/ft2_4FGL_J2142.8+1958_daily_bin736.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/695897/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin736.fits evtable="EVENTS" outfile="/scratch/kocevski/695897/ft1_filtered_4FGL_J2142.8+1958_daily_bin736.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.55
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695897/ft1_filtered_4FGL_J2142.8+1958_daily_bin736.fits" evtable="EVENTS" scfile=/scratch/kocevski/695897/ft2_4FGL_J2142.8+1958_daily_bin736.fits sctable="SC_DATA" outfile=/scratch/kocevski/695897/ltcube_430099201_430358401_4FGL_J2142.8+1958_daily_bin736.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/695897/ft2_4FGL_J2142.8+1958_daily_bin736.fits
.....................!
real 13.62
user 12.63
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695897/ft1_filtered_4FGL_J2142.8+1958_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/695897/ft2_4FGL_J2142.8+1958_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/695897/ltcube_430099201_430358401_4FGL_J2142.8+1958_daily_bin736.fits outfile=/scratch/kocevski/695897/expmap_430099201_430358401_4FGL_J2142.8+1958_daily_bin736.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/695897/ltcube_430099201_430358401_4FGL_J2142.8+1958_daily_bin736.fits
.....................!
real 191.76
user 185.95
sys 5.15

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/695897/ft1_filtered_4FGL_J2142.8+1958_daily_bin736.fits scfile=/scratch/kocevski/695897/ft2_4FGL_J2142.8+1958_daily_bin736.fits outfile=/scratch/kocevski/695897/cmap_430099201_430358401_4FGL_J2142.8+1958_daily_bin736.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695897/ft1_filtered_4FGL_J2142.8+1958_daily_bin736.fits scfile=/scratch/kocevski/695897/ft2_4FGL_J2142.8+1958_daily_bin736.fits outfile=/scratch/kocevski/695897/cmap_HighResolution_430099201_430358401_4FGL_J2142.8+1958_daily_bin736.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.91
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4502       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2539       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .91556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0989       1.0000         .10000E-03   10000.    
     8 'norm      '    7.1991       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1046       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .13452E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.110       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0435       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.646       1.0000         .10000E-03   10000.    
    22 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.905       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .49028       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1586       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=   5156.992     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3120 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4228        41.244       -.13373E-06   -.15112E-04
   2  Prefactor     .10000E-03    37.110        .12397E-05** at limit **
   3  Prefactor     .10000E-03    45.068       -.52497E-06** at limit **
   4  Prefactor     7.2441        22.246        .35788E-06    .62184E-04
   5  Prefactor     .10000E-03    23.952       -.39799E-06** at limit **
   6  Prefactor     .85111        11.904        .34487E-05   -.73724E-03
   7  Prefactor     7.0844        51.608       -.31391E-06   -.12748E-04
   8  norm          7.2093        9.1073        .34769E-06   -.14057E-03
   9  norm          .10000E-03    4.7033       -.43786E-07** at limit **
  10  Prefactor     .10000E-03    8.3128       -.14992E-06** at limit **
  11  Prefactor     .10000E-03    7.5925       -.16204E-06** at limit **
  12  Prefactor     .10001E-03    69.137        .18752E-05** at limit **
  13  norm          5.1041        3.5788        .88302E-06    .14405E-02
  14  Prefactor     .10000E-03    5.9904       -.97129E-07** at limit **
  15  Prefactor     .10000E-03    242.98       -.12027E-05** at limit **
  16  norm          .10000E-03    3.4060       -.11281E-05** at limit **
  17  Prefactor     .10000E-03    23.855       -.28012E-06** at limit **
  18  norm          2.4983        1.7121        .50763E-06    .17088E-02
  19  Prefactor     53.099        67.078       -.94627E-06   -.83762E-04
  20  norm          2.0434        1.8863        .19717E-07    .18456E-03
  21  Prefactor     10.642        24.202        .99559E-07    .28616E-04
  22  norm          .10000E-03    7.3015        .15397E-06** at limit **
  23  Prefactor     .10001E-03    54.594       -.17892E-05** at limit **
  24  Prefactor     27.899        26.908        .78211E-07    .43629E-04
  25  Normalizat    .49025        .39784       -.42520E-06    .65510E-04
  26  Prefactor     1.1586        .14443        .13115E-06    .33390E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.42279
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 7.24406
  Prefactor  = 0.0001
  Prefactor  = 0.851113
  Prefactor  = 7.08437
  norm       = 7.20926
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 5.10413
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.49832
  Prefactor  = 53.0993
  norm       = 2.04339
  Prefactor  = 10.6416
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 27.8991
  Normalizat = 0.490251
  Prefactor  = 1.15864
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.992     FROM HESSE     STATUS=OK           456 CALLS     3576 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4228        40.875        .13790E-03   -1.5127    
   2  Prefactor     .10000E-03    37.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2441        21.981        .14893E-03   -1.5170    
   5  Prefactor     .10000E-03    24.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .85111        24.192        .27098E-02   -1.5523    
   7  Prefactor     7.0844        51.537        .15056E-03   -1.5176    
   8  norm          7.2093        9.4866        .14950E-03   -1.5171    
   9  norm          .10000E-03    4.8250        .30403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.6739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    69.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1041        3.6312        .55081E-03   -1.5256    
  14  Prefactor     .10000E-03    6.0132        .17167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    243.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.2401        .24345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4983        1.7286        .37914E-03   -1.5392    
  19  Prefactor     53.099        67.225        .55036E-04   -1.4249    
  20  norm          2.0434        1.8538        .87975E-04   -1.5422    
  21  Prefactor     10.642        24.093        .12280E-03   -1.5055    
  22  norm          .10000E-03    7.3306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    54.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.899        26.614        .75839E-04   -1.4651    
  25  Normalizat    .49025        .37827        .57366E-03   -1.1287    
  26  Prefactor     1.1586        .14573        .15526E-03   -.87614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67343e-09
Minuit parameter uncertainties:
  1  37.1504
  2  0.000669082
  3  0.000403349
  4  22.0059
  5  0.000200974
  6  9.07886
  7  38.2619
  8  9.48861
  9  9.90312e-06
  10  1.83881e-05
  11  2.92689e-05
  12  0.00158148
  13  3.63137
  14  2.04807e-05
  15  0.00149796
  16  8.0803e-05
  17  9.76755e-05
  18  1.72862
  19  67.3209
  20  1.85381
  21  24.1153
  22  3.98603e-05
  23  0.00133027
  24  26.6258
  25  0.380272
  26  0.145779
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.581e-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:  1.159e+00  1.458e-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.903e-01  3.803e-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: 7.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695897/likelihoodResults_430099201_430358401_4FGL_J2142.8+1958_daily_bin736.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) = 5156.99212617
delta logL = -6.8380488301e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5156.99205801
delta logL = -2.16837179323e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9471       1.0000          .0000       10.000    
     3 'Normalizat'    .49025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1586       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=   5156.992     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      239 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.370        .90712E-02** at limit **
   2  Index         1.9003        8.6263        .50000        .60813E-05
   3  Normalizat    .49025        .43858E-02    .12938        .30294E-04
   4  Prefactor     1.1586        .17777E-02    .35691E-01   -.16716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90034
  Normalizat = 0.490253
  Prefactor  = 1.15864
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.992     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    216.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9003        8.0922        .50000       -.66866    
   3  Normalizat    .49025        .15114E-01    .57366E-03   -1.1287    
   4  Prefactor     1.1586        .61481E-02    .15526E-03   -.87614    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1577e-07
Minuit parameter uncertainties:
  1  0.000521956
  2  216.624
  3  0.0151145
  4  0.00614813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695897': 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) = 5156.99205793
delta logL = -1.39654730447e-07

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  5.220e-04  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  1.900e+00  2.166e+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.159e+00  6.148e-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:  4.903e-01  1.511e-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/695897/cmap_HighResolution_430099201_430358401_4FGL_J2142.8+1958_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-27 01:15:54.864747', job_id='695897', GAL2='1.16', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1632730554.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-1.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='736' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 695897: <4FGL_J2142.8+1958_daily_bin736> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin736 325.701 19.982 430099201 430358401 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 :                                   707.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            918 sec.

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

