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


Performing analysis on: 4FGL_J1800.6+7828_daily_bin1202
RA = 270.173, Dec = 78.4674
tmin = 550886401, tmax = 551145601
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='456672', job_status='RUN', time_executed='2021-09-19 08:03:55.082888', time_epoch_executed='1632063835.08' WHERE source_name='4FGL J1800.6+7828' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456672/ft1_4FGL_J1800.6+7828_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456672/ft1_4FGL_J1800.6+7828_daily_bin1202.fits outfile=/scratch/kocevski/456672/ft1_filteredMKT_4FGL_J1800.6+7828_daily_bin1202.fits ra=270.173 dec=78.4674 rad=12.0 tmin=550886401.0 tmax=551145601.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.78
user 3.57
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.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/456672/ft1_filteredMKT_4FGL_J1800.6+7828_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/456672/ft1_filtered_4FGL_J1800.6+7828_daily_bin1202.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456672/ft1_filtered_4FGL_J1800.6+7828_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/456672/ltcube_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.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/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits
.....................!
real 12.75
user 12.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456672/ft1_filtered_4FGL_J1800.6+7828_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/456672/ltcube_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.fits outfile=/scratch/kocevski/456672/expmap_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.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/456672/ltcube_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.fits
.....................!
real 190.89
user 185.72
sys 4.75

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
Added 200 point sources and 0 extended sources

Setting source of interest to:
4FGL J1800.6+7828 @ 270.173 78.4674

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/456672/ft1_filtered_4FGL_J1800.6+7828_daily_bin1202.fits scfile=/scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits outfile=/scratch/kocevski/456672/cmap_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.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=270.173 yref=78.4674 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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456672/ft1_filtered_4FGL_J1800.6+7828_daily_bin1202.fits scfile=/scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits outfile=/scratch/kocevski/456672/cmap_HighResolution_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.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=270.173 yref=78.4674 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/456672/ft1_filtered_4FGL_J1800.6+7828_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/456672/Model_4FGL_J1800.6+7828_daily_bin1202.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 GAL_V02
Working on...
/scratch/kocevski/456672/ft1_filtered_4FGL_J1800.6+7828_daily_bin1202.fits......................!
real 51.95
user 50.68
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456672/ft1_filtered_4FGL_J1800.6+7828_daily_bin1202.fits', '/scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits', expMap='/scratch/kocevski/456672/expmap_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.fits', expCube='/scratch/kocevski/456672/ltcube_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456672/Model_4FGL_J1800.6+7828_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1800.6+7828'

4FGL J1800.6+7828
   Spectrum: LogParabola
411         norm:  1.608e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
412        alpha:  2.159e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
413         beta:  3.593e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
414           Eb:  6.563e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/456672/ft1_filtered_4FGL_J1800.6+7828_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/456672/ft2_4FGL_J1800.6+7828_daily_bin1202.fits
Exposure map: /scratch/kocevski/456672/expmap_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.fits
Exposure cube: /scratch/kocevski/456672/ltcube_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456672/Model_4FGL_J1800.6+7828_daily_bin1202.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) = 3506.09245014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4930       1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.304       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.057       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.0216       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.2635       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3800       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    482.17       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11967E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    93.429       1.0000         .10000E-03   10000.    
    18 'Prefactor '    132.86       1.0000         .10000E-03   10000.    
    19 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1093       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65957       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2246       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3506.058     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3092 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4979        64.722        .83886E-05    .44476E-04
   2  Prefactor     65.296        71.072        .21064E-06    .89470E-06
   3  Prefactor     24.036        95.378        .11480E-05    .16293E-05
   4  norm          .10000E-03    12.186       -.38678E-06** at limit **
   5  Prefactor     .10000E-03    197.31        .22005E-05** at limit **
   6  Prefactor     .10000E-03    69.291        .10627E-05** at limit **
   7  norm          6.0215        2.3858        .73888E-08    .18003E-04
   8  Prefactor     .10000E-03    2.2240        .48414E-08** at limit **
   9  Prefactor     .10000E-03    20.814       -.19275E-06** at limit **
  10  Prefactor     .10000E-03    16.639       -.41235E-06** at limit **
  11  Prefactor     .10000E-03    167.00       -.14592E-05** at limit **
  12  norm          7.2628        5.2254        .13656E-07    .25915E-04
  13  norm          2.3800        1.4557        .52712E-08    .17693E-04
  14  norm          .10000E-03    3.0620       -.20414E-07** at limit **
  15  Prefactor     481.63        464.42        .12339E-04    .53480E-05
  16  Prefactor     .10056E-03    10.084        .11666E-05** at limit **
  17  Prefactor     93.379        50.536        .18235E-05    .46506E-04
  18  Prefactor     132.86        146.20       -.61210E-07    .69413E-06
  19  norm          .10000E-03    4.8380       -.20667E-06** at limit **
  20  Prefactor     .10000E-03    11.951        .30060E-06** at limit **
  21  norm          .10000E-03    38.276        .56229E-07** at limit **
  22  norm          .10000E-03    4.1995       -.10296E-07** at limit **
  23  norm          2.1102        4.9223       -.54282E-07   -.16575E-04
  24  Prefactor     .10000E-03    17.240        .56768E-06** at limit **
  25  Normalizat    .65973        .30149        .48611E-06    .22631E-04
  26  Prefactor     1.2245        .14068       -.26283E-06    .29929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49793
  Prefactor  = 65.2955
  Prefactor  = 24.0358
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.0215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.26277
  norm       = 2.38001
  norm       = 0.0001
  Prefactor  = 481.625
  Prefactor  = 0.000100558
  Prefactor  = 93.379
  Prefactor  = 132.859
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.1102
  Prefactor  = 0.0001
  Normalizat = 0.659732
  Prefactor  = 1.22448
 **********
 **   18 **HESSE 
 **********

 FCN=   3506.058     FROM HESSE     STATUS=OK           452 CALLS     3544 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4979        65.109        .17537E-02   -1.5463    
   2  Prefactor     65.296        71.097        .24831E-03   -1.4090    
   3  Prefactor     24.036        95.577        .81669E-04   -1.4727    
   4  norm          .10000E-03    12.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    197.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    69.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.0215        2.3870        .55106E-04   -1.5217    
   8  Prefactor     .10000E-03    2.2365        .86194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    167.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2628        5.2197        .11121E-03   -1.5169    
  13  norm          2.3800        1.4539        .53021E-04   -1.5399    
  14  norm          .10000E-03    3.0685        .10118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     481.63        463.63        .93360E-04   -1.1283    
  16  Prefactor     .10056E-03    79.624        .32314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     93.379        49.922        .20789E-03   -1.3772    
  18  Prefactor     132.86        146.19        .34936E-04   -1.3398    
  19  norm          .10000E-03    4.8508        .12723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    38.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.2291        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1102        4.8987        .19317E-03   -1.5417    
  24  Prefactor     .10000E-03    17.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .65973        .31377        .44003E-03   -1.0550    
  26  Prefactor     1.2245        .14748        .16308E-03   -.85581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86427e-09
