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


Performing analysis on: 4FGL_J1842.3+6810_daily_bin1084
RA = 280.585, Dec = 68.1686
tmin = 520300801, tmax = 520560001
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='291170', job_status='RUN', time_executed='2021-09-21 09:55:38.056651', time_epoch_executed='1632243338.06' WHERE source_name='4FGL J1842.3+6810' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291170/ft1_4FGL_J1842.3+6810_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291170/ft1_4FGL_J1842.3+6810_daily_bin1084.fits outfile=/scratch/kocevski/291170/ft1_filteredMKT_4FGL_J1842.3+6810_daily_bin1084.fits ra=280.585 dec=68.1686 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.09
user 5.80
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.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/291170/ft1_filteredMKT_4FGL_J1842.3+6810_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/291170/ft1_filtered_4FGL_J1842.3+6810_daily_bin1084.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291170/ft1_filtered_4FGL_J1842.3+6810_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/291170/ltcube_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.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/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits
.....................!
real 12.15
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291170/ft1_filtered_4FGL_J1842.3+6810_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/291170/ltcube_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.fits outfile=/scratch/kocevski/291170/expmap_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.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/291170/ltcube_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.fits
.....................!
real 191.98
user 186.84
sys 4.50

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 FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 187 point sources and 2 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 J1842.3+6810 @ 280.585 68.1686

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/291170/ft1_filtered_4FGL_J1842.3+6810_daily_bin1084.fits scfile=/scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits outfile=/scratch/kocevski/291170/cmap_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.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=280.585 yref=68.1686 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291170/ft1_filtered_4FGL_J1842.3+6810_daily_bin1084.fits scfile=/scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits outfile=/scratch/kocevski/291170/cmap_HighResolution_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.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=280.585 yref=68.1686 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/291170/ft1_filtered_4FGL_J1842.3+6810_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/291170/Model_4FGL_J1842.3+6810_daily_bin1084.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 EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/scratch/kocevski/291170/ft1_filtered_4FGL_J1842.3+6810_daily_bin1084.fits.....................!
real 59.03
user 57.58
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/291170/ft1_filtered_4FGL_J1842.3+6810_daily_bin1084.fits', '/scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits', expMap='/scratch/kocevski/291170/expmap_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.fits', expCube='/scratch/kocevski/291170/ltcube_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/291170/Model_4FGL_J1842.3+6810_daily_bin1084.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1842.3+6810'

4FGL J1842.3+6810
   Spectrum: PowerLaw
