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


Performing analysis on: 4FGL_J0510.0+1800_daily_bin1622
RA = 77.5181, Dec = 18.0135
tmin = 659750401, tmax = 660009601
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='204237', job_status='RUN', time_executed='2021-12-07 15:41:29.911136', time_epoch_executed='1638920489.91' WHERE source_name='4FGL J0510.0+1800' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204237

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204237/ft1_4FGL_J0510.0+1800_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204237/ft1_4FGL_J0510.0+1800_daily_bin1622.fits outfile=/scratch/kocevski/204237/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1622.fits ra=77.5181 dec=18.0135 rad=12.0 tmin=659750401.0 tmax=660009601.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 2.35
user 2.17
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.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/204237/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/204237/ft1_filtered_4FGL_J0510.0+1800_daily_bin1622.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 8.57
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204237/ft1_filtered_4FGL_J0510.0+1800_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/204237/ltcube_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.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/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.fits
.....................!
real 13.04
user 12.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204237/ft1_filtered_4FGL_J0510.0+1800_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/204237/ltcube_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.fits outfile=/scratch/kocevski/204237/expmap_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.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/204237/ltcube_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.fits
.....................!
real 190.54
user 185.97
sys 4.05

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/204237/ft1_filtered_4FGL_J0510.0+1800_daily_bin1622.fits scfile=/scratch/kocevski/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.fits outfile=/scratch/kocevski/204237/cmap_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204237/ft1_filtered_4FGL_J0510.0+1800_daily_bin1622.fits scfile=/scratch/kocevski/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.fits outfile=/scratch/kocevski/204237/cmap_HighResolution_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/204237/ft1_filtered_4FGL_J0510.0+1800_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/204237/Model_4FGL_J0510.0+1800_daily_bin1622.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/204237/ft1_filtered_4FGL_J0510.0+1800_daily_bin1622.fits......................!
real 81.94
user 80.59
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204237/ft1_filtered_4FGL_J0510.0+1800_daily_bin1622.fits', '/scratch/kocevski/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.fits', expMap='/scratch/kocevski/204237/expmap_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.fits', expCube='/scratch/kocevski/204237/ltcube_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204237/Model_4FGL_J0510.0+1800_daily_bin1622.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/204237/ft1_filtered_4FGL_J0510.0+1800_daily_bin1622.fits
Spacecraft file(s): /scratch/kocevski/204237/ft2_4FGL_J0510.0+1800_daily_bin1622.fits
Exposure map: /scratch/kocevski/204237/expmap_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.fits
Exposure cube: /scratch/kocevski/204237/ltcube_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204237/Model_4FGL_J0510.0+1800_daily_bin1622.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) = 3399.0701123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22933E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    95.197       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8161       1.0000         .10000E-03   10000.    
     4 'norm      '    .83628E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .13365E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    141.49       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .20443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4272       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13539E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    50.687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4497       1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7765       1.0000         .10000E-03   10000.    
    19 'norm      '    .61330E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21361E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.809       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19956E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.664       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94061       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=   3399.064     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3855 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    904.77       -.11450E-05** at limit **
   2  Prefactor     95.222        117.62       -.21366E-06    .58463E-04
   3  norm          2.8253        6.7958        .83919E-06    .34267E-03
   4  norm          .10008E-03    7015.0       -.57603E-05** at limit **
   5  norm          .10001E-03    885.38       -.15245E-05** at limit **
   6  Prefactor     141.37        91.202        .15592E-05    .17189E-03
   7  Prefactor     .10000E-03    48.623       -.14218E-05** at limit **
   8  Prefactor     15.240        21.939        .22045E-06    .14362E-03
   9  Prefactor     .10000E-03    4.5045       -.22243E-06** at limit **
  10  norm          .16470        16.036        .14970E-05   -.30589E-03
  11  Prefactor     6.4394        9.8126        .52758E-07    .80137E-04
  12  Prefactor     .10000E-03    286.89        .79086E-06** at limit **
  13  Prefactor     .10000E-03    89.132        .32459E-06** at limit **
  14  norm          50.693        25.476       -.23581E-08    .13766E-03
  15  Prefactor     .10000E-03    56.323       -.73872E-07** at limit **
  16  norm          5.4487        18.731        .10300E-06    .22289E-03
  17  norm          .10000E-03    1.0848        .10847E-06** at limit **
  18  Prefactor     1.7773        .45795        .51867E-08    .43445E-02
  19  norm          .10000E-03    14.396       -.56058E-06** at limit **
  20  Prefactor     .10000E-03    2.4071       -.12054E-06** at limit **
  21  Prefactor     .10000E-03    113.93        .13972E-05** at limit **
  22  Prefactor     14.681        54.109       -.65765E-05    .22755E-03
  23  Prefactor     .10000E-03    225.05       -.20182E-05** at limit **
  24  Prefactor     14.667        13.154        .63754E-06    .53344E-03
  25  Normalizat    .10000E-01    .28465       -.30832E-04** at limit **
  26  Prefactor     .94046        .90266E-01    .16836E-05    .12831E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 95.2223
  norm       = 2.82527
  norm       = 0.000100083
  norm       = 0.000100006
  Prefactor  = 141.371
  Prefactor  = 0.0001
  Prefactor  = 15.2404
  Prefactor  = 0.0001
  norm       = 0.164696
  Prefactor  = 6.43936
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 50.6932
  Prefactor  = 0.0001
  norm       = 5.4487
  norm       = 0.0001
  Prefactor  = 1.77728
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6806
  Prefactor  = 0.0001
  Prefactor  = 14.6672
  Normalizat = 0.01
  Prefactor  = 0.940459
 **********
 **   18 **HESSE 
 **********

 FCN=   3399.064     FROM HESSE     STATUS=OK           452 CALLS     4307 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    904.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     95.222        117.86        .41194E-04   -1.3753    
   3  norm          2.8253        6.8120        .22049E-03   -1.5372    
   4  norm          .10008E-03    7012.6        .18400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    884.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     141.37        91.783        .16934E-03   -1.3324    
   7  Prefactor     .10000E-03    48.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.240        21.943        .10258E-03   -1.4927    
   9  Prefactor     .10000E-03    4.5387        .12078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .16470        21.665        .77021E-01   -1.5627    
  11  Prefactor     6.4394        9.8137        .15831E-03   -1.5200    
  12  Prefactor     .10000E-03    286.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    89.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          50.693        25.573        .56330E-04   -1.4283    
  15  Prefactor     .10000E-03    56.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4487        18.690        .17213E-03   -1.5241    
  17  norm          .10000E-03    1.1100        .11837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7773        .40916        .16184E-04   -1.5441    
  19  norm          .10000E-03    35.858        .37868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4513        .17608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    114.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.681        51.501        .10408E-03   -1.4941    
  23  Prefactor     .10000E-03    226.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.667        13.184        .10459E-03   -1.4942    
  25  Normalizat    .10000E-01    .34333        .17804E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .94046        .96125E-01    .14494E-03   -.94741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27871e-09
