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


Performing analysis on: 4FGL_J0510.0+1800_daily_bin1216
RA = 77.5181, Dec = 18.0135
tmin = 554515201, tmax = 554774401
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='101886', job_status='RUN', time_executed='2021-08-22 04:26:07.479675', time_epoch_executed='1629631567.48' WHERE source_name='4FGL J0510.0+1800' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101886

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101886/ft1_4FGL_J0510.0+1800_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101886/ft2_4FGL_J0510.0+1800_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101886/ft1_4FGL_J0510.0+1800_daily_bin1216.fits outfile=/scratch/kocevski/101886/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1216.fits ra=77.5181 dec=18.0135 rad=12.0 tmin=554515201.0 tmax=554774401.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 14.16
user 3.87
sys 10.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101886/ft2_4FGL_J0510.0+1800_daily_bin1216.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/101886/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1216.fits evtable="EVENTS" outfile="/scratch/kocevski/101886/ft1_filtered_4FGL_J0510.0+1800_daily_bin1216.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 9.41
user 0.34
sys 9.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101886/ft1_filtered_4FGL_J0510.0+1800_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/101886/ft2_4FGL_J0510.0+1800_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/101886/ltcube_554515201_554774401_4FGL_J0510.0+1800_daily_bin1216.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/101886/ft2_4FGL_J0510.0+1800_daily_bin1216.fits
.....................!
real 23.79
user 13.37
sys 10.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101886/ft1_filtered_4FGL_J0510.0+1800_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/101886/ft2_4FGL_J0510.0+1800_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/101886/ltcube_554515201_554774401_4FGL_J0510.0+1800_daily_bin1216.fits outfile=/scratch/kocevski/101886/expmap_554515201_554774401_4FGL_J0510.0+1800_daily_bin1216.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/101886/ltcube_554515201_554774401_4FGL_J0510.0+1800_daily_bin1216.fits
.....................!
real 203.60
user 185.86
sys 16.72

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/101886/ft1_filtered_4FGL_J0510.0+1800_daily_bin1216.fits scfile=/scratch/kocevski/101886/ft2_4FGL_J0510.0+1800_daily_bin1216.fits outfile=/scratch/kocevski/101886/cmap_554515201_554774401_4FGL_J0510.0+1800_daily_bin1216.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 9.35
user 0.38
sys 8.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101886/ft1_filtered_4FGL_J0510.0+1800_daily_bin1216.fits scfile=/scratch/kocevski/101886/ft2_4FGL_J0510.0+1800_daily_bin1216.fits outfile=/scratch/kocevski/101886/cmap_HighResolution_554515201_554774401_4FGL_J0510.0+1800_daily_bin1216.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 9.34
user 0.40
sys 8.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0925       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62709E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.0619       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    80.344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60542E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20175       1.0000         .10000E-03   10000.    
    10 'norm      '    .63874E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16376       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .78725E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    42.851       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44916E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .79596E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    11.292       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1034       1.0000         .10000E-03   10000.    
    19 'norm      '    .15247E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31460       1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.721       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0724       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21572       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72416       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=   861.4758     FROM MIGRAD    STATUS=CONVERGED    276 CALLS      546 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0925        1.0049         .0000         .0000    
   2  Prefactor     .10001E-03    328.38        .86816E-05** at limit **
   3  norm          .10000E-03    5.6886       -.74150E-07** at limit **
   4  norm          7.0619        1.0025         .0000         .0000    
   5  norm          6.4812        1.0030         .0000         .0000    
   6  Prefactor     106.91        295.90       -.49301E-05   -.71216E-04
   7  Prefactor     18.811        1205.1        .28920E-04   -.33300E-04
   8  Prefactor     .10000E-03    18.475        .53968E-06** at limit **
   9  Prefactor     .20046        460.18       -.88145E-04   -.79522E-05
  10  norm          .10000E-03    31.433       -.26541E-06** at limit **
  11  Prefactor     .10000E-03    118.32       -.21723E-05** at limit **
  12  Prefactor     2.5860        1.0200         .0000         .0000    
  13  Prefactor     .10000E-03    195.80        .36788E-05** at limit **
  14  norm          43.022        59.913       -.48077E-05   -.13452E-03
  15  Prefactor     .10000E-03    448.27        .21937E-04** at limit **
  16  norm          .10000E-03    68.168       -.85172E-06** at limit **
  17  norm          11.432        6.0583        .10833E-06   -.81351E-04
  18  Prefactor     1.1010        .86710        .15677E-06   -.14574E-03
  19  norm          .10000E-03    37.518        .14380E-06** at limit **
  20  Prefactor     .10000E-03    5.4135        .12027E-06** at limit **
  21  Prefactor     .10003E-03    135.82        .42020E-05** at limit **
  22  Prefactor     53.039        96.893       -.88947E-06    .16695E-04
  23  Prefactor     7.4777        765.85        .20820E-04   -.22322E-04
  24  Prefactor     .10000E-03    90.734        .36091E-05** at limit **
  25  Normalizat    .10000E-01    .59467        .85154E-07** at limit **
  26  Prefactor     .72386        .14997       -.29608E-05   -.71326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.09249
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 7.0619
  norm       = 6.48117
  Prefactor  = 106.911
  Prefactor  = 18.8111
  Prefactor  = 0.0001
  Prefactor  = 0.200464
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 2.586
  Prefactor  = 0.0001
  norm       = 43.0224
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.4318
  Prefactor  = 1.10096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 53.0388
  Prefactor  = 7.47771
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.723862
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   861.4758     FROM HESSE     STATUS=FAILED        11 CALLS      557 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     530.59        525.44         .0000       -1.5257    
   2  Prefactor     .10001E-03    .21771        .86816E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .20571       -.74150E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.0619        1.0025         .0000       -1.5176    
   5  norm          6.4812        1.0030         .0000       -1.5199    
   6  Prefactor     106.91        1.1520       -.49301E-05   -1.3636    
   7  Prefactor     18.811        .65025        .28920E-04   -1.4840    
   8  Prefactor     .10000E-03    .27718        .53968E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .20046        .44697       -.88145E-04   -1.5797    
  10  norm          .10000E-03    .22195       -.26541E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .24063       -.21723E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5860        1.0200         .0000       -1.5386    
  13  Prefactor     .10000E-03    .22134        .36788E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          43.022        1.0021       -.48077E-05   -1.4395    
  15  Prefactor     .10000E-03    .21368        .21937E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .21357       -.85172E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.432        1.0071        .10833E-06   -1.5032    
  18  Prefactor     1.1010        1.1844        .15677E-06   -1.5498    
  19  norm          .10000E-03    .20571        .14380E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20571        .12027E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    .27504        .42020E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     53.039        .97580       -.88947E-06   -1.4250    
  23  Prefactor     7.4777        3.2001        .20820E-04   -1.5161    
  24  Prefactor     .10000E-03    .25246        .36091E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25735        .85154E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .72386        1.0737       -.29608E-05   -1.0260    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.87897e-10
