/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 53 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1012.7+2439_daily_bin213
RA = 153.199, Dec = 24.6638
tmin = 294537601, tmax = 294796801
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='716262', job_status='RUN', time_executed='2021-09-01 13:03:37.592889', time_epoch_executed='1630526617.59' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716262/ft1_4FGL_J1012.7+2439_daily_bin213.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716262/ft1_4FGL_J1012.7+2439_daily_bin213.fits outfile=/scratch/kocevski/716262/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin213.fits ra=153.199 dec=24.6638 rad=12.0 tmin=294537601.0 tmax=294796801.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 2.92
user 2.18
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.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/716262/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin213.fits evtable="EVENTS" outfile="/scratch/kocevski/716262/ft1_filtered_4FGL_J1012.7+2439_daily_bin213.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 0.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716262/ft1_filtered_4FGL_J1012.7+2439_daily_bin213.fits" evtable="EVENTS" scfile=/scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits sctable="SC_DATA" outfile=/scratch/kocevski/716262/ltcube_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.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/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits
.....................!
real 15.29
user 14.82
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716262/ft1_filtered_4FGL_J1012.7+2439_daily_bin213.fits evtable="EVENTS" scfile=/scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits sctable="SC_DATA" expcube=/scratch/kocevski/716262/ltcube_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.fits outfile=/scratch/kocevski/716262/expmap_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.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/716262/ltcube_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.fits
.....................!
real 192.75
user 187.45
sys 4.78

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
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J1012.7+2439 @ 153.199 24.6638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/716262/ft1_filtered_4FGL_J1012.7+2439_daily_bin213.fits scfile=/scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits outfile=/scratch/kocevski/716262/cmap_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.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=153.199 yref=24.6638 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 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716262/ft1_filtered_4FGL_J1012.7+2439_daily_bin213.fits scfile=/scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits outfile=/scratch/kocevski/716262/cmap_HighResolution_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.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=153.199 yref=24.6638 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 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716262/ft1_filtered_4FGL_J1012.7+2439_daily_bin213.fits evtable="EVENTS" scfile=/scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716262/Model_4FGL_J1012.7+2439_daily_bin213.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
Working on...
/scratch/kocevski/716262/ft1_filtered_4FGL_J1012.7+2439_daily_bin213.fits.....................!
real 55.34
user 53.67
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/716262/ft1_filtered_4FGL_J1012.7+2439_daily_bin213.fits', '/scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits', expMap='/scratch/kocevski/716262/expmap_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.fits', expCube='/scratch/kocevski/716262/ltcube_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/716262/Model_4FGL_J1012.7+2439_daily_bin213.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1012.7+2439'

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  8.685e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/716262/ft1_filtered_4FGL_J1012.7+2439_daily_bin213.fits
Spacecraft file(s): /scratch/kocevski/716262/ft2_4FGL_J1012.7+2439_daily_bin213.fits
Exposure map: /scratch/kocevski/716262/expmap_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.fits
Exposure cube: /scratch/kocevski/716262/ltcube_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/716262/Model_4FGL_J1012.7+2439_daily_bin213.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) = 6120.46173251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .96017       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.560       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.921       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5000       1.0000         .10000E-03   10000.    
     9 'norm      '    29.743       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1962       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2973       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2176       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.834       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39989       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10810E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7698       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96502       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3493       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79215       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6120.408     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2063 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    16.371         .0000    ** at limit **
   2  Prefactor     .95908        3.2560         .0000        .11177E-02
   3  Prefactor     25.561        18.179         .0000       -.12169E-03
   4  Prefactor     .10022E-03    25.290         .0000    ** at limit **
   5  Prefactor     .10014E-03    30.438         .0000    ** at limit **
   6  Prefactor     13.921        6.3378         .0000       -.82939E-03
   7  Prefactor     13.097        10.282         .0000        .19352E-03
   8  Prefactor     2.5000        1.9463         .0000        .17086E-03
   9  norm          29.743        10.427         .0000        .34764E-03
  10  Prefactor     9.1963        4.9068         .0000       -.99828E-03
  11  Prefactor     8.2949        34.612         .0000        .14996E-02
  12  Prefactor     6.2175        4.8161         .0000        .73837E-03
  13  Prefactor     28.833        31.941         .0000        .55344E-03
  14  Prefactor     .10000E-03    3.0890         .0000    ** at limit **
  15  Prefactor     .40043        1.4997         .0000        .18067E-02
  16  Prefactor     .10000E-03    6.7451         .0000    ** at limit **
  17  Prefactor     .10005E-03    18.018         .0000    ** at limit **
  18  Prefactor     3.7646        7.1720         .0000       -.16756E-02
  19  Prefactor     .96536        11.014         .0000        .29248E-01
  20  Prefactor     8.3477        11.186         .0000       -.42591E-03
  21  Normalizat    .79220        .16190         .0000        .55492E-03
  22  Prefactor     .97562        .16181         .0000        .43908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.959083
  Prefactor  = 25.5605
  Prefactor  = 0.000100218
  Prefactor  = 0.000100137
  Prefactor  = 13.9205
  Prefactor  = 13.0966
  Prefactor  = 2.49996
  norm       = 29.7434
  Prefactor  = 9.1963
  Prefactor  = 8.29486
  Prefactor  = 6.21747
  Prefactor  = 28.8332
  Prefactor  = 0.000100001
  Prefactor  = 0.400434
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 3.76461
  Prefactor  = 0.965362
  Prefactor  = 8.34773
  Normalizat = 0.792204
  Prefactor  = 0.975618
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.408     FROM HESSE     STATUS=OK           338 CALLS     2401 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    16.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .95908        3.2473        .24681E-03   -1.5512    
   3  Prefactor     25.561        18.164        .79236E-04   -1.4696    
   4  Prefactor     .10022E-03    25.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10014E-03    30.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.921        6.3375        .10735E-03   -1.4962    
   7  Prefactor     13.097        10.278        .11068E-03   -1.4984    
   8  Prefactor     2.5000        1.9379        .92633E-04   -1.5392    
   9  norm          29.743        10.428        .73464E-04   -1.4617    
  10  Prefactor     9.1963        4.9020        .11292E-03   -1.5101    
  11  Prefactor     8.2949        34.579        .13918E-03   -1.5132    
  12  Prefactor     6.2175        4.8105        .13744E-03   -1.5209    
  13  Prefactor     28.833        31.941        .74611E-04   -1.4634    
  14  Prefactor     .10000E-03    3.1197        .13416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .40043        1.4900        .17556E-03   -1.5581    
  16  Prefactor     .10000E-03    6.8141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    18.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7646        7.1259        .20793E-03   -1.5320    
  19  Prefactor     .96536        11.182        .25089E-02   -1.5511    
  20  Prefactor     8.3477        11.164        .13874E-03   -1.5130    
  21  Normalizat    .79220        .18701        .24461E-03   -1.0036    
  22  Prefactor     .97562        .18840        .23374E-03   -.93547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99834e-08