Minuit parameter uncertainties:
  1  0.00516809
  2  118.15
  3  6.81388
  4  0.0396609
  5  0.00463926
  6  91.8756
  7  0.00013757
  8  21.9547
  9  8.05158e-06
  10  3.77812
  11  9.81617
  12  0.00131368
  13  0.000370437
  14  25.5787
  15  6.18375e-05
  16  18.7105
  17  6.21809e-06
  18  0.409165
  19  0.000144225
  20  9.87388e-08
  21  0.000398015
  22  51.6577
  23  0.000238231
  24  13.1867
  25  9.96214e-06
  26  0.0961423
Done.

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

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.647e-01  3.778e+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

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.405e-01  9.614e-02  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  9.962e-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: 4.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204237/likelihoodResults_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3399.06422707
delta logL = -7.63964271755e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3399.0594571
delta logL = 0.00476233067775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4757       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7480       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93955       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3399.059     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      336 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4886        43.852        .17676E-02    .13680E-03
   2  alpha         1.7481        3.3539        .51565E-01    .12780E-05
   3  Normalizat    .10000E-01    .34455        .17849E-01** at limit **
   4  Prefactor     .93954        .75131E-01    .14500E-03   -.16600E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48859
  alpha      = 1.74811
  Normalizat = 0.01
  Prefactor  = 0.939542
 **********
 **   18 **HESSE 
 **********

 FCN=   3399.059     FROM HESSE     STATUS=OK            27 CALLS      363 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4886        40.779        .35353E-03   -1.5464    
   2  alpha         1.7481        3.3450        .20626E-02   -.30548    
   3  Normalizat    .10000E-01    .34474        .35698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93954        .75037E-01    .29000E-04   -.94773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76099e-11
Minuit parameter uncertainties:
  1  15.5937
  2  2.50146
  3  1.79002e-06
  4  0.0750449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204237': 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) = 3399.05945672
delta logL = 0.00476270246463

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.489e+00  1.559e+01  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  1.748e+00  2.501e+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:  9.395e-01  7.504e-02  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  1.790e-06  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/204237/cmap_HighResolution_659750401_660009601_4FGL_J0510.0+1800_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-04', job_status='DONE', photon_flux_upper_limit='4.36e-07', time_completed='2021-12-07 15:51:20.859972', job_id='204237', GAL2='0.94', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1638921080.86', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.76e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1622' AND source_name='4FGL J0510.0+1800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 15:51:20 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 204237: <4FGL_J0510.0+1800_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0510.0+1800_daily_bin1622> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 15:40:11 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 15:41:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 15:41:23 2021
Terminated at Tue Dec  7 15:51:21 2021
Results reported at Tue Dec  7 15:51:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.0+1800_daily_bin1622 77.5181 18.0135 659750401 660009601 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            670 sec.

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