344    Prefactor:  4.191e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
345        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  9.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/291170/ft1_filtered_4FGL_J1842.3+6810_daily_bin1084.fits
Spacecraft file(s): /scratch/kocevski/291170/ft2_4FGL_J1842.3+6810_daily_bin1084.fits
Exposure map: /scratch/kocevski/291170/expmap_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.fits
Exposure cube: /scratch/kocevski/291170/ltcube_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/291170/Model_4FGL_J1842.3+6810_daily_bin1084.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) = 4192.2893779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    354.51       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .73537       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5091       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11509E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.476       1.0000         .10000E-03   10000.    
    11 'norm      '    .11415E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    240.49       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8591       1.0000         .10000E-03   10000.    
    18 'Prefactor '    76.059       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    125.08       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14803E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.6806       1.0000         .10000E-03   10000.    
    28 'norm      '    .16601E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    85.564       1.0000         .10000E-03   10000.    
    32 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    24.405       1.0000         .10000E-03   10000.    
    34 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.3732       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .87651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4192.266     FROM MIGRAD    STATUS=CONVERGED   1035 CALLS     5380 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     354.41        334.57       -.52148E-04   -.17341E-04
   2  Prefactor     .10000E-03    40.995        .10658E-04** at limit **
   3  norm          .74123        1.7728        .22679E-05    .16067E-02
   4  Prefactor     3.4347        41.260       -.29523E-04   -.11290E-03
   5  Prefactor     .10000E-03    3.9922        .14029E-05** at limit **
   6  Prefactor     .10000E-03    26.797       -.51626E-05** at limit **
   7  Prefactor     .10000E-03    6.1492        .20152E-05** at limit **
   8  Prefactor     .10000E-03    116.60        .65773E-05** at limit **
   9  Prefactor     .10000E-03    42.508       -.67090E-05** at limit **
  10  norm          10.473        6.2045       -.40691E-06   -.13362E-03
  11  norm          .10002E-03    .57345       -.34723E-06** at limit **
  12  Prefactor     .10000E-03    5.7847        .41125E-07** at limit **
  13  norm          .10000E-03    6.3166        .70056E-07** at limit **
  14  Prefactor     .10000E-03    16.697       -.97011E-06** at limit **
  15  Prefactor     240.54        333.07        .33037E-04    .12938E-05
  16  Prefactor     .10000E-03    12.469        .38805E-05** at limit **
  17  norm          5.8596        19.081        .23889E-05   -.38498E-04
  18  Prefactor     76.057        43.518        .19142E-05    .53207E-04
  19  Prefactor     .10000E-03    21.824        .37958E-05** at limit **
  20  Prefactor     125.09        180.34        .46996E-05   -.60198E-07
  21  Prefactor     .10000E-03    853.59       -.36115E-03** at limit **
  22  norm          .10000E-03    1.4608       -.25438E-07** at limit **
  23  norm          .10000E-03    3.4442        .23100E-07** at limit **
  24  norm          .10000E-03    7.3072        .21835E-06** at limit **
  25  Prefactor     .10000E-03    17.255        .26224E-05** at limit **
  26  Prefactor     .10000E-03    6.0582       -.19022E-05** at limit **
  27  norm          3.6804        2.7433        .20525E-06    .28130E-04
  28  norm          .10004E-03    393.39        .26990E-03** at limit **
  29  norm          .10000E-03    1.9594       -.22539E-07** at limit **
  30  norm          .10000E-03    15.932       -.42111E-05** at limit **
  31  Prefactor     85.579        47.740       -.28647E-05   -.14050E-04
  32  norm          .10000E-03    1.8790       -.72108E-08** at limit **
  33  Prefactor     24.406        20.573        .13500E-05   -.19548E-05
  34  norm          .10000E-03    11.790       -.31367E-05** at limit **
  35  Normalizat    1.3731        .32467        .54507E-05   -.16829E-03
  36  Prefactor     .87642        .12760       -.18932E-05   -.98847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 354.413
  Prefactor  = 0.0001
  norm       = 0.741235
  Prefactor  = 3.43466
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4735
  norm       = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 240.542
  Prefactor  = 0.000100001
  norm       = 5.85964
  Prefactor  = 76.057
  Prefactor  = 0.0001
  Prefactor  = 125.088
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.6804
  norm       = 0.000100038
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 85.5795
  norm       = 0.0001
  Prefactor  = 24.4065
  norm       = 0.0001
  Normalizat = 1.37306
  Prefactor  = 0.876416
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.266     FROM HESSE     STATUS=OK           795 CALLS     6175 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     354.41        335.02        .10816E-03   -1.1920    
   2  Prefactor     .10000E-03    41.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .74123        1.5552        .11045E-02   -1.5536    
   4  Prefactor     3.4347        38.378        .21582E-03   -1.5337    
   5  Prefactor     .10000E-03    8.6514        .24762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.1582        .15682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    117.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.473        6.2054        .11914E-03   -1.5061    
  11  norm          .10002E-03    8.4564        .94127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7869        .15210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.3698        .15876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     240.54        332.95        .13055E-03   -1.2594    
  16  Prefactor     .10000E-03    12.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8596        19.068        .16591E-03   -1.5224    
  18  Prefactor     76.057        43.559        .46042E-04   -1.3962    
  19  Prefactor     .10000E-03    21.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     125.09        180.55        .35992E-04   -1.3466    
  21  Prefactor     .10000E-03    855.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.4618        .76422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.4451        .11736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.3094        .17095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.1635        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.6804        2.7397        .86948E-04   -1.5324    
  28  norm          .10004E-03    394.50        .20389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.9651        .88493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    15.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     85.579        47.690        .43430E-04   -1.3855    
  32  norm          .10000E-03    1.8875        .86659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     24.406        20.589        .81085E-04   -1.4720    
  34  norm          .10000E-03    11.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.3731        .35206        .36486E-03   -.81411    
  36  Prefactor     .87642        .14130        .18821E-03   -.96970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53714e-09
