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


Performing analysis on: 4FGL_J0512.8+4041_daily_bin1241
RA = 78.2186, Dec = 40.6945
tmin = 560995201, tmax = 561254401
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='126307', job_status='RUN', time_executed='2021-08-22 05:48:02.959906', time_epoch_executed='1629636482.96' WHERE source_name='4FGL J0512.8+4041' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126307/ft1_4FGL_J0512.8+4041_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126307/ft1_4FGL_J0512.8+4041_daily_bin1241.fits outfile=/scratch/kocevski/126307/ft1_filteredMKT_4FGL_J0512.8+4041_daily_bin1241.fits ra=78.2186 dec=40.6945 rad=12.0 tmin=560995201.0 tmax=561254401.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 4.78
user 3.54
sys 1.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.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/126307/ft1_filteredMKT_4FGL_J0512.8+4041_daily_bin1241.fits evtable="EVENTS" outfile="/scratch/kocevski/126307/ft1_filtered_4FGL_J0512.8+4041_daily_bin1241.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.61
user 0.32
sys 1.27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126307/ft1_filtered_4FGL_J0512.8+4041_daily_bin1241.fits" evtable="EVENTS" scfile=/scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits sctable="SC_DATA" outfile=/scratch/kocevski/126307/ltcube_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.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/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits
.....................!
real 13.29
user 11.71
sys 1.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126307/ft1_filtered_4FGL_J0512.8+4041_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/126307/ltcube_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.fits outfile=/scratch/kocevski/126307/expmap_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.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/126307/ltcube_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.fits
.....................!
real 191.56
user 185.62
sys 5.53

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 HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
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.
Added 159 point sources and 3 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 J0512.8+4041 @ 78.2186 40.6945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/126307/ft1_filtered_4FGL_J0512.8+4041_daily_bin1241.fits scfile=/scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits outfile=/scratch/kocevski/126307/cmap_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.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=78.2186 yref=40.6945 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.57
user 0.38
sys 1.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126307/ft1_filtered_4FGL_J0512.8+4041_daily_bin1241.fits scfile=/scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits outfile=/scratch/kocevski/126307/cmap_HighResolution_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.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=78.2186 yref=40.6945 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.63
user 0.37
sys 1.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126307/ft1_filtered_4FGL_J0512.8+4041_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126307/Model_4FGL_J0512.8+4041_daily_bin1241.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
adding source S 147
Working on...
/scratch/kocevski/126307/ft1_filtered_4FGL_J0512.8+4041_daily_bin1241.fits.....................!
real 158.54
user 155.43
sys 2.71

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/126307/ft1_filtered_4FGL_J0512.8+4041_daily_bin1241.fits', '/scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits', expMap='/scratch/kocevski/126307/expmap_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.fits', expCube='/scratch/kocevski/126307/ltcube_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/126307/Model_4FGL_J0512.8+4041_daily_bin1241.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0512.8+4041'

4FGL J0512.8+4041
   Spectrum: PowerLaw
