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


Performing analysis on: 4FGL_J1838.8+4802_daily_bin1292
RA = 279.714, Dec = 48.0412
tmin = 574214401, tmax = 574473601
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='185697', job_status='RUN', time_executed='2021-09-21 04:11:18.462897', time_epoch_executed='1632222678.46' WHERE source_name='4FGL J1838.8+4802' and cadence='daily' and bin_id='1292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/185697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/185697/ft1_4FGL_J1838.8+4802_daily_bin1292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/185697/ft2_4FGL_J1838.8+4802_daily_bin1292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/185697/ft1_4FGL_J1838.8+4802_daily_bin1292.fits outfile=/scratch/kocevski/185697/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1292.fits ra=279.714 dec=48.0412 rad=12.0 tmin=574214401.0 tmax=574473601.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 3.68
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/185697/ft2_4FGL_J1838.8+4802_daily_bin1292.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/185697/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1292.fits evtable="EVENTS" outfile="/scratch/kocevski/185697/ft1_filtered_4FGL_J1838.8+4802_daily_bin1292.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.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/185697/ft1_filtered_4FGL_J1838.8+4802_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/185697/ft2_4FGL_J1838.8+4802_daily_bin1292.fits sctable="SC_DATA" expcube=/scratch/kocevski/185697/ltcube_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.fits outfile=/scratch/kocevski/185697/expmap_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.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/185697/ltcube_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.fits
.....................!
real 191.21
user 185.80
sys 4.90

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/185697/ft1_filtered_4FGL_J1838.8+4802_daily_bin1292.fits scfile=/scratch/kocevski/185697/ft2_4FGL_J1838.8+4802_daily_bin1292.fits outfile=/scratch/kocevski/185697/cmap_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/185697/ft1_filtered_4FGL_J1838.8+4802_daily_bin1292.fits scfile=/scratch/kocevski/185697/ft2_4FGL_J1838.8+4802_daily_bin1292.fits outfile=/scratch/kocevski/185697/cmap_HighResolution_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/185697/ft1_filtered_4FGL_J1838.8+4802_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/185697/ft2_4FGL_J1838.8+4802_daily_bin1292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/185697/Model_4FGL_J1838.8+4802_daily_bin1292.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/185697/ft1_filtered_4FGL_J1838.8+4802_daily_bin1292.fits....................!
real 95.21
user 92.37
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/185697/ft1_filtered_4FGL_J1838.8+4802_daily_bin1292.fits', '/scratch/kocevski/185697/ft2_4FGL_J1838.8+4802_daily_bin1292.fits', expMap='/scratch/kocevski/185697/expmap_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.fits', expCube='/scratch/kocevski/185697/ltcube_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/185697/Model_4FGL_J1838.8+4802_daily_bin1292.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/185697/ft1_filtered_4FGL_J1838.8+4802_daily_bin1292.fits
Spacecraft file(s): /scratch/kocevski/185697/ft2_4FGL_J1838.8+4802_daily_bin1292.fits
Exposure map: /scratch/kocevski/185697/expmap_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.fits
Exposure cube: /scratch/kocevski/185697/ltcube_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/185697/Model_4FGL_J1838.8+4802_daily_bin1292.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) = 9477.30807424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2957       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    27.080       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.668       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.175       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.773       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34926E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0077       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.5397       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .76303       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=   9477.270     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1491 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2969        4.1553       -.21092E-05   -.86509E-03
   2  norm          .10000E-03    4.0227        .65753E-06** at limit **
   3  Prefactor     .10000E-03    21.853       -.22240E-04** at limit **
   4  Prefactor     .10000E-03    2.5926       -.32232E-06** at limit **
   5  Prefactor     .10000E-03    42.629       -.40926E-04** at limit **
   6  Prefactor     .10000E-03    24.068        .10703E-04** at limit **
   7  Prefactor     .10000E-03    8.3953        .48598E-06** at limit **
   8  Prefactor     .10000E-03    30.748        .44113E-04** at limit **
   9  norm          27.077        10.880       -.59081E-07   -.22652E-05
  10  Prefactor     28.666        19.475       -.67987E-06   -.11763E-03
  11  norm          .10000E-03    2.8586       -.23697E-06** at limit **
  12  Prefactor     16.174        18.167       -.37244E-06    .50795E-05
  13  norm          .10000E-03    2.6435        .55261E-06** at limit **
  14  norm          16.775        10.503        .11661E-06    .13235E-03
  15  Prefactor     .10006E-03    .88392       -.85041E-06** at limit **
  16  norm          3.0076        2.1099       -.43450E-07   -.18461E-03
  17  Normalizat    1.5399        .20289        .70772E-06    .13588E-03
  18  Prefactor     .76298        .89395E-01   -.12000E-06    .26069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.29688
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.0771
  Prefactor  = 28.6663
  norm       = 0.0001
  Prefactor  = 16.1744
  norm       = 0.0001
  norm       = 16.7751
  Prefactor  = 0.000100057
  norm       = 3.00763
  Normalizat = 1.53993
  Prefactor  = 0.762977
 **********
 **   18 **HESSE 
 **********

 FCN=   9477.270     FROM HESSE     STATUS=OK           240 CALLS     1731 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2969        4.1625        .26096E-03   -1.5405    
   2  norm          .10000E-03    4.0578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6126        .15300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          27.077        10.915        .76984E-04   -1.4667    
  10  Prefactor     28.666        19.612        .74826E-04   -1.4637    
  11  norm          .10000E-03    2.8682        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.174        18.171        .49793E-03   -1.4903    
  13  norm          .10000E-03    2.6488        .15457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.775        10.485        .97793E-04   -1.4889    
  15  Prefactor     .10006E-03    5.9358        .17529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0076        2.1071        .11510E-03   -1.5361    
  17  Normalizat    1.5399        .23897        .31330E-03   -.76662    
  18  Prefactor     .76298        .10554        .19296E-03   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01023e-08
