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


Performing analysis on: 4FGL_J0510.0+1800_daily_bin1443
RA = 77.5181, Dec = 18.0135
tmin = 613353601, tmax = 613612801
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='104446', job_status='RUN', time_executed='2021-08-22 04:32:53.139755', time_epoch_executed='1629631973.14' WHERE source_name='4FGL J0510.0+1800' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104446/ft1_4FGL_J0510.0+1800_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104446/ft1_4FGL_J0510.0+1800_daily_bin1443.fits outfile=/scratch/kocevski/104446/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1443.fits ra=77.5181 dec=18.0135 rad=12.0 tmin=613353601.0 tmax=613612801.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.18
user 2.49
sys 0.61

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.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/104446/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/104446/ft1_filtered_4FGL_J0510.0+1800_daily_bin1443.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.92
user 0.31
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104446/ft1_filtered_4FGL_J0510.0+1800_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/104446/ltcube_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.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/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits
.....................!
real 13.25
user 12.38
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104446/ft1_filtered_4FGL_J0510.0+1800_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/104446/ltcube_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.fits outfile=/scratch/kocevski/104446/expmap_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.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/104446/ltcube_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.fits
.....................!
real 191.99
user 185.44
sys 6.11

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 159 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 J0510.0+1800 @ 77.5181 18.0135

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/104446/ft1_filtered_4FGL_J0510.0+1800_daily_bin1443.fits scfile=/scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits outfile=/scratch/kocevski/104446/cmap_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.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=77.5181 yref=18.0135 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.99
user 0.35
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104446/ft1_filtered_4FGL_J0510.0+1800_daily_bin1443.fits scfile=/scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits outfile=/scratch/kocevski/104446/cmap_HighResolution_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.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=77.5181 yref=18.0135 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.96
user 0.37
sys 0.58

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104446/ft1_filtered_4FGL_J0510.0+1800_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104446/Model_4FGL_J0510.0+1800_daily_bin1443.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
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/104446/ft1_filtered_4FGL_J0510.0+1800_daily_bin1443.fits.................................!
real 22.70
user 20.82
sys 1.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/104446/ft1_filtered_4FGL_J0510.0+1800_daily_bin1443.fits', '/scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits', expMap='/scratch/kocevski/104446/expmap_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.fits', expCube='/scratch/kocevski/104446/ltcube_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/104446/Model_4FGL_J0510.0+1800_daily_bin1443.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0510.0+1800'

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  5.353e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  2.085e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
242         beta:  9.246e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
243           Eb:  9.966e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/104446/ft1_filtered_4FGL_J0510.0+1800_daily_bin1443.fits
Spacecraft file(s): /scratch/kocevski/104446/ft2_4FGL_J0510.0+1800_daily_bin1443.fits
Exposure map: /scratch/kocevski/104446/expmap_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.fits
Exposure cube: /scratch/kocevski/104446/ltcube_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/104446/Model_4FGL_J0510.0+1800_daily_bin1443.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) = 392.363052098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13550E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23902E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .50092       1.0000         .10000E-03   10000.    
     4 'norm      '    6253.2       1.0000         .10000E-03   10000.    
     5 'norm      '    .11104E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4757       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13870E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .57115E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9816       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9987.5       1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.907       1.0000         .10000E-03   10000.    
    14 'norm      '    9994.6       1.0000         .10000E-03   10000.    
    15 'Prefactor '    233.28       1.0000         .10000E-03   10000.    
    16 'norm      '    22.842       1.0000         .10000E-03   10000.    
    17 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1633.7       1.0000         .10000E-03   10000.    
    19 'norm      '    .70940E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9407.3       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18500E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8501       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0531       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9539       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .47020       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   381.6612     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     2561 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    90.016       -.87088E-05** at limit **
   2  Prefactor     .10000E-03    204.02       -.57332E-05** at limit **
   3  norm          3.1689        14.947        .21071E-05   -.24559E-03
   4  norm          6036.5        7408.4       -.24037E-04   -.59218E-06
   5  norm          .10032E-03    1039.2        .97684E-05** at limit **
   6  Prefactor     .10002E-03    805.71       -.41448E-04** at limit **
   7  Prefactor     .10001E-03    451.73        .26615E-04** at limit **
   8  Prefactor     .10001E-03    134.46        .86089E-05** at limit **
   9  Prefactor     .10001E-03    140.65        .12595E-04** at limit **
  10  norm          .10010E-03    6211.8        .34781E-04** at limit **
  11  Prefactor    10000.0        7069.7        .71290E-04** at limit **
  12  Prefactor    10000.0        9475.4        .70393E-04** at limit **
  13  Prefactor    10000.0        8369.2       -.94417E-05** at limit **
  14  norm         10000.0        1729.0       -.22937E-04** at limit **
  15  Prefactor    10000.0        9969.5       -.42318E-04** at limit **
  16  norm         10000.0        9950.3        .93747E-05** at limit **
  17  norm          .10000E-03    8.3017        .31548E-05** at limit **
  18  Prefactor     .10028E-03    923.77        .45823E-04** at limit **
  19  norm          .10077E-03    8222.6       -.21000E-03** at limit **
  20  Prefactor    10000.0        6609.7        .30267E-04** at limit **
  21  Prefactor     .10000E-03    272.94       -.65866E-05** at limit **
  22  Prefactor     .10001E-03    357.22        .33433E-04** at limit **
  23  Prefactor     .10000E-03    9544.1       -.64753E-03** at limit **
  24  Prefactor     .10005E-03    926.50        .87097E-04** at limit **
  25  Normalizat    .10000E-01    .62792       -.29360E-04** at limit **
  26  Prefactor     .51288        .14037       -.28305E-06    .15630E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16894
  norm       = 6036.47
  norm       = 0.000100321
  Prefactor  = 0.00010002
  Prefactor  = 0.000100006
  Prefactor  = 0.000100009
  Prefactor  = 0.000100008
  norm       = 0.000100101
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.000100001
  Prefactor  = 0.000100283
  norm       = 0.000100769
  Prefactor  = 10000
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.000100055
  Normalizat = 0.01
  Prefactor  = 0.512876
 **********
 **   18 **HESSE 
 **********

 FCN=   381.6612     FROM HESSE     STATUS=OK           494 CALLS     3055 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    90.075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    201.95        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1689        14.277        .11275E-01   -1.6064    
   4  norm          6036.5        7372.6        .20659E-03    .20881    
   5  norm          .10032E-03    1011.8        .90785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    873.86        .18772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    455.53        .42928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    134.38        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    152.76        .10545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10010E-03    6202.4        .45045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        7107.3        .28324E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        9510.9        .15196E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        8512.3        .29023E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        1822.4        .43407E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9938.3        .66251E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        9916.8        .20952E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.2136        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10028E-03    1016.1        .27049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10077E-03    8593.9        .93718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        6723.9        .42349E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    270.09        .10149E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    354.25        .76631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9546.4        .12027E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10005E-03    914.86        .45173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .59339        .21719       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .51288        .14077        .25968E-01   -1.1139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34137e-09