Minuit parameter uncertainties:
  1  19.7736
  2  71.1897
  3  96.1293
  4  1.2747e-07
  5  2.68421e-05
  6  1.01366e-05
  7  2.38703
  8  6.1559e-07
  9  2.57482e-06
  10  2.47044e-07
  11  5.90353e-05
  12  5.22001
  13  1.45387
  14  4.77135e-06
  15  467.337
  16  0.0133494
  17  49.9441
  18  146.587
  19  2.47784e-05
  20  1.79419e-05
  21  3.65201e-07
  22  9.1802e-07
  23  4.89961
  24  5.32483e-06
  25  0.314629
  26  0.147528
Done.

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

Extracting fit parameters...

4FGL J1800.6+7828
   Spectrum: LogParabola
411         norm:  2.380e+00  1.454e+00  1.000e-04  1.000e+04 ( 1.000e-11)
412        alpha:  2.159e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
413         beta:  3.593e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
414           Eb:  6.563e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.224e+00  1.475e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  6.597e-01  3.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.59
Ra Dec: 270.173 78.467
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 6.84e-08
Energy Flux (Fixed Index): 5.01e-05 +/- 3.06e-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) = 3505.95774933
delta logL = 0.100397161841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3505.94677823
delta logL = 0.111368267525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1400       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5250       1.0000          .0000       5.0000    
     3 'Normalizat'    .61023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2363       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3505.947     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      258 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1403        20.745        .70439E-02    .10442E-03
   2  alpha         2.5253        3.4682        .29539        .30492E-04
   3  Normalizat    .61008        .20372        .10286        .20918E-04
   4  Prefactor     1.2363        .62914E-01    .33823E-01   -.88957E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14027
  alpha      = 2.52525
  Normalizat = 0.610084
  Prefactor  = 1.23632
 **********
 **   18 **HESSE 
 **********

 FCN=   3505.947     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1403        1.5772        .44614E-04   -1.5415    
   2  alpha         2.5253        .82747        .11055E-01    .10102E-01
   3  Normalizat    .61008        .31573        .45604E-03   -1.0756    
   4  Prefactor     1.2363        .14759        .16236E-03   -.85221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7395e-12
Minuit parameter uncertainties:
  1  1.57722
  2  0.843374
  3  0.316667
  4  0.147639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456672': 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) = 3505.94677776
delta logL = 0.111368736487

Extracting fit parameters...

4FGL J1800.6+7828
   Spectrum: LogParabola
411         norm:  2.140e+00  1.577e+00  1.000e-04  1.000e+04 ( 1.000e-11)
412        alpha:  2.525e+00  8.434e-01  0.000e+00  5.000e+00 ( 1.000e+00)
413         beta:  3.593e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
414           Eb:  6.563e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.236e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  6.101e-01  3.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.94
Ra Dec: 270.173 78.467
Photon Index (Free Index): 2.53 +/- 0.84
Photon Flux (Free Index): 1.52e-07 +/- 1.14e-07
Energy Flux (Free Index): 4.25e-05 +/- 2.60e-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/456672/cmap_HighResolution_550886401_551145601_4FGL_J1800.6+7828_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='4.25e-05', photon_flux_error='6.84e-08', dlogl='1.11e-01', energy_flux='5.01e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-19 08:13:35.043485', photon_index_error2='0.84', photon_index2='2.53', ts='7.59', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='2.60e-05', EG='0.66', time_epoch_completed='1632064415.04', return_code='0', job_id='456672', GAL2='1.24', EG2='0.61', return_code2='0', energy_flux_error='3.06e-05', photon_flux_error2='1.14e-07', ts2='7.94', photon_index='2.16' WHERE bin_id='1202' AND source_name='4FGL J1800.6+7828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 08:13:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 456672: <4FGL_J1800.6+7828_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1800.6+7828_daily_bin1202> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 19 08:00:30 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 08:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 08:00:32 2021
Terminated at Sun Sep 19 08:13:37 2021
Results reported at Sun Sep 19 08:13:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1800.6+7828_daily_bin1202 270.173 78.4674 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1800.6+7828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            787 sec.

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

