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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin655
RA = 325.701, Dec = 19.982
tmin = 409104001, tmax = 409363201
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='695775', job_status='RUN', time_executed='2021-09-27 01:02:42.445870', time_epoch_executed='1632729762.45' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695775

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695775/ft1_4FGL_J2142.8+1958_daily_bin655.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695775/ft2_4FGL_J2142.8+1958_daily_bin655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695775/ft1_4FGL_J2142.8+1958_daily_bin655.fits outfile=/scratch/kocevski/695775/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin655.fits ra=325.701 dec=19.982 rad=12.0 tmin=409104001.0 tmax=409363201.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.67
user 5.23
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695775/ft1_filtered_4FGL_J2142.8+1958_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/695775/ft2_4FGL_J2142.8+1958_daily_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/695775/ltcube_409104001_409363201_4FGL_J2142.8+1958_daily_bin655.fits outfile=/scratch/kocevski/695775/expmap_409104001_409363201_4FGL_J2142.8+1958_daily_bin655.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/695775/ltcube_409104001_409363201_4FGL_J2142.8+1958_daily_bin655.fits
.....................!
real 190.98
user 185.92
sys 4.56

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/695775/ft1_filtered_4FGL_J2142.8+1958_daily_bin655.fits scfile=/scratch/kocevski/695775/ft2_4FGL_J2142.8+1958_daily_bin655.fits outfile=/scratch/kocevski/695775/cmap_409104001_409363201_4FGL_J2142.8+1958_daily_bin655.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695775/ft1_filtered_4FGL_J2142.8+1958_daily_bin655.fits scfile=/scratch/kocevski/695775/ft2_4FGL_J2142.8+1958_daily_bin655.fits outfile=/scratch/kocevski/695775/cmap_HighResolution_409104001_409363201_4FGL_J2142.8+1958_daily_bin655.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/695775/ft1_filtered_4FGL_J2142.8+1958_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/695775/ft2_4FGL_J2142.8+1958_daily_bin655.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695775/Model_4FGL_J2142.8+1958_daily_bin655.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/695775/ft1_filtered_4FGL_J2142.8+1958_daily_bin655.fits.....................!
real 88.46
user 86.35
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    100.60       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.0073       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    397.45       1.0000         .10000E-03   10000.    
    13 'norm      '    14.740       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.026       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.997       1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .41229E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2566       1.0000         .10000E-03   10000.    
    22 'norm      '    10.827       1.0000         .10000E-03   10000.    
    23 'Prefactor '    207.04       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6472       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .57004       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95131       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=   5031.533     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3078 TOTAL
                     EDM=   .26E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.296       -.51202E-06** at limit **
   2  Prefactor     .10000E-03    5.1762       -.35495E-07** at limit **
   3  Prefactor     100.57        100.38        .70018E-06    .14939E-05
   4  Prefactor     .10000E-03    7.0370        .29088E-07** at limit **
   5  Prefactor     .10000E-03    64.469        .83234E-06** at limit **
   6  Prefactor     3.0609        8.2270        .18515E-05    .17874E-05
   7  Prefactor     .10000E-03    11.137        .17115E-07** at limit **
   8  norm          8.0082        8.1601       -.31738E-06    .11936E-04
   9  norm          .10000E-03    1.2573       -.94505E-08** at limit **
  10  Prefactor     .10000E-03    3.3940        .24894E-07** at limit **
  11  Prefactor     .10000E-03    5.0569        .63331E-07** at limit **
  12  Prefactor     397.06        270.91        .54350E-05   -.14958E-05
  13  norm          14.739        4.8739       -.11766E-06    .27853E-04
  14  Prefactor     .10000E-03    8.3991        .30576E-07** at limit **
  15  Prefactor     .10000E-03    86.233       -.71289E-06** at limit **
  16  norm          11.024        4.5030        .37962E-07    .15959E-04
  17  Prefactor     26.934        38.676        .10668E-05    .10836E-05
  18  norm          .10000E-03    .59524       -.20353E-07** at limit **
  19  Prefactor     .10000E-03    26.459       -.90652E-07** at limit **
  20  norm          .38753E-01    .72638       -.28053E-07    .79811E-04
  21  Prefactor     4.2332        34.384       -.16969E-05   -.76577E-05
  22  norm          10.823        9.9986        .64902E-07    .13818E-04
  23  Prefactor     206.70        195.80        .70151E-05   -.10079E-06
  24  Prefactor     4.6067        25.683        .18557E-06    .31397E-05
  25  Normalizat    .57083        .33522       -.14396E-05    .60722E-05
  26  Prefactor     .95117        .12659        .89607E-07    .42138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06093
  Prefactor  = 0.0001
  norm       = 8.0082
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 397.061
  norm       = 14.7392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0239
  Prefactor  = 26.9343
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0387531
  Prefactor  = 4.2332
  norm       = 10.8235
  Prefactor  = 206.696
  Prefactor  = 4.60666
  Normalizat = 0.570827
  Prefactor  = 0.951169
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.533     FROM HESSE     STATUS=OK           456 CALLS     3534 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1786        .15762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     100.57        100.42        .40083E-04   -1.3699    
   4  Prefactor     .10000E-03    7.0654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    65.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0609        8.2535        .11582E-02   -1.5358    
   7  Prefactor     .10000E-03    11.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0082        8.1759        .14169E-03   -1.5142    
   9  norm          .10000E-03    1.2589        .77673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4178        .12759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1066        .15574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     397.06        270.81        .10238E-03   -1.1696    
  13  norm          14.739        4.8665        .82719E-04   -1.4940    
  14  Prefactor     .10000E-03    8.4678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    86.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.024        4.4949        .91817E-04   -1.5044    
  17  Prefactor     26.934        38.628        .77102E-04   -1.4670    
  18  norm          .10000E-03    .60244        .53424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .38753E-01    4.9410        .11476E-02   -1.5669    
  21  Prefactor     4.2332        33.799        .19529E-03   -1.5296    
  22  norm          10.823        9.9533        .12176E-03   -1.5050    
  23  Prefactor     206.70        196.03        .14046E-03   -1.2823    
  24  Prefactor     4.6067        25.516        .18669E-03   -1.5279    
  25  Normalizat    .57083        .36796        .48417E-03   -1.0924    
  26  Prefactor     .95117        .14261        .15702E-03   -.94375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06694e-11
