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


Performing analysis on: 4FGL_J1838.8+4802_daily_bin1143
RA = 279.714, Dec = 48.0412
tmin = 535593601, tmax = 535852801
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='184418', job_status='RUN', time_executed='2021-09-21 04:07:05.370596', time_epoch_executed='1632222425.37' WHERE source_name='4FGL J1838.8+4802' and cadence='daily' and bin_id='1143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184418/ft1_4FGL_J1838.8+4802_daily_bin1143.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184418/ft1_4FGL_J1838.8+4802_daily_bin1143.fits outfile=/scratch/kocevski/184418/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1143.fits ra=279.714 dec=48.0412 rad=12.0 tmin=535593601.0 tmax=535852801.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 5.06
user 4.78
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.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/184418/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1143.fits evtable="EVENTS" outfile="/scratch/kocevski/184418/ft1_filtered_4FGL_J1838.8+4802_daily_bin1143.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/184418/ft1_filtered_4FGL_J1838.8+4802_daily_bin1143.fits" evtable="EVENTS" scfile=/scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits sctable="SC_DATA" outfile=/scratch/kocevski/184418/ltcube_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.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/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits
.....................!
real 13.85
user 13.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184418/ft1_filtered_4FGL_J1838.8+4802_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits sctable="SC_DATA" expcube=/scratch/kocevski/184418/ltcube_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.fits outfile=/scratch/kocevski/184418/expmap_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.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/184418/ltcube_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.fits
.....................!
real 190.98
user 185.70
sys 4.93

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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 212 point sources and 3 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 J1838.8+4802 @ 279.714 48.0412

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/184418/ft1_filtered_4FGL_J1838.8+4802_daily_bin1143.fits scfile=/scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits outfile=/scratch/kocevski/184418/cmap_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.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=279.714 yref=48.0412 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/184418/ft1_filtered_4FGL_J1838.8+4802_daily_bin1143.fits scfile=/scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits outfile=/scratch/kocevski/184418/cmap_HighResolution_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.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=279.714 yref=48.0412 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/184418/ft1_filtered_4FGL_J1838.8+4802_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/184418/Model_4FGL_J1838.8+4802_daily_bin1143.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 Cocoon
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/184418/ft1_filtered_4FGL_J1838.8+4802_daily_bin1143.fits.....................!
real 90.03
user 88.69
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/184418/ft1_filtered_4FGL_J1838.8+4802_daily_bin1143.fits', '/scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits', expMap='/scratch/kocevski/184418/expmap_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.fits', expCube='/scratch/kocevski/184418/ltcube_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/184418/Model_4FGL_J1838.8+4802_daily_bin1143.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1838.8+4802'

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  8.223e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
374        alpha:  1.764e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  4.590e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/184418/ft1_filtered_4FGL_J1838.8+4802_daily_bin1143.fits
Spacecraft file(s): /scratch/kocevski/184418/ft2_4FGL_J1838.8+4802_daily_bin1143.fits
Exposure map: /scratch/kocevski/184418/expmap_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.fits
Exposure cube: /scratch/kocevski/184418/ltcube_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/184418/Model_4FGL_J1838.8+4802_daily_bin1143.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) = 9150.27785543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0003       1.0000         .10000E-03   10000.    
     2 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.825       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11846E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26723E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.523       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.724       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0453       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2966       1.0000         .10000E-03   10000.    
    16 'norm      '    .61889E-01   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .68453       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1405       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9150.160     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1784 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0003        2.6706       -.20755E-06   -.34469E-04
   2  norm          .10000E-03    4.6051       -.26568E-06** at limit **
   3  Prefactor     27.854        38.646        .37388E-04   -.38987E-04
   4  Prefactor     11.858        5.9298       -.18168E-06    .22301E-03
   5  Prefactor     .10000E-03    19.050       -.13080E-05** at limit **
   6  Prefactor     .10000E-03    217.82       -.11418E-03** at limit **
   7  Prefactor     .10000E-03    10.569        .26866E-05** at limit **
   8  Prefactor     .10000E-03    7.3202        .48352E-06** at limit **
   9  norm          10.540        12.557       -.46170E-05   -.16695E-03
  10  Prefactor     .10000E-03    5.1507       -.72732E-08** at limit **
  11  norm          10.724        7.2419       -.49415E-07   -.34047E-04
  12  Prefactor     .10000E-03    10.653        .81512E-06** at limit **
  13  norm          .10000E-03    8.1113       -.84253E-06** at limit **
  14  norm          6.0506        12.824       -.19954E-05   -.20555E-05
  15  Prefactor     1.2966        1.5376        .22837E-07   -.19608E-03
  16  norm          .59742E-01    1.0617       -.93095E-06    .19996E-03
  17  Normalizat    .68490        .22560       -.13577E-05    .17744E-03
  18  Prefactor     1.1403        .10345        .45511E-06    .29365E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00026
  norm       = 0.0001
  Prefactor  = 27.8543
  Prefactor  = 11.8577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 10.54
  Prefactor  = 0.0001
  norm       = 10.7241
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.05059
  Prefactor  = 1.29661
  norm       = 0.059742
  Normalizat = 0.684898
  Prefactor  = 1.14034
 **********
 **   18 **HESSE 
 **********

 FCN=   9150.160     FROM HESSE     STATUS=OK           246 CALLS     2030 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0003        2.6571        .17591E-03   -1.5425    
   2  norm          .10000E-03    4.6899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.854        39.191        .75948E-04   -1.4652    
   4  Prefactor     11.858        5.9388        .11632E-03   -1.5019    
   5  Prefactor     .10000E-03    19.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    230.30        .42876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    58.993        .55328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.540        11.860        .12351E-03   -1.5059    
  10  Prefactor     .10000E-03    5.1641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.724        7.2375        .12235E-03   -1.5053    
  12  Prefactor     .10000E-03    10.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.1969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0506        12.807        .16330E-03   -1.5216    
  15  Prefactor     1.2966        1.5184        .12432E-03   -1.5480    
  16  norm          .59742E-01    4.9996        .19149E-02   -1.5659    
  17  Normalizat    .68490        .24761        .44099E-03   -1.0449    
  18  Prefactor     1.1403        .11536        .16845E-03   -.88188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7123e-10