Minuit parameter uncertainties:
  1  4.16303
  2  2.00708e-05
  3  8.21328e-06
  4  7.92298e-06
  5  2.69376e-05
  6  7.51836e-06
  7  4.65468e-06
  8  0.000107317
  9  10.9156
  10  19.6167
  11  4.20985e-07
  12  18.1769
  13  3.75947e-07
  14  10.4861
  15  0.00116776
  16  2.10714
  17  0.23915
  18  0.10557
Done.

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

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  1.678e+01  1.049e+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:  7.630e-01  1.056e-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:  1.540e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.74
Ra Dec: 279.714 48.041
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 2.72e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 3.39e-05 +/- 2.12e-05

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) = 9477.2216107
delta logL = 0.0481376444695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9477.22120327
delta logL = 0.0485450806664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.572       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9166       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76433       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.

 FCN=   9477.221     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      265 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.585        263.86        .25374E-02   -.97583E-05
   2  alpha         1.9174        3.1380        .27886        .49312E-04
   3  Normalizat    1.5341        .15750        .70926E-01    .13365E-04
   4  Prefactor     .76419        .47670E-01    .43251E-01    .18579E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.5853
  alpha      = 1.91736
  Normalizat = 1.53415
  Prefactor  = 0.764188
 **********
 **   18 **HESSE 
 **********

 FCN=   9477.221     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.585        11.041        .10150E-03   -1.4918    
   2  alpha         1.9174        .50935        .14491E-01   -.23522    
   3  Normalizat    1.5341        .23053        .31379E-03   -.76823    
   4  Prefactor     .76419        .10446        .19282E-03   -1.0106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79622e-09
Minuit parameter uncertainties:
  1  11.0426
  2  0.513147
  3  0.230686
  4  0.104485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/185697': 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) = 9477.22119677
delta logL = 0.0485515817072

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  1.559e+01  1.104e+01  1.000e-04  1.000e+04 ( 1.000e-13)
374        alpha:  1.917e+00  5.131e-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:  7.642e-01  1.045e-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:  1.534e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.85
Ra Dec: 279.714 48.041
Photon Index (Free Index): 1.92 +/- 0.51
Photon Flux (Free Index): 3.22e-08 +/- 2.56e-08
Energy Flux (Free Index): 2.71e-05 +/- 2.56e-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/185697/cmap_HighResolution_574214401_574473601_4FGL_J1838.8+4802_daily_bin1292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.72e-08', energy_flux2='2.71e-05', photon_flux_error='1.70e-08', dlogl='4.86e-02', energy_flux='3.39e-05', photon_flux2='3.22e-08', job_status='DONE', time_completed='2021-09-21 04:23:17.108656', photon_index_error2='0.51', photon_index2='1.92', ts='7.74', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='1.54', time_epoch_completed='1632223397.11', return_code='0', job_id='185697', GAL2='0.76', EG2='1.53', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='2.56e-08', ts2='7.85', photon_index='1.76' WHERE bin_id='1292' AND source_name='4FGL J1838.8+4802' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 04:23:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 185697: <4FGL_J1838.8+4802_daily_bin1292> in cluster <slac> Done

Job <4FGL_J1838.8+4802_daily_bin1292> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 21 04:10:27 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 04:11:01 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:11:01 2021
Terminated at Tue Sep 21 04:23:17 2021
Results reported at Tue Sep 21 04:23:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1838.8+4802_daily_bin1292 279.714 48.0412 574214401 574473601 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 :                                   712.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             342.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            770 sec.

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

