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


Performing analysis on: 4FGL_J0510.0+1800_daily_bin1317
RA = 77.5181, Dec = 18.0135
tmin = 580694401, tmax = 580953601
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='102085', job_status='RUN', time_executed='2021-08-22 04:25:48.135815', time_epoch_executed='1629631548.14' WHERE source_name='4FGL J0510.0+1800' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102085

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102085/ft1_4FGL_J0510.0+1800_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102085/ft2_4FGL_J0510.0+1800_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102085/ft1_4FGL_J0510.0+1800_daily_bin1317.fits outfile=/scratch/kocevski/102085/ft1_filteredMKT_4FGL_J0510.0+1800_daily_bin1317.fits ra=77.5181 dec=18.0135 rad=12.0 tmin=580694401.0 tmax=580953601.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.47
user 2.60
sys 9.78

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102085/ft1_filtered_4FGL_J0510.0+1800_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/102085/ft2_4FGL_J0510.0+1800_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/102085/ltcube_580694401_580953601_4FGL_J0510.0+1800_daily_bin1317.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/102085/ft2_4FGL_J0510.0+1800_daily_bin1317.fits
.....................!
real 22.41
user 12.23
sys 9.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102085/ft1_filtered_4FGL_J0510.0+1800_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/102085/ft2_4FGL_J0510.0+1800_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/102085/ltcube_580694401_580953601_4FGL_J0510.0+1800_daily_bin1317.fits outfile=/scratch/kocevski/102085/expmap_580694401_580953601_4FGL_J0510.0+1800_daily_bin1317.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/102085/ltcube_580694401_580953601_4FGL_J0510.0+1800_daily_bin1317.fits
.....................!
real 206.69
user 187.65
sys 17.61

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/102085/ft1_filtered_4FGL_J0510.0+1800_daily_bin1317.fits scfile=/scratch/kocevski/102085/ft2_4FGL_J0510.0+1800_daily_bin1317.fits outfile=/scratch/kocevski/102085/cmap_580694401_580953601_4FGL_J0510.0+1800_daily_bin1317.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.96
user 0.37
sys 9.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102085/ft1_filtered_4FGL_J0510.0+1800_daily_bin1317.fits scfile=/scratch/kocevski/102085/ft2_4FGL_J0510.0+1800_daily_bin1317.fits outfile=/scratch/kocevski/102085/cmap_HighResolution_580694401_580953601_4FGL_J0510.0+1800_daily_bin1317.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.87
user 0.38
sys 9.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4359       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .70023       1.0000         .10000E-03   10000.    
     3 'norm      '    30.186       1.0000         .10000E-03   10000.    
     4 'norm      '    7.4913       1.0000         .10000E-03   10000.    
     5 'norm      '    6.7750       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48554E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36792       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .61500E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36242E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .37507E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .85744E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.523       1.0000         .10000E-03   10000.    
    14 'norm      '    .53742E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.926       1.0000         .10000E-03   10000.    
    16 'norm      '    66.099       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8734       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4110       1.0000         .10000E-03   10000.    
    19 'norm      '    22.520       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    69.884       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.236       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .44734E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0314       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=   2390.473     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2519 TOTAL
                     EDM=   .54E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6999.2       -.54974E-05** at limit **
   2  Prefactor     .10000E-03    248.59       -.27313E-06** at limit **
   3  norm          30.507        17.725        .51268E-07   -.19886E-05
   4  norm         10000.0        9307.5       -.75071E-04** at limit **
   5  norm          1391.6        9149.9       -.49722E-04    .15170E-07
   6  Prefactor     .10000E-03    44.859       -.25689E-06** at limit **
   7  Prefactor     .10000E-03    275.89        .54462E-05** at limit **
   8  Prefactor     .10000E-03    45.498        .29616E-06** at limit **
   9  Prefactor     .10000E-03    21.005        .18845E-06** at limit **
  10  norm          .10000E-03    24.048       -.31423E-06** at limit **
  11  Prefactor     .10000E-03    10.053        .29971E-06** at limit **
  12  Prefactor     .10000E-03    181.09        .35531E-07** at limit **
  13  Prefactor     49.555        192.85        .35427E-05   -.41142E-05
  14  norm          .10000E-03    21.396        .11375E-05** at limit **
  15  Prefactor     33.199        240.01       -.58769E-07   -.63115E-05
  16  norm          65.650        32.861        .24936E-06   -.21603E-05
  17  norm          2.8240        4.8060        .25133E-06    .92650E-06
  18  Prefactor     1.3933        .54959       -.15332E-06   -.11796E-03
  19  norm          22.803        19.618        .92342E-06   -.11844E-05
  20  Prefactor     .10000E-03    3.5823       -.86182E-07** at limit **
  21  Prefactor     82.001        150.91       -.20681E-05    .90897E-07
  22  Prefactor     35.239        163.51       -.10914E-05    .13801E-05
  23  Prefactor     .10000E-03    80.525        .46058E-06** at limit **
  24  Prefactor     .10000E-03    4.9342        .35358E-07** at limit **
  25  Normalizat    .10000E-01    .72664       -.25011E-05** at limit **
  26  Prefactor     1.0183        .12042       -.11190E-05   -.78166E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 30.5069
  norm       = 10000
  norm       = 1391.62
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.5549
  norm       = 0.0001
  Prefactor  = 33.1988
  norm       = 65.65
  norm       = 2.82397
  Prefactor  = 1.39328
  norm       = 22.8031
  Prefactor  = 0.0001
  Prefactor  = 82.0013
  Prefactor  = 35.2394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.0183
 **********
 **   18 **HESSE 
 **********

 FCN=   2390.473     FROM HESSE     STATUS=OK           512 CALLS     3031 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7047.2        .47799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    248.20        .12063E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          30.507        17.770        .18231E-02   -1.4603    
   4  norm         10000.0        9244.2        .36632E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1391.6        9170.1        .38538E-02   -.80622    
   6  Prefactor     .10000E-03    44.978        .92630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    271.96        .10719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    45.237        .94513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.619        .10654E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    23.642        .10646E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    173.19        .91779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.555        194.78        .25414E-02   -1.4299    
  14  norm          .10000E-03    21.092        .10561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.199        170.92        .16270E-02   -1.4555    
  16  norm          65.650        32.571        .12341E-02   -1.4086    
  17  norm          2.8240        4.9609        .59947E-02   -1.5372    
  18  Prefactor     1.3933        .53714        .33341E-02   -1.5472    
  19  norm          22.803        18.423        .21102E-02   -1.4753    
  20  Prefactor     .10000E-03    2.7926        .27397E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     82.001        155.01        .12005E-02   -1.3894    
  22  Prefactor     35.239        167.51        .14903E-02   -1.4520    
  23  Prefactor     .10000E-03    83.273        .96759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.9794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .57130        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0183        .12848        .41151E-01   -.92122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25116e-10
