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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin675
RA = 325.701, Dec = 19.982
tmin = 414288001, tmax = 414547201
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='695804', job_status='RUN', time_executed='2021-09-27 01:02:49.940716', time_epoch_executed='1632729769.94' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695804/ft1_4FGL_J2142.8+1958_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695804/ft2_4FGL_J2142.8+1958_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695804/ft1_4FGL_J2142.8+1958_daily_bin675.fits outfile=/scratch/kocevski/695804/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin675.fits ra=325.701 dec=19.982 rad=12.0 tmin=414288001.0 tmax=414547201.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 8.06
user 5.25
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695804/ft1_filtered_4FGL_J2142.8+1958_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/695804/ft2_4FGL_J2142.8+1958_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/695804/ltcube_414288001_414547201_4FGL_J2142.8+1958_daily_bin675.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/695804/ft2_4FGL_J2142.8+1958_daily_bin675.fits
.....................!
real 16.57
user 15.23
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695804/ft1_filtered_4FGL_J2142.8+1958_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/695804/ft2_4FGL_J2142.8+1958_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/695804/ltcube_414288001_414547201_4FGL_J2142.8+1958_daily_bin675.fits outfile=/scratch/kocevski/695804/expmap_414288001_414547201_4FGL_J2142.8+1958_daily_bin675.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/695804/ltcube_414288001_414547201_4FGL_J2142.8+1958_daily_bin675.fits
.....................!
real 191.82
user 186.31
sys 4.87

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/695804/ft1_filtered_4FGL_J2142.8+1958_daily_bin675.fits scfile=/scratch/kocevski/695804/ft2_4FGL_J2142.8+1958_daily_bin675.fits outfile=/scratch/kocevski/695804/cmap_414288001_414547201_4FGL_J2142.8+1958_daily_bin675.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 1.03
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695804/ft1_filtered_4FGL_J2142.8+1958_daily_bin675.fits scfile=/scratch/kocevski/695804/ft2_4FGL_J2142.8+1958_daily_bin675.fits outfile=/scratch/kocevski/695804/cmap_HighResolution_414288001_414547201_4FGL_J2142.8+1958_daily_bin675.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/695804/ft1_filtered_4FGL_J2142.8+1958_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/695804/ft2_4FGL_J2142.8+1958_daily_bin675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695804/Model_4FGL_J2142.8+1958_daily_bin675.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/695804/ft1_filtered_4FGL_J2142.8+1958_daily_bin675.fits.....................!
real 87.26
user 85.68
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.084       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    241.03       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.367       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.808       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6375       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.888       1.0000         .10000E-03   10000.    
     8 'norm      '    .46055E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.990       1.0000         .10000E-03   10000.    
    13 'norm      '    8.0636       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.396       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10699E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.806       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .44882       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.653       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0331       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87034       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=   4705.640     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3236 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.090        38.742       -.29515E-06    .68120E-05
   2  Prefactor     17.417        23.528       -.21804E-06    .29549E-04
   3  Prefactor     241.05        151.23       -.64353E-06    .47128E-04
   4  Prefactor     21.365        23.664       -.23684E-06    .19358E-04
   5  Prefactor     37.802        39.908       -.47809E-08    .34788E-04
   6  Prefactor     7.6538        9.1605        .34581E-06    .88997E-03
   7  Prefactor     22.889        24.836       -.44788E-07    .72767E-05
   8  norm          .10011E-03    47.295       -.14147E-04** at limit **
   9  norm          .10000E-03    3.1990        .24583E-07** at limit **
  10  Prefactor     .10000E-03    9.0536        .18911E-06** at limit **
  11  Prefactor     8.6672        14.878       -.31558E-07   -.76293E-05
  12  Prefactor     62.151        177.66       -.44662E-05   -.50442E-04
  13  norm          8.0635        4.2882       -.95941E-06   -.97482E-03
  14  Prefactor     12.386        20.005       -.37694E-06    .55195E-04
  15  Prefactor     .10000E-03    81.947       -.18795E-05** at limit **
  16  norm          4.4724        4.6982       -.69199E-06   -.26347E-03
  17  Prefactor     .10000E-03    19.284       -.61030E-06** at limit **
  18  norm          .10000E-03    1.4881       -.25320E-07** at limit **
  19  Prefactor     69.793        98.898       -.52931E-06   -.20407E-04
  20  norm          .10000E-03    .77278       -.76167E-07** at limit **
  21  Prefactor     .10000E-03    16.420        .24062E-06** at limit **
  22  norm          .45418        8.3486       -.35793E-05   -.57165E-03
  23  Prefactor     .10000E-03    126.54        .24359E-05** at limit **
  24  Prefactor     20.652        20.495       -.17055E-07   -.71985E-04
  25  Normalizat    1.0332        .37359        .10604E-05    .10899E-03
  26  Prefactor     .87029        .14135        .32641E-06   -.20423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.0896
  Prefactor  = 17.4174
  Prefactor  = 241.045
  Prefactor  = 21.3652
  Prefactor  = 37.8024
  Prefactor  = 7.65385
  Prefactor  = 22.8894
  norm       = 0.000100106
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.66723
  Prefactor  = 62.1514
  norm       = 8.06349
  Prefactor  = 12.3856
  Prefactor  = 0.000100001
  norm       = 4.47237
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.7925
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.454184
  Prefactor  = 0.000100002
  Prefactor  = 20.6518
  Normalizat = 1.03323
  Prefactor  = 0.870294
 **********
 **   18 **HESSE 
 **********

 FCN=   4705.640     FROM HESSE     STATUS=OK           466 CALLS     3702 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.090        38.718        .68640E-04   -1.4540    
   2  Prefactor     17.417        23.540        .95966E-04   -1.4873    
   3  Prefactor     241.05        151.14        .13040E-03   -1.2590    
   4  Prefactor     21.365        23.654        .86652E-04   -1.4783    
   5  Prefactor     37.802        39.933        .65182E-04   -1.4478    
   6  Prefactor     7.6538        8.3869        .14511E-03   -1.5155    
   7  Prefactor     22.889        24.833        .83725E-04   -1.4751    
   8  norm          .10011E-03    58.768        .35654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2182        .11977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6672        14.858        .13615E-03   -1.5119    
  12  Prefactor     62.151        178.60        .25482E-03   -1.4130    
  13  norm          8.0635        4.3459        .49495E-03   -1.5140    
  14  Prefactor     12.386        19.319        .11378E-03   -1.5004    
  15  Prefactor     .10000E-03    82.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4724        4.7292        .14373E-03   -1.5285    
  17  Prefactor     .10000E-03    19.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.7856        .15548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     69.793        99.086        .48045E-04   -1.4035    
  20  norm          .10000E-03    1.2713        .11521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .45418        15.859        .32430E-02   -1.5573    
  23  Prefactor     .10000E-03    126.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.652        20.617        .88134E-04   -1.4799    
  25  Normalizat    1.0332        .42560        .40736E-03   -.91925    
  26  Prefactor     .87029        .16109        .17524E-03   -.97187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85759e-09
