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


Performing analysis on: 4FGL_J0510.0+1800_daily_bin1192
RA = 77.5181, Dec = 18.0135
tmin = 548294401, tmax = 548553601
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='101849', job_status='RUN', time_executed='2021-08-22 04:22:56.502737', time_epoch_executed='1629631376.5' WHERE source_name='4FGL J0510.0+1800' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101849

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101849/ft1_4FGL_J0510.0+1800_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101849/ft2_4FGL_J0510.0+1800_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101849/ft1_4FGL_J0510.0+1800_daily_bin1192.fits outfile=/scratch/kocevski/101849/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1192.fits ra=77.5181 dec=18.0135 rad=12.0 tmin=548294401.0 tmax=548553601.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 12.23
user 3.63
sys 8.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101849/ft1_filtered_4FGL_J0510.0+1800_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/101849/ft2_4FGL_J0510.0+1800_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/101849/ltcube_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.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/101849/ft2_4FGL_J0510.0+1800_daily_bin1192.fits
.....................!
real 20.26
user 11.51
sys 8.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101849/ft1_filtered_4FGL_J0510.0+1800_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/101849/ft2_4FGL_J0510.0+1800_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/101849/ltcube_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.fits outfile=/scratch/kocevski/101849/expmap_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.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/101849/ltcube_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.fits
.....................!
real 202.80
user 185.42
sys 15.86

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/101849/ft1_filtered_4FGL_J0510.0+1800_daily_bin1192.fits scfile=/scratch/kocevski/101849/ft2_4FGL_J0510.0+1800_daily_bin1192.fits outfile=/scratch/kocevski/101849/cmap_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.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 8.42
user 0.38
sys 7.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101849/ft1_filtered_4FGL_J0510.0+1800_daily_bin1192.fits scfile=/scratch/kocevski/101849/ft2_4FGL_J0510.0+1800_daily_bin1192.fits outfile=/scratch/kocevski/101849/cmap_HighResolution_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.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 8.38
user 0.37
sys 7.95

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/101849/ft1_filtered_4FGL_J0510.0+1800_daily_bin1192.fits', '/scratch/kocevski/101849/ft2_4FGL_J0510.0+1800_daily_bin1192.fits', expMap='/scratch/kocevski/101849/expmap_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.fits', expCube='/scratch/kocevski/101849/ltcube_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/101849/Model_4FGL_J0510.0+1800_daily_bin1192.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/101849/ft1_filtered_4FGL_J0510.0+1800_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/101849/ft2_4FGL_J0510.0+1800_daily_bin1192.fits
Exposure map: /scratch/kocevski/101849/expmap_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.fits
Exposure cube: /scratch/kocevski/101849/ltcube_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/101849/Model_4FGL_J0510.0+1800_daily_bin1192.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1041.50137611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1037.51978061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23850       1.0000         .10000E-03   10000.    
     2 'Prefactor '    95.876       1.0000         .10000E-03   10000.    
     3 'norm      '    8.3694       1.0000         .10000E-03   10000.    
     4 'norm      '    7.0619       1.0000         .10000E-03   10000.    
     5 'norm      '    5.8158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .49706E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0755       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29420E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.984       1.0000         .10000E-03   10000.    
    10 'norm      '    23.176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .62064       1.0000         .10000E-03   10000.    
    14 'norm      '    .88186       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15593       1.0000         .10000E-03   10000.    
    16 'norm      '    .15089E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10950E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .20750E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28247E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    90.961       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8416       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .76686E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .29552E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77460       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=   1037.512     FROM MIGRAD    STATUS=CONVERGED    225 CALLS      544 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.572        .13794E-05** at limit **
   2  Prefactor     95.979        42.322        .11887E-05   -.18878E-01
   3  norm          8.3828        7.7970       -.16983E-06    .13424E-04
   4  norm          7.0619        1.0025         .0000         .0000    
   5  norm          .16363E-03    6742.0        .55826E-04** at limit **
   6  Prefactor     .10000E-03    104.70        .19946E-05** at limit **
   7  Prefactor     6.1952        28.867        .78706E-06   -.23600E-03
   8  Prefactor     .10000E-03    51.970       -.27600E-05** at limit **
   9  Prefactor     24.006        15.603        .75761E-06   -.18270E-03
  10  norm          24.640        43.957        .17871E-05   -.27792E-02
  11  Prefactor     .10000E-03    11.395        .29311E-06** at limit **
  12  Prefactor     2.5860        1.0200         .0000         .0000    
  13  Prefactor     .10707E-03    352.00       -.25210E-04** at limit **
  14  norm          .17263E-03    437.88        .40862E-04** at limit **
  15  Prefactor     .11253E-03    708.08       -.21617E-04** at limit **
  16  norm          .10000E-03    33.704        .60613E-06** at limit **
  17  norm          .10000E-03    45.268       -.13798E-04** at limit **
  18  Prefactor     .10000E-03    5.1852        .26291E-08** at limit **
  19  norm          .10000E-03    134.85       -.41712E-05** at limit **
  20  Prefactor     .10000E-03    64.279       -.61867E-06** at limit **
  21  Prefactor     91.812        76.164        .31986E-05    .39712E-02
  22  Prefactor     .10326E-03    325.89        .17507E-04** at limit **
  23  Prefactor     .45517E-03    129.11        .10402E-04** at limit **
  24  Prefactor     .10000E-03    30.556       -.65855E-06** at limit **
  25  Normalizat    .10000E-01    .86256       -.46787E-05** at limit **
  26  Prefactor     .77385        .14354        .28850E-05    .11011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 95.9787
  norm       = 8.38285
  norm       = 7.0619
  norm       = 0.000163626
  Prefactor  = 0.000100001
  Prefactor  = 6.19523
  Prefactor  = 0.0001
  Prefactor  = 24.0058
  norm       = 24.6404
  Prefactor  = 0.0001
  Prefactor  = 2.586
  Prefactor  = 0.000107068
  norm       = 0.000172626
  Prefactor  = 0.000112526
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.8118
  Prefactor  = 0.000103261
  Prefactor  = 0.000455175
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.773848
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1037.512     FROM HESSE     STATUS=FAILED        23 CALLS      567 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.694        .10152E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     95.979        64.433        .10262E-02   -1.3745    
   3  norm          8.3828        7.0756        .34643E-02   -1.5129    
   4  norm          512.76        505.66         .0000       -1.5176    
   5  norm          .16363E-03    .43335E-01    .55826E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .21477        .19946E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1952        1.0133        .78706E-06   -1.5210    
   8  Prefactor     .10000E-03    .24625       -.27600E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.006        1.0007        .75761E-06   -1.4728    
  10  norm          24.640        1.0313        .17871E-05   -1.4715    
  11  Prefactor     .10000E-03    .20571        .29311E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5860        1.0200         .0000       -1.5386    
  13  Prefactor     .10707E-03    .34538       -.25210E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .17263E-03    .40586        .40862E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11253E-03    .23886       -.21617E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20695        .60613E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571       -.13798E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571        .26291E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .20822       -.41712E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .24732       -.61867E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     91.812        1.0046        .31986E-05   -1.3789    
  22  Prefactor     .10326E-03    .14761        .17507E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .45517E-03    .22087        .10402E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .24613       -.65855E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25505       -.46787E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .77385        1.1232        .28850E-05   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.10167e-09