Minuit parameter uncertainties:
  1  6.74457e-05
  2  3.59151e-08
  3  100.59
  4  2.67965e-06
  5  1.08035e-05
  6  8.2566
  7  1.30399e-06
  8  8.17703
  9  1.20691e-07
  10  1.88483e-06
  11  2.51452e-06
  12  271.682
  13  4.86667
  14  1.8676e-06
  15  9.58265e-06
  16  4.49507
  17  38.6637
  18  2.02367e-07
  19  5.32221e-06
  20  0.874111
  21  23.9412
  22  9.95478
  23  196.655
  24  21.6977
  25  0.369548
  26  0.142668
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  3.971e+02  2.717e+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:  9.512e-01  1.427e-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:  5.708e-01  3.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 325.701 19.982
Photon Index (Fixed Index): 1.79 +/- 0.00
Photon Flux (Fixed Index): 8.05e-08 +/- 5.51e-08
Energy Flux (Fixed Index): 9.79e-05 +/- 6.70e-05

TS (Fixed Index): 3.63
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 1.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695775/likelihoodResults_409104001_409363201_4FGL_J2142.8+1958_daily_bin655.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) = 5031.05964076
delta logL = 0.473697383101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5031.05342947
delta logL = 0.479908676008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    189.39       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1775       1.0000          .0000       10.000    
     3 'Normalizat'    .54423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95429       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=   5031.053     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      295 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     189.36        261.03        .29345E-04    .14644E-04
   2  Index         2.1776        .47249        .28352E-02    .41658E-04
   3  Normalizat    .54414        .32806        .49460E-03    .11355E-03
   4  Prefactor     .95436        .13621        .15661E-03    .44982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 189.364
  Index      = 2.17757
  Normalizat = 0.544136
  Prefactor  = 0.954361
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.053     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     189.36        223.88        .58690E-05   -1.2947    
   2  Index         2.1776        .40465        .11341E-03   -.59981    
   3  Normalizat    .54414        .32755        .19784E-04   -1.1041    
   4  Prefactor     .95436        .13608        .31322E-04   -.94267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07721e-10
Minuit parameter uncertainties:
  1  224.897
  2  0.405299
  3  0.328716
  4  0.136132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695775': 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) = 5031.05342925
delta logL = 0.479908899842

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.544e-01  1.361e-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:  5.441e-01  3.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 325.701 19.982
Photon Index (Free Index): 2.18 +/- 0.41
Photon Flux (Free Index): 1.26e-07 +/- 8.14e-08
Energy Flux (Free Index): 5.90e-05 +/- 4.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/695775/cmap_HighResolution_409104001_409363201_4FGL_J2142.8+1958_daily_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='8.05e-08', energy_flux2='5.90e-05', photon_flux_error='5.51e-08', dlogl='4.80e-01', energy_flux='9.79e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-27 01:14:21.496413', photon_index_error2='0.41', photon_index2='2.18', ts='3.63', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='4.47e-05', EG='0.57', time_epoch_completed='1632730461.5', return_code='0', job_id='695775', GAL2='0.95', EG2='0.54', return_code2='0', energy_flux_error='6.70e-05', photon_flux_error2='8.14e-08', ts2='4.65', photon_index='1.79' WHERE bin_id='655' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:14:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 695775: <4FGL_J2142.8+1958_daily_bin655> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin655 325.701 19.982 409104001 409363201 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 :                                   691.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            835 sec.

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