Minuit parameter uncertainties:
  1  2.65726
  2  7.10399e-05
  3  39.2272
  4  5.93906
  5  3.90535e-05
  6  0.000674097
  7  0.00100637
  8  8.3428e-06
  9  11.8624
  10  1.11552e-06
  11  7.23813
  12  1.57496e-05
  13  4.7693e-05
  14  12.813
  15  1.51844
  16  1.09222
  17  0.248019
  18  0.115385
Done.

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

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  6.051e+00  1.281e+01  1.000e-04  1.000e+04 ( 1.000e-13)
374        alpha:  1.764e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  4.590e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.140e+00  1.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  6.849e-01  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 279.714 48.041
Photon Flux Upper Limit: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/184418/likelihoodResults_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.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) = 9149.77512024
delta logL = 0.38441639526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9149.76909057
delta logL = 0.390446062906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4489       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5356       1.0000          .0000       5.0000    
     3 'Normalizat'    .66072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7340E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9149.769     FROM MIGRAD    STATUS=FAILED        85 CALLS      257 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4501        11.024        .17214E-03   -.47419E-04
   2  alpha         2.5355        1.0097        .15672E-01    .35286E-03
   3  Normalizat    .66070        .23679        .44850E-03    .19219E-03
   4  Prefactor     1.1430        .11373        .16822E-03    .59212E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9149.769     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      337 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4501        11.024        .15690E-03   -1.5241    
   2  alpha         2.5355        1.0097        .15842E-02    .14206E-01
   3  Normalizat    .66070        .23679        .32555E-03   -1.0547    
   4  Prefactor     1.1430        .11373        .14835E-03   -.88103    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9149.769     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      365 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4501        9.3121        .68856E-05   -.28399E-04
   2  alpha         2.5355        .85917        .31344E-02    .22560E-05
   3  Normalizat    .66070        .23622        .17940E-04   -.15209E-05
   4  Prefactor     1.1430        .11355        .33644E-04   -.27033E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.4501
  alpha      = 2.53552
  Normalizat = 0.660703
  Prefactor  = 1.14303
 **********
 **   18 **HESSE 
 **********

 FCN=   9149.769     FROM HESSE     STATUS=OK            23 CALLS      388 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4501        9.0466        .13771E-05   -1.5241    
   2  alpha         2.5355        .83558        .12538E-03    .14208E-01
   3  Normalizat    .66070        .23621        .35880E-05   -1.0547    
   4  Prefactor     1.1430        .11356        .67289E-05   -.88103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66671e-12
Minuit parameter uncertainties:
  1  9.04882
  2  0.851977
  3  0.236573
  4  0.113581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184418': 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) = 9149.76909055
delta logL = 0.390446081645

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  5.450e+00  9.049e+00  1.000e-04  1.000e+04 ( 1.000e-13)
374        alpha:  2.536e+00  8.520e-01  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  4.590e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.143e+00  1.136e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  6.607e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 279.714 48.041
Photon Index (Free Index): 2.54 +/- 0.85
Photon Flux (Free Index): 3.70e-08 +/- 4.59e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/184418/cmap_HighResolution_535593601_535852801_4FGL_J1838.8+4802_daily_bin1143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-05', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='3.90e-01', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-09-21 04:21:04.970681', photon_index_error2='0.85', photon_index2='2.54', ts='0.27', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='6.38e-08', energy_flux_error2='1.29e-05', EG='0.68', time_epoch_completed='1632223264.97', return_code='0', job_id='184418', GAL2='1.14', EG2='0.66', return_code2='0', photon_flux_error2='4.59e-08', ts2='1.06', photon_index='1.76' WHERE bin_id='1143' AND source_name='4FGL J1838.8+4802' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 04:21:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 184418: <4FGL_J1838.8+4802_daily_bin1143> in cluster <slac> Done

Job <4FGL_J1838.8+4802_daily_bin1143> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 21 04:05:36 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 04:06:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 04:06:52 2021
Terminated at Tue Sep 21 04:21:05 2021
Results reported at Tue Sep 21 04:21:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1838.8+4802_daily_bin1143 279.714 48.0412 535593601 535852801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1838.8+4802 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   826.39 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             372.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            929 sec.

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

