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


Performing analysis on: 4FGL_J0510.0+1800_daily_bin1264
RA = 77.5181, Dec = 18.0135
tmin = 566956801, tmax = 567216001
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='102008', job_status='RUN', time_executed='2021-08-22 04:23:30.099893', time_epoch_executed='1629631410.1' WHERE source_name='4FGL J0510.0+1800' and cadence='daily' and bin_id='1264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102008

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102008/ft1_4FGL_J0510.0+1800_daily_bin1264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102008/ft2_4FGL_J0510.0+1800_daily_bin1264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102008/ft1_4FGL_J0510.0+1800_daily_bin1264.fits outfile=/scratch/kocevski/102008/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1264.fits ra=77.5181 dec=18.0135 rad=12.0 tmin=566956801.0 tmax=567216001.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.09
user 2.32
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102008/ft2_4FGL_J0510.0+1800_daily_bin1264.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/102008/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1264.fits evtable="EVENTS" outfile="/scratch/kocevski/102008/ft1_filtered_4FGL_J0510.0+1800_daily_bin1264.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 1.10
user 0.32
sys 0.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102008/ft1_filtered_4FGL_J0510.0+1800_daily_bin1264.fits" evtable="EVENTS" scfile=/scratch/kocevski/102008/ft2_4FGL_J0510.0+1800_daily_bin1264.fits sctable="SC_DATA" outfile=/scratch/kocevski/102008/ltcube_566956801_567216001_4FGL_J0510.0+1800_daily_bin1264.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/102008/ft2_4FGL_J0510.0+1800_daily_bin1264.fits
.....................!
real 13.99
user 12.94
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102008/ft1_filtered_4FGL_J0510.0+1800_daily_bin1264.fits evtable="EVENTS" scfile=/scratch/kocevski/102008/ft2_4FGL_J0510.0+1800_daily_bin1264.fits sctable="SC_DATA" expcube=/scratch/kocevski/102008/ltcube_566956801_567216001_4FGL_J0510.0+1800_daily_bin1264.fits outfile=/scratch/kocevski/102008/expmap_566956801_567216001_4FGL_J0510.0+1800_daily_bin1264.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/102008/ltcube_566956801_567216001_4FGL_J0510.0+1800_daily_bin1264.fits
.....................!
real 191.29
user 185.14
sys 5.74

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/102008/ft1_filtered_4FGL_J0510.0+1800_daily_bin1264.fits scfile=/scratch/kocevski/102008/ft2_4FGL_J0510.0+1800_daily_bin1264.fits outfile=/scratch/kocevski/102008/cmap_566956801_567216001_4FGL_J0510.0+1800_daily_bin1264.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 1.13
user 0.39
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102008/ft1_filtered_4FGL_J0510.0+1800_daily_bin1264.fits scfile=/scratch/kocevski/102008/ft2_4FGL_J0510.0+1800_daily_bin1264.fits outfile=/scratch/kocevski/102008/cmap_HighResolution_566956801_567216001_4FGL_J0510.0+1800_daily_bin1264.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 1.14
user 0.38
sys 0.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    366.36       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.826       1.0000         .10000E-03   10000.    
     3 'norm      '    8.8457       1.0000         .10000E-03   10000.    
     4 'norm      '    687.76       1.0000         .10000E-03   10000.    
     5 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96452E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    60.785       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3555       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10803E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10924E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .18037       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86128       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   580.1757     FROM MIGRAD    STATUS=CONVERGED   1023 CALLS     3900 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     366.47        266.82        .10646E-03   -.64215E-04
   2  Prefactor     53.785        104.94        .54671E-04   -.18196E-06
   3  norm          8.8528        16.642        .10804E-03   -.72554E-04
   4  norm          687.76        853.06        .79029E-04   -.20931E-05
   5  norm          .10000E-03    604.29        .18142E-02** at limit **
   6  Prefactor     .10012E-03    245.28        .20786E-02** at limit **
   7  Prefactor     60.903        133.45        .25732E-03    .32319E-04
   8  Prefactor     5.3645        820.25        .17366E-03   -.53846E-05
   9  Prefactor     .10000E-03    24.038        .11529E-02** at limit **
  10  norm          .10000E-03    66.394        .18142E-02** at limit **
  11  Prefactor     .10000E-03    51.007        .16821E-02** at limit **
  12  Prefactor     .10000E-03    9755.1        .18142E-02** at limit **
  13  Prefactor     .10000E-03    954.77        .18142E-02** at limit **
  14  norm          .10000E-03    506.56        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6767.9        .18142E-02** at limit **
  16  norm          .10000E-03    211.70        .18142E-02** at limit **
  17  norm          .10000E-03    6.1256        .58249E-03** at limit **
  18  Prefactor     .10000E-03    15.680        .93207E-03** at limit **
  19  norm          .10000E-03    717.26        .18142E-02** at limit **
  20  Prefactor     .10000E-03    257.01        .18142E-02** at limit **
  21  Prefactor     .10000E-03    190.02        .18142E-02** at limit **
  22  Prefactor     .10000E-03    315.89        .18142E-02** at limit **
  23  Prefactor     .10000E-03    9053.0        .18142E-02** at limit **
  24  Prefactor     .10000E-03    1217.9        .18142E-02** at limit **
  25  Normalizat    .17842        6.1641        .14137E-01   -.79871E-05
  26  Prefactor     .86131        .31700        .14016E-03   -.50291E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 366.466
  Prefactor  = 53.7846
  norm       = 8.85277
  norm       = 687.758
  norm       = 0.0001
  Prefactor  = 0.00010012
  Prefactor  = 60.9033
  Prefactor  = 5.36455
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.178416
  Prefactor  = 0.861309
 **********
 **   18 **HESSE 
 **********

 FCN=   580.1757     FROM HESSE     STATUS=OK           432 CALLS     4332 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     366.47        266.77        .21292E-04   -1.1856    
   2  Prefactor     53.785        104.86        .21868E-05   -1.4240    
   3  norm          8.8528        16.529        .43216E-05   -1.5113    
   4  norm          687.76        852.99        .15806E-04   -1.0401    
   5  norm          .10000E-03    604.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10012E-03    245.28        .41572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     60.903        133.38        .10293E-04   -1.4146    
   8  Prefactor     5.3645        816.51        .69463E-05   -1.5245    
   9  Prefactor     .10000E-03    24.038        .23058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    66.394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.007        .33642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9755.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    954.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    506.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6767.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    211.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.1256        .11650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.680        .18641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    717.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    257.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    190.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    315.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9053.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1217.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .17842        6.0143        .56549E-03   -1.3104    
  26  Prefactor     .86131        .30590        .56063E-05   -.97506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21616e-10