282    Prefactor:  4.408e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.477e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/126307/ft1_filtered_4FGL_J0512.8+4041_daily_bin1241.fits
Spacecraft file(s): /scratch/kocevski/126307/ft2_4FGL_J0512.8+4041_daily_bin1241.fits
Exposure map: /scratch/kocevski/126307/expmap_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.fits
Exposure cube: /scratch/kocevski/126307/ltcube_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/126307/Model_4FGL_J0512.8+4041_daily_bin1241.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) = 5817.7577472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13122E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .33691E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7510       1.0000         .10000E-03   10000.    
     4 'norm      '    12.861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21732E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .15672E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10252E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .11918E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .33295E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    17.125       1.0000         .10000E-03   10000.    
    11 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    12 'Prefactor '    .93771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5817.736     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      725 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6341        .19152E-05** at limit **
   2  norm          .10001E-03    20.212       -.41341E-04** at limit **
   3  Prefactor     5.7653        1.2219       -.91981E-06   -.14324E-04
   4  norm          12.852        3.7320       -.44606E-05    .43495E-02
   5  Prefactor     .10001E-03    18.384        .43227E-04** at limit **
   6  norm          .10000E-03    3.8120        .20313E-05** at limit **
   7  Prefactor     .10000E-03    16.613       -.15322E-04** at limit **
   8  norm          .10000E-03    2.9055       -.19950E-05** at limit **
   9  norm          .10004E-03    47.982        .21180E-04** at limit **
  10  norm          18.132        24.083        .11617E-04   -.79267E-04
  11  Normalizat    .10000E-01    .44578       -.37290E-04** at limit **
  12  Prefactor     .93770        .44287E-01    .28433E-05    .23520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 5.76533
  norm       = 12.8522
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100042
  norm       = 18.132
  Normalizat = 0.01
  Prefactor  = 0.937696
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.736     FROM HESSE     STATUS=OK           157 CALLS      882 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6274        .10286E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    6.4900        .66568E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7653        12.127        .41871E-02   -1.5228    
   4  norm          12.852        11.779        .27924E-02   -1.4991    
   5  Prefactor     .10001E-03    18.865        .10076E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.8132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.630        .10373E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10004E-03    49.809        .98563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.132        24.098        .24196E-02   -1.4856    
  11  Normalizat    .10000E-01    .29154        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .93770        .56182E-01    .25369E-01   -.94836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35136e-08
Minuit parameter uncertainties:
  1  4.613e-06
  2  0.000598265
  3  12.1323
  4  11.7815
  5  0.000905759
  6  7.75804e-07
  7  0.000196429
  8  4.84934e-06
  9  0.00290155
  10  24.1107
  11  1.25453e-06
  12  0.0561857
Done.

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

Extracting fit parameters...

4FGL J0512.8+4041
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  9.058e-04  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.477e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  9.377e-01  5.619e-02  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.000e-02  1.255e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 78.219 40.694
Photon Flux Upper Limit: 3.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126307/likelihoodResults_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.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) = 5817.73612417
delta logL = -0.00026274801894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5817.73586456
delta logL = -3.13601503876e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6126       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+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=   5817.736     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      292 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10211E-03    88.213        .18142E-02** at limit **
   2  Index         2.5460        6.0403        .50000        .18612E-04
   3  Normalizat    .10000E-01    .53602E-02    .20566E-01** at limit **
   4  Prefactor     .93770        .47729E-02    .11215E-03    .56667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102114
  Index      = 2.54603
  Normalizat = 0.01
  Prefactor  = 0.937696
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10211E-03    375.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5460        8.0495        .50000       -.51300    
   3  Normalizat    .10000E-01    .24010E-01    .41132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93770        .10092E-01    .44859E-05   -.94836    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5534e-08
Minuit parameter uncertainties:
  1  0.0567009
  2  459.529
  3  2.33837e-08
  4  0.0100922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126307': 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) = 5817.73586215
delta logL = -7.30519786885e-07

Extracting fit parameters...

4FGL J0512.8+4041
   Spectrum: PowerLaw
282    Prefactor:  1.021e-04  5.670e-02  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.546e+00  4.595e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.477e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  9.377e-01  1.009e-02  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.000e-02  2.338e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 78.219 40.694

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/126307/cmap_HighResolution_560995201_561254401_4FGL_J0512.8+4041_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-02', job_status='DONE', photon_flux_upper_limit='3.23e-07', time_completed='2021-08-22 05:57:28.232045', job_id='126307', GAL2='0.94', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629637048.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-7.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1241' AND source_name='4FGL J0512.8+4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 05:57:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 126307: <4FGL_J0512.8+4041_daily_bin1241> in cluster <slac> Done

Job <4FGL_J0512.8+4041_daily_bin1241> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 22 05:45:35 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 05:45: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 05:45:37 2021
Terminated at Sun Aug 22 05:57:29 2021
Results reported at Sun Aug 22 05:57:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0512.8+4041_daily_bin1241 78.2186 40.6945 560995201 561254401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0512.8+4041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   579.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            714 sec.

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

