/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 126 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1012.7+2439_daily_bin4
RA = 153.199, Dec = 24.6638
tmin = 240364801, tmax = 240624001
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='714803', job_status='RUN', time_executed='2021-09-01 12:58:23.462097', time_epoch_executed='1630526303.46' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714803/ft1_4FGL_J1012.7+2439_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714803/ft2_4FGL_J1012.7+2439_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714803/ft1_4FGL_J1012.7+2439_daily_bin4.fits outfile=/scratch/kocevski/714803/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin4.fits ra=153.199 dec=24.6638 rad=12.0 tmin=240364801.0 tmax=240624001.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 1.47
user 1.29
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714803/ft2_4FGL_J1012.7+2439_daily_bin4.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/714803/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/714803/ft1_filtered_4FGL_J1012.7+2439_daily_bin4.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.56
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714803/ft1_filtered_4FGL_J1012.7+2439_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/714803/ft2_4FGL_J1012.7+2439_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/714803/ltcube_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.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/714803/ft2_4FGL_J1012.7+2439_daily_bin4.fits
.....................!
real 17.79
user 17.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714803/ft1_filtered_4FGL_J1012.7+2439_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/714803/ft2_4FGL_J1012.7+2439_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/714803/ltcube_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.fits outfile=/scratch/kocevski/714803/expmap_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.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/714803/ltcube_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.fits
.....................!
real 192.34
user 186.42
sys 3.96

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/714803/ft1_filtered_4FGL_J1012.7+2439_daily_bin4.fits scfile=/scratch/kocevski/714803/ft2_4FGL_J1012.7+2439_daily_bin4.fits outfile=/scratch/kocevski/714803/cmap_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714803/ft1_filtered_4FGL_J1012.7+2439_daily_bin4.fits scfile=/scratch/kocevski/714803/ft2_4FGL_J1012.7+2439_daily_bin4.fits outfile=/scratch/kocevski/714803/cmap_HighResolution_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714803/ft1_filtered_4FGL_J1012.7+2439_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/714803/ft2_4FGL_J1012.7+2439_daily_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714803/Model_4FGL_J1012.7+2439_daily_bin4.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/714803/ft1_filtered_4FGL_J1012.7+2439_daily_bin4.fits.....................!
real 50.10
user 48.72
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/714803/ft1_filtered_4FGL_J1012.7+2439_daily_bin4.fits', '/scratch/kocevski/714803/ft2_4FGL_J1012.7+2439_daily_bin4.fits', expMap='/scratch/kocevski/714803/expmap_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.fits', expCube='/scratch/kocevski/714803/ltcube_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/714803/Model_4FGL_J1012.7+2439_daily_bin4.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/714803/ft1_filtered_4FGL_J1012.7+2439_daily_bin4.fits
Spacecraft file(s): /scratch/kocevski/714803/ft2_4FGL_J1012.7+2439_daily_bin4.fits
Exposure map: /scratch/kocevski/714803/expmap_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.fits
Exposure cube: /scratch/kocevski/714803/ltcube_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/714803/Model_4FGL_J1012.7+2439_daily_bin4.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) = 5546.62763781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11507E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.358       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .54533       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.507       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .86732       1.0000         .10000E-03   10000.    
     9 'norm      '    22.979       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17186       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10985E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4239       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9254       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10647E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.963       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.531       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.486       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72965       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.6025       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5546.626     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     3122 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.258        .18142E-02** at limit **
   2  Prefactor     13.357        5.8420        .10959E-03   -.13600E-03
   3  Prefactor     .56756        361.63        .71476E-02   -.65063E-04
   4  Prefactor     .10000E-03    60.793        .17439    ** at limit **
   5  Prefactor     33.499        38.022        .69226E-04    .11003E-04
   6  Prefactor     1.1970        9.7824        .20739E-02   -.10425E-03
   7  Prefactor     .10000E-03    2.9087        .12398E-02** at limit **
   8  Prefactor     .86417        2.4186        .18622E-03    .18010E-03
   9  norm          22.978        9.6364        .83559E-04   -.80381E-04
  10  Prefactor     .10000E-03    1.3405        .84018E-03** at limit **
  11  Prefactor     .13774        18.385        .10848        .51328E-04
  12  Prefactor     .10010E-03    22.534        .28513E-02** at limit **
  13  Prefactor     .10000E-03    14.634        .18142E-02** at limit **
  14  Prefactor     9.4226        8.7449        .13055E-03   -.10929E-03
  15  Prefactor     5.9249        2.9299        .84976E-04    .94721E-04
  16  Prefactor     .10000E-03    4.5789        .15535E-02** at limit **
  17  Prefactor     .10000E-03    12.396        .18142E-02** at limit **
  18  Prefactor     34.958        15.340        .67773E-04   -.17727E-03
  19  Prefactor     17.527        13.064        .95657E-04    .33040E-04
  20  Prefactor     18.492        19.115        .93154E-04   -.10191E-03
  21  Normalizat    .72972        .24011        .30968E-03   -.16494E-03
  22  Prefactor     1.6027        .25086        .24081E-03   -.68610E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.357
  Prefactor  = 0.567557
  Prefactor  = 0.0001
  Prefactor  = 33.4989
  Prefactor  = 1.19704
  Prefactor  = 0.0001
  Prefactor  = 0.86417
  norm       = 22.9777
  Prefactor  = 0.0001
  Prefactor  = 0.137736
  Prefactor  = 0.000100097
  Prefactor  = 0.0001
  Prefactor  = 9.42264
  Prefactor  = 5.92489
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 34.9582
  Prefactor  = 17.5272
  Prefactor  = 18.4923
  Normalizat = 0.729722
  Prefactor  = 1.60271
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.626     FROM HESSE     STATUS=OK           346 CALLS     3468 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.357        5.8356        .43837E-05   -1.4977    
   3  Prefactor     .56756        367.99        .28591E-02   -1.5557    
   4  Prefactor     .10000E-03    62.446        .17085       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.499        38.019        .27690E-05   -1.4550    
   6  Prefactor     1.1970        9.6852        .82955E-04   -1.5489    
   7  Prefactor     .10000E-03    2.9087        .24796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .86417        2.4176        .74486E-05   -1.5522    
   9  norm          22.978        9.6341        .16712E-04   -1.4749    
  10  Prefactor     .10000E-03    1.3406        .16804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13774        17.899        .11144       -1.5634    
  12  Prefactor     .10010E-03    23.181        .11405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.635        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4226        8.7416        .52219E-05   -1.5094    
  15  Prefactor     5.9249        2.9296        .33991E-05   -1.5221    
  16  Prefactor     .10000E-03    4.5793        .31070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.958        15.339        .13555E-04   -1.4525    
  19  Prefactor     17.527        13.063        .38263E-05   -1.4870    
  20  Prefactor     18.492        19.112        .37262E-05   -1.4848    
  21  Normalizat    .72972        .23927        .12387E-04   -1.0273    
  22  Prefactor     1.6027        .25096        .48163E-04   -.74702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72214e-09