Minuit parameter uncertainties:
  1  38.7462
  2  23.5529
  3  151.388
  4  23.6645
  5  39.9608
  6  8.38823
  7  24.8439
  8  0.0049986
  9  2.00615e-06
  10  3.34205e-05
  11  14.8644
  12  180.174
  13  4.34608
  14  19.3284
  15  0.000644564
  16  4.72955
  17  8.45088e-06
  18  2.42264e-06
  19  99.321
  20  2.73414e-05
  21  1.71672e-05
  22  5.36861
  23  0.00111499
  24  20.6237
  25  0.427008
  26  0.161181
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  6.215e+01  1.802e+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:  8.703e-01  1.612e-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.033e+00  4.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695804/likelihoodResults_414288001_414547201_4FGL_J2142.8+1958_daily_bin675.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): 0
logL (Free Index) = 4705.63054179
delta logL = 0.00976053060185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4705.62668551
delta logL = 0.013616805265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.677       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9585       1.0000          .0000       10.000    
     3 'Normalizat'    1.0328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86994       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=   4705.627     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      278 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.648        231.72        .58688E-04    .11844E-03
   2  Index         1.9592        1.2500        .96900E-02    .12832E-03
   3  Normalizat    1.0318        .38345        .40761E-03   -.23618E-03
   4  Prefactor     .87034        .15477        .17523E-03   -.66106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6481
  Index      = 1.95921
  Normalizat = 1.03176
  Prefactor  = 0.870339
 **********
 **   18 **HESSE 
 **********

 FCN=   4705.627     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.648        167.00        .11738E-04   -1.4341    
   2  Index         1.9592        1.0157        .38760E-03   -.65374    
   3  Normalizat    1.0318        .38341        .16304E-04   -.91974    
   4  Prefactor     .87034        .15472        .35047E-04   -.97185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45902e-10
Minuit parameter uncertainties:
  1  168.715
  2  1.02717
  3  0.384446
  4  0.154798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695804': 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) = 4705.62668153
delta logL = 0.0136207879732

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  4.665e+01  1.687e+02  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  1.959e+00  1.027e+00  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:  8.703e-01  1.548e-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.032e+00  3.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/695804/cmap_HighResolution_414288001_414547201_4FGL_J2142.8+1958_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-27 01:14:20.542274', job_id='695804', GAL2='0.87', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632730460.54', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.36e-02', ts2='0.17', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='675' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:14:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 695804: <4FGL_J2142.8+1958_daily_bin675> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin675 325.701 19.982 414288001 414547201 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            831 sec.

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