Minuit parameter uncertainties:
  1  0.000224353
  2  64.4802
  3  7.07627
  4  1.00253
  5  0.00332097
  6  2.31897e-05
  7  1.01326
  8  5.3226e-06
  9  1.00067
  10  1.03127
  11  6.99754e-07
  12  1.02003
  13  0.00312494
  14  0.0108585
  15  0.00345939
  16  4.13778e-06
  17  2.37986e-05
  18  8.81904e-08
  19  1.27925e-05
  20  1.88959e-06
  21  1.00464
  22  0.0013876
  23  0.0177144
  24  3.22091e-07
  25  5.52026e-07
  26  1.15927
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1037.51168971

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  2.464e+01  1.031e+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:  7.738e-01  1.159e+00  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  5.520e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 77.518 18.014
Photon Flux Upper Limit: 1.27e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101849/likelihoodResults_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.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) = 1037.49991496
delta logL = 0.0117747506158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1037.49884573
delta logL = 0.0128439858725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.735       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9114       1.0000          .0000       5.0000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77397       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=   1037.499     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.743        47.783        .14023E-04    .32347E-04
   2  alpha         1.9166        .98201       -.15581E-04   -.42027E-04
   3  Normalizat    .10000E-01    .67475        .30397E-05** at limit **
   4  Prefactor     .77389        .13478       -.15715E-05   -.26384E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.7426
  alpha      = 1.91657
  Normalizat = 0.01
  Prefactor  = 0.773885
 **********
 **   18 **HESSE 
 **********

 FCN=   1037.499     FROM HESSE     STATUS=OK            27 CALLS      226 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.743        47.780        .77477E-04   -1.4673    
   2  alpha         1.9166        .99602        .13118E-02   -.23554    
   3  Normalizat    .10000E-01    .86926        .14684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77389        .12068        .13807E-03   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63424e-10
Minuit parameter uncertainties:
  1  47.8481
  2  1.02623
  3  8.91844e-06
  4  0.120717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101849': 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) = 1037.49883083
delta logL = 0.0128588807438

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  2.674e+01  4.785e+01  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  1.917e+00  1.026e+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:  7.739e-01  1.207e-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.918e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/101849/cmap_HighResolution_548294401_548553601_4FGL_J0510.0+1800_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-04', job_status='DONE', photon_flux_upper_limit='1.27e-06', time_completed='2021-08-22 04:30:54.104432', job_id='101849', GAL2='0.77', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629631854.1', return_code2='0', ts='0.41', comment='SUCCESS', return_code='101', GAL='0.77', dlogl='1.29e-02', ts2='0.43', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1192' AND source_name='4FGL J0510.0+1800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 04:30:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 101849: <4FGL_J0510.0+1800_daily_bin1192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.0+1800_daily_bin1192 77.5181 18.0135 548294401 548553601 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 :                                   589.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            621 sec.

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