Minuit parameter uncertainties:
  1  267.675
  2  105.226
  3  16.5377
  4  870.026
  5  0.000551481
  6  0.0108921
  7  134.041
  8  134.274
  9  0.000143613
  10  3.65203e-05
  11  4.71731e-06
  12  0.00932114
  13  0.000633172
  14  9.68897e-05
  15  0.00369352
  16  2.65953e-06
  17  1.6617e-06
  18  1.23156e-06
  19  0.000241963
  20  0.00013612
  21  9.83155e-05
  22  0.000203496
  23  0.00777143
  24  0.00105462
  25  1.59356
  26  0.30651
Done.

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

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.000e-04  3.652e-05  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:  8.613e-01  3.065e-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.784e-01  1.594e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 77.518 18.014
Photon Flux Upper Limit: 2.67e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102008/likelihoodResults_566956801_567216001_4FGL_J0510.0+1800_daily_bin1264.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) = 580.175814745
delta logL = -7.13478548278e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 580.17574401
delta logL = -6.12473854744e-07

Fit tolerance = 1e-08

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

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

 FCN=   580.1757     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      253 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    99.851        .90712E-02** at limit **
   2  alpha         3.0235        3.6524        .42233       -.12841E-05
   3  Normalizat    .17844        2.0940        .34806        .23730E-04
   4  Prefactor     .86131        .31304        .31716E-01    .16198E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 3.02353
  Normalizat = 0.178437
  Prefactor  = 0.861308
 **********
 **   18 **HESSE 
 **********

 FCN=   580.1757     FROM HESSE     STATUS=OK            29 CALLS      282 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    99.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0235        3.6490        .16893        .21097    
   3  Normalizat    .17844        1.3417        .14142E-01   -1.3104    
   4  Prefactor     .86131        .22928        .14016E-03   -.97507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47845e-10
Minuit parameter uncertainties:
  1  0.00126166
  2  2.44486
  3  0.982774
  4  0.229537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102008': 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) = 580.175743125
delta logL = 2.72306806437e-07

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.000e-04  1.262e-03  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  3.024e+00  2.445e+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:  8.613e-01  2.295e-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.784e-01  9.828e-01  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/102008/cmap_HighResolution_566956801_567216001_4FGL_J0510.0+1800_daily_bin1264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-03', job_status='DONE', photon_flux_upper_limit='2.67e-06', time_completed='2021-08-22 04:29:46.072594', job_id='102008', GAL2='0.86', fit_tolerance='1e-08', EG2='0.18', EG='0.18', time_epoch_completed='1629631786.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1264' AND source_name='4FGL J0510.0+1800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 04:29:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 102008: <4FGL_J0510.0+1800_daily_bin1264> in cluster <slac> Done

Job <4FGL_J0510.0+1800_daily_bin1264> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 22 04:20:44 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 04:20:46 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:20:46 2021
Terminated at Sun Aug 22 04:29:46 2021
Results reported at Sun Aug 22 04:29:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.0+1800_daily_bin1264 77.5181 18.0135 566956801 567216001 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 :                                   378.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            542 sec.

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