Minuit parameter uncertainties:
  1  0.00818611
  2  2.36901e-05
  3  17.7731
  4  0.00218743
  5  12381.2
  6  3.52803e-06
  7  0.000250938
  8  5.3751e-07
  9  7.23848e-06
  10  2.39961e-06
  11  4.2903e-06
  12  1.20582e-07
  13  197.372
  14  1.56563e-05
  15  151.344
  16  32.5798
  17  4.96164
  18  0.537139
  19  18.428
  20  5.05159e-07
  21  155.779
  22  154.37
  23  3.42475e-05
  24  1.12339e-07
  25  2.41048e-06
  26  0.128519
Done.

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

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.000e-04  2.400e-06  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:  1.018e+00  1.285e-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  2.410e-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: 7.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102085/likelihoodResults_580694401_580953601_4FGL_J0510.0+1800_daily_bin1317.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) = 2390.47273024
delta logL = -0.00020661523331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2390.47252533
delta logL = -1.69612758327e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8928       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0183       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=   2390.473     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      292 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    126.14        .18083E-01** at limit **
   2  alpha         2.1415        2.5372        .50000        .21234E-06
   3  Normalizat    .10000E-01    .81763E-02    .19367E-01** at limit **
   4  Prefactor     1.0183        .10398E-01    .15743E-03   -.30295E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.14151
  Normalizat = 0.01
  Prefactor  = 1.0183
 **********
 **   18 **HESSE 
 **********

 FCN=   2390.473     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    920.38        .23152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1415        2.6275        .50000       -.14389    
   3  Normalizat    .10000E-01    .65257E-01    .38734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0183        .29384E-01    .62970E-05   -.92122    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.59208e-08
Minuit parameter uncertainties:
  1  0.000876666
  2  2711.74
  3  7.74415e-08
  4  0.0293843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102085': 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): 102
logL (Free Index) = 2390.47252363
delta logL = 7.11224856786e-10

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.000e-04  8.767e-04  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  2.142e+00  2.712e+03  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:  1.018e+00  2.938e-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  7.744e-08  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/102085/cmap_HighResolution_580694401_580953601_4FGL_J0510.0+1800_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-04', job_status='DONE', photon_flux_upper_limit='7.60e-07', time_completed='2021-08-22 04:36:25.610347', job_id='102085', GAL2='1.02', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629632185.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.11e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1317' AND source_name='4FGL J0510.0+1800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 04:36:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 102085: <4FGL_J0510.0+1800_daily_bin1317> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.0+1800_daily_bin1317 77.5181 18.0135 580694401 580953601 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 :                                   774.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