Minuit parameter uncertainties:
  1  1.0049
  2  7.72165e-05
  3  9.45667e-09
  4  1.00253
  5  1.00301
  6  1.15202
  7  0.650247
  8  1.90958e-06
  9  0.446973
  10  6.48184e-07
  11  5.17229e-05
  12  1.02003
  13  7.68204e-06
  14  1.00206
  15  3.50618e-06
  16  1.41848e-06
  17  1.00714
  18  1.1844
  19  5.09121e-06
  20  2.64478e-07
  21  0.000184084
  22  0.975804
  23  3.20021
  24  2.44432e-05
  25  8.678e-08
  26  1.10704
Done.

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

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.000e-04  6.482e-07  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.239e-01  1.107e+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  8.678e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/101886/likelihoodResults_554515201_554774401_4FGL_J0510.0+1800_daily_bin1216.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) = 861.47600188
delta logL = -0.000153471669819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 861.475852933
delta logL = -4.52392998795e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9811       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72387       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=   861.4758     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      289 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2149.2        .91594E-02** at limit **
   2  alpha         1.3712        4.0945        .16863        .67989E-07
   3  Normalizat    .10000E-01    .56531E-01    .12756E-01** at limit **
   4  Prefactor     .72386        .36128E-01    .13229E-03    .12704E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.37116
  Normalizat = 0.01
  Prefactor  = 0.723863
 **********
 **   18 **HESSE 
 **********

 FCN=   861.4758     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    57.979        .18319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3712        2.7367        .67453E-02   -.46848    
   3  Normalizat    .10000E-01    .60792        .25513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .72386        .11952        .26457E-04   -1.0260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66153e-10
Minuit parameter uncertainties:
  1  0.00020812
  2  580.006
  3  3.71582e-07
  4  0.119563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101886': 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) = 861.475847724
delta logL = 6.850035561e-07

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.000e-04  2.081e-04  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  1.371e+00  5.800e+02  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.239e-01  1.196e-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  3.716e-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/101886/cmap_HighResolution_554515201_554774401_4FGL_J0510.0+1800_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-04', job_status='DONE', photon_flux_upper_limit='1.28e-06', time_completed='2021-08-22 04:34:14.967371', job_id='101886', GAL2='0.72', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629632054.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.72', dlogl='6.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1216' AND source_name='4FGL J0510.0+1800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 04:34:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 101886: <4FGL_J0510.0+1800_daily_bin1216> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.0+1800_daily_bin1216 77.5181 18.0135 554515201 554774401 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 :                                   622.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            820 sec.

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