Minuit parameter uncertainties:
  1  0.000608734
  2  3.24794
  3  18.1676
  4  0.00470376
  5  0.00410321
  6  6.33782
  7  10.2792
  8  1.93796
  9  10.429
  10  4.90225
  11  33.9054
  12  4.81077
  13  31.9599
  14  0.000101425
  15  1.49012
  16  3.53167e-05
  17  0.0019249
  18  7.12746
  19  6.57231
  20  11.1664
  21  0.187163
  22  0.188524
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.974e+01  1.043e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.756e-01  1.885e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  7.922e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.08
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 3.76e-08
Energy Flux (Fixed Index): 4.22e-05 +/- 1.48e-05

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) = 6119.43118064
delta logL = 0.976446820382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6119.43055684
delta logL = 0.97707062304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.078       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6814       1.0000          .0000       5.0000    
     3 'Normalizat'    .74458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0078       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6119.431     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      262 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.069        108.59        .20408E-02    .49138E-04
   2  alpha         2.6809        3.8264        .19104        .52212E-04
   3  Normalizat    .74472        .12901        .42883E-01    .24263E-04
   4  Prefactor     1.0077        .12376        .43676E-01   -.29037E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.0693
  alpha      = 2.68093
  Normalizat = 0.744721
  Prefactor  = 1.00768
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.431     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.069        10.330        .81633E-04   -1.4726    
   2  alpha         2.6809        .39051        .81313E-02    .72436E-01
   3  Normalizat    .74472        .18102        .25100E-03   -1.0215    
   4  Prefactor     1.0077        .18874        .23021E-03   -.92474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3755e-12
Minuit parameter uncertainties:
  1  10.3306
  2  0.392129
  3  0.181169
  4  0.188868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716262': 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) = 6119.43055379
delta logL = 0.977073673743

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.407e+01  1.033e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.681e+00  3.921e-01  0.000e+00  5.000e+00 ( 1.000e+00)
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.008e+00  1.889e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  7.447e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.03
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.68 +/- 0.39
Photon Flux (Free Index): 1.49e-07 +/- 5.25e-08
Energy Flux (Free Index): 3.75e-05 +/- 1.22e-05

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/716262/cmap_HighResolution_294537601_294796801_4FGL_J1012.7+2439_daily_bin213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='3.75e-05', photon_flux_error='3.76e-08', dlogl='9.77e-01', energy_flux='4.22e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-01 13:12:41.443851', photon_index_error2='0.39', photon_index2='2.68', ts='20.08', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.79', time_epoch_completed='1630527161.44', return_code='0', job_id='716262', GAL2='1.01', EG2='0.74', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='5.25e-08', ts2='22.03', photon_index='2.17' WHERE bin_id='213' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:12:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 716262: <4FGL_J1012.7+2439_daily_bin213> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin213> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 13:00:31 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:02:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 13:02:24 2021
Terminated at Wed Sep  1 13:12:41 2021
Results reported at Wed Sep  1 13:12:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin213 153.199 24.6638 294537601 294796801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1012.7+2439 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   542.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            730 sec.

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