Minuit parameter uncertainties:
  1  0.000202502
  2  1.7804e-05
  3  13.4577
  4  5109.08
  5  0.0366849
  6  0.00841687
  7  0.00337236
  8  0.00216164
  9  0.00221464
  10  0.0325763
  11  0.202472
  12  0.167973
  13  0.12202
  14  0.0682631
  15  0.0955671
  16  0.0854204
  17  0.000169582
  18  0.0345233
  19  0.177434
  20  0.0229796
  21  0.00164437
  22  0.00286664
  23  0.0256211
  24  0.0143557
  25  8.51766e-06
  26  0.140865
Done.

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

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.001e-04  3.258e-02  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  2.085e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
242         beta:  9.246e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
243           Eb:  9.966e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  5.129e-01  1.409e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  1.000e-02  8.518e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 77.518 18.014
Photon Flux Upper Limit: 6.20e-05 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104446/likelihoodResults_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.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) = 381.661167419
delta logL = -3.52638392087e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 381.6611661
delta logL = -2.20690753849e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   381.6612     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      195 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6202.5       -.19529E-02** at limit **
   2  alpha         2.0845        3.4420       -.59132E-04   -.72071E-07
   3  Normalizat    .10000E-01    .47589        .70037E-06** at limit **
   4  Prefactor     .51287        .13537        .22233E-06    .51260E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.08447
  Normalizat = 0.01
  Prefactor  = 0.512875
 **********
 **   18 **HESSE 
 **********

 FCN=   381.6612     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1227.1        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0845        3.4417        .50000       -.16699    
   3  Normalizat    .10000E-01    .49654        .90938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .51287        .13231        .11477E-03   -1.1139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76733e-12
Minuit parameter uncertainties:
  1  0.00149909
  2  2.46525
  3  6.42944e-07
  4  0.132386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104446': 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) = 381.661163893
delta logL = 5.46833689441e-11

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.000e-04  1.499e-03  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  2.084e+00  2.465e+00  0.000e+00  5.000e+00 ( 1.000e+00)
242         beta:  9.246e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
243           Eb:  9.966e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  5.129e-01  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  1.000e-02  6.429e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 77.518 18.014

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/104446/cmap_HighResolution_613353601_613612801_4FGL_J0510.0+1800_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-02', job_status='DONE', photon_flux_upper_limit='6.20e-05', time_completed='2021-08-22 04:38:45.373292', job_id='104446', GAL2='0.51', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629632325.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='5.47e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1443' AND source_name='4FGL J0510.0+1800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 04:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 104446: <4FGL_J0510.0+1800_daily_bin1443> in cluster <slac> Done

Job <4FGL_J0510.0+1800_daily_bin1443> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 22 04:30:23 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 04:30:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 04:30:25 2021
Terminated at Sun Aug 22 04:38:46 2021
Results reported at Sun Aug 22 04:38:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.0+1800_daily_bin1443 77.5181 18.0135 613353601 613612801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0510.0+1800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   354.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            503 sec.

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