Minuit parameter uncertainties:
  1  6.93287e-06
  2  5.83589
  3  29.0823
  4  0.000184528
  5  38.0465
  6  6.81108
  7  7.08883e-07
  8  2.41783
  9  9.63473
  10  1.70616e-06
  11  3.14011
  12  0.00300384
  13  1.43047e-05
  14  8.7428
  15  2.92963
  16  0.000114954
  17  7.68973e-05
  18  15.3408
  19  13.0649
  20  19.1182
  21  0.239613
  22  0.251161
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.298e+01  9.635e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.603e+00  2.512e-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.297e-01  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.06
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 8.28e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.37e-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) = 5545.19793018
delta logL = 1.42793797615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5545.17269228
delta logL = 1.45317588387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.553       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4593       1.0000          .0000       5.0000    
     3 'Normalizat'    .76754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5819       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5545.173     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .32E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.555        10.626        .76312E-06   -.82804E-04
   2  alpha         1.4599        .39921        .15472E-04    .33725E-05
   3  Normalizat    .76727        .19155       -.20147E-06   -.46802E-04
   4  Prefactor     1.5823        .21122       -.87928E-07   -.47871E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.5551
  alpha      = 1.45992
  Normalizat = 0.767271
  Prefactor  = 1.58226
 **********
 **   18 **HESSE 
 **********

 FCN=   5545.173     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.555        10.534        .88349E-04   -1.4801    
   2  alpha         1.4599        .39506        .10487E-01   -.42908    
   3  Normalizat    .76727        .22547        .30277E-03   -1.0129    
   4  Prefactor     1.5823        .24907        .24214E-03   -.75261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85815e-10
Minuit parameter uncertainties:
  1  10.5345
  2  0.39708
  3  0.225747
  4  0.249262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714803': 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) = 5545.1726899
delta logL = 1.45317825741

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.056e+01  1.053e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.460e+00  3.971e-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.582e+00  2.493e-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.673e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.00
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.46 +/- 0.40
Photon Flux (Free Index): 4.75e-08 +/- 2.70e-08
Energy Flux (Free Index): 5.94e-05 +/- 3.90e-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/714803/cmap_HighResolution_240364801_240624001_4FGL_J1012.7+2439_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.28e-08', energy_flux2='5.94e-05', photon_flux_error='3.47e-08', dlogl='1.45e+00', energy_flux='3.26e-05', photon_flux2='4.75e-08', job_status='DONE', time_completed='2021-09-01 13:08:10.698918', photon_index_error2='0.40', photon_index2='1.46', ts='18.06', fit_tolerance='1e-08', GAL='1.60', photon_index_error='0.00', energy_flux_error2='3.90e-05', EG='0.73', time_epoch_completed='1630526890.7', return_code='0', job_id='714803', GAL2='1.58', EG2='0.77', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='2.70e-08', ts2='21.00', photon_index='2.17' WHERE bin_id='4' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:08:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 714803: <4FGL_J1012.7+2439_daily_bin4> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin4> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:55:51 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:55:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 12:55:59 2021
Terminated at Wed Sep  1 13:08:11 2021
Results reported at Wed Sep  1 13:08:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin4 153.199 24.6638 240364801 240624001 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 :                                   585.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             318.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            740 sec.

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