Minuit parameter uncertainties:
  1  336.88
  2  8.53204e-05
  3  1.55526
  4  22.9804
  5  0.000353063
  6  0.000173763
  7  9.18225e-06
  8  0.000453568
  9  9.05764e-06
  10  6.20578
  11  0.000818131
  12  4.55716e-06
  13  2.553e-05
  14  1.85558e-05
  15  335.631
  16  0.000209876
  17  19.0876
  18  43.5775
  19  9.94972e-05
  20  181.357
  21  0.00367048
  22  3.44882e-06
  23  7.97904e-07
  24  2.49918e-06
  25  1.33816e-06
  26  1.4481e-05
  27  2.73975
  28  0.0078231
  29  4.27297e-06
  30  2.19598e-05
  31  47.7117
  32  1.80221e-06
  33  20.5948
  34  2.05267e-05
  35  0.352683
  36  0.141357
Done.

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

Extracting fit parameters...

4FGL J1842.3+6810
   Spectrum: PowerLaw
344    Prefactor:  1.000e-04  9.950e-05  1.000e-04  1.000e+04 ( 1.000e-13)
345        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  9.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  8.764e-01  1.414e-01  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.373e+00  3.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.585 68.169
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291170/likelihoodResults_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.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) = 4192.26623674
delta logL = -0.000217166524635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4192.26602138
delta logL = -1.7998399926e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8601       1.0000          .0000       10.000    
     3 'Normalizat'    1.3731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87642       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+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=   4192.266     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11009E-03    8.5510        .18142E-01** at limit **
   2  Index         2.7173        5.9607        .50000        .29706E-04
   3  Normalizat    1.3731        .64459E-02    .36486E-03    .11407E-03
   4  Prefactor     .87641        .27458E-02    .18821E-03    .19883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110092
  Index      = 2.71726
  Normalizat = 1.37307
  Prefactor  = 0.876415
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.266     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 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     .11009E-03    83.517        .25332E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7173        6.0384        .50000       -.47411    
   3  Normalizat    1.3731        .20056E-01    .14594E-04   -.81411    
   4  Prefactor     .87641        .85434E-02    .37643E-04   -.96970    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19389e-08
Minuit parameter uncertainties:
  1  0.0581446
  2  254.159
  3  0.0200558
  4  0.0085434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291170': 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) = 4192.26602066
delta logL = -1.08090534923e-06

Extracting fit parameters...

4FGL J1842.3+6810
   Spectrum: PowerLaw
344    Prefactor:  1.101e-04  5.814e-02  1.000e-04  1.000e+04 ( 1.000e-13)
345        Index:  2.717e+00  2.542e+02  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  9.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  8.764e-01  8.543e-03  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.373e+00  2.006e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.585 68.169

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/291170/cmap_HighResolution_520300801_520560001_4FGL_J1842.3+6810_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-21 10:10:54.824334', job_id='291170', GAL2='0.88', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632244254.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1084' AND source_name='4FGL J1842.3+6810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 10:10:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 291170: <4FGL_J1842.3+6810_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1842.3+6810_daily_bin1084> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 21 09:55:19 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 09:55:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 09:55:21 2021
Terminated at Tue Sep 21 10:10:55 2021
Results reported at Tue Sep 21 10:10:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1842.3+6810_daily_bin1084 280.585 68.1686 520300801 520560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1842.3+6810 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   901.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

