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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin15
RA = 153.199, Dec = 24.6638
tmin = 243216001, tmax = 243475201
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='714821', job_status='RUN', time_executed='2021-09-01 13:00:03.611400', time_epoch_executed='1630526403.61' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714821

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714821/ft1_4FGL_J1012.7+2439_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714821/ft2_4FGL_J1012.7+2439_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714821/ft1_4FGL_J1012.7+2439_daily_bin15.fits outfile=/scratch/kocevski/714821/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin15.fits ra=153.199 dec=24.6638 rad=12.0 tmin=243216001.0 tmax=243475201.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.39
user 1.22
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714821/ft2_4FGL_J1012.7+2439_daily_bin15.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/714821/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/714821/ft1_filtered_4FGL_J1012.7+2439_daily_bin15.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.52
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714821/ft1_filtered_4FGL_J1012.7+2439_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/714821/ft2_4FGL_J1012.7+2439_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/714821/ltcube_243216001_243475201_4FGL_J1012.7+2439_daily_bin15.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/714821/ft2_4FGL_J1012.7+2439_daily_bin15.fits
.....................!
real 17.94
user 17.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714821/ft1_filtered_4FGL_J1012.7+2439_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/714821/ft2_4FGL_J1012.7+2439_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/714821/ltcube_243216001_243475201_4FGL_J1012.7+2439_daily_bin15.fits outfile=/scratch/kocevski/714821/expmap_243216001_243475201_4FGL_J1012.7+2439_daily_bin15.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/714821/ltcube_243216001_243475201_4FGL_J1012.7+2439_daily_bin15.fits
.....................!
real 194.52
user 188.56
sys 5.37

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/714821/ft1_filtered_4FGL_J1012.7+2439_daily_bin15.fits scfile=/scratch/kocevski/714821/ft2_4FGL_J1012.7+2439_daily_bin15.fits outfile=/scratch/kocevski/714821/cmap_243216001_243475201_4FGL_J1012.7+2439_daily_bin15.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714821/ft1_filtered_4FGL_J1012.7+2439_daily_bin15.fits scfile=/scratch/kocevski/714821/ft2_4FGL_J1012.7+2439_daily_bin15.fits outfile=/scratch/kocevski/714821/cmap_HighResolution_243216001_243475201_4FGL_J1012.7+2439_daily_bin15.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714821/ft1_filtered_4FGL_J1012.7+2439_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/714821/ft2_4FGL_J1012.7+2439_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714821/Model_4FGL_J1012.7+2439_daily_bin15.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/714821/ft1_filtered_4FGL_J1012.7+2439_daily_bin15.fits.....................!
real 69.69
user 68.06
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .98199       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .89839E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6681       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2051       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78950       1.0000         .10000E-03   10000.    
     9 'norm      '    19.883       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11588E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8698       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79370       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3029       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0825       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7618       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1673       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94743       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0864       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=   8037.332     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2183 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.377        .32609E-05** at limit **
   2  Prefactor     .97977        2.8017        .70029E-07   -.36914E-03
   3  Prefactor     .10000E-03    14.594        .45973E-06** at limit **
   4  Prefactor     .10000E-03    79.783        .97276E-06** at limit **
   5  Prefactor     .18741E-01    22.180        .11614E-06    .55289E-05
   6  Prefactor     5.6713        2.9611        .28797E-06   -.21870E-02
   7  Prefactor     4.1997        9.3785       -.19808E-06   -.55684E-04
   8  Prefactor     .78778        1.6087        .56707E-07   -.33417E-03
   9  norm          19.878        8.3724       -.11933E-06   -.28461E-04
  10  Prefactor     .10000E-03    2.0683       -.70416E-07** at limit **
  11  Prefactor     .10000E-03    26.100       -.33051E-05** at limit **
  12  Prefactor     1.8603        4.3906        .14699E-06   -.23425E-03
  13  Prefactor     .10000E-03    17.488        .10051E-06** at limit **
  14  Prefactor     .78314        3.2530        .13366E-07   -.11782E-03
  15  Prefactor     5.3035        2.3162       -.79348E-07   -.39143E-04
  16  Prefactor     .10000E-03    8.9397       -.14882E-06** at limit **
  17  Prefactor     4.0914        18.331        .30704E-05    .15818E-04
  18  Prefactor     8.7620        6.8618        .19905E-05    .25403E-03
  19  Prefactor     9.1645        7.8313       -.44896E-06   -.55892E-04
  20  Prefactor     .10000E-03    6.2977       -.13244E-06** at limit **
  21  Normalizat    .94770        .14975       -.34498E-06    .64011E-05
  22  Prefactor     1.0866        .14890       -.54635E-07   -.73077E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.979765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0187409
  Prefactor  = 5.67133
  Prefactor  = 4.19967
  Prefactor  = 0.787776
  norm       = 19.878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86032
  Prefactor  = 0.0001
  Prefactor  = 0.783138
  Prefactor  = 5.30354
  Prefactor  = 0.0001
  Prefactor  = 4.09142
  Prefactor  = 8.76203
  Prefactor  = 9.16452
  Prefactor  = 0.0001
  Normalizat = 0.947704
  Prefactor  = 1.08656
 **********
 **   18 **HESSE 
 **********

 FCN=   8037.332     FROM HESSE     STATUS=OK           360 CALLS     2543 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .97977        2.8217        .24863E-03   -1.5510    
   3  Prefactor     .10000E-03    14.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    80.247        .20831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18741E-01    26.306        .11339       -1.5681    
   6  Prefactor     5.6713        5.4616        .84362E-03   -1.5232    
   7  Prefactor     4.1997        9.3325        .19652E-03   -1.5298    
   8  Prefactor     .78778        1.5624        .15480E-03   -1.5530    
   9  norm          19.878        8.3872        .89824E-04   -1.4816    
  10  Prefactor     .10000E-03    8.4217        .21373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8603        3.9069        .24448E-03   -1.5435    
  13  Prefactor     .10000E-03    17.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .78314        13.546        .28830E-02   -1.5531    
  15  Prefactor     5.3035        2.3113        .82527E-04   -1.5247    
  16  Prefactor     .10000E-03    9.2371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0914        18.300        .19954E-03   -1.5303    
  18  Prefactor     8.7620        6.8858        .13541E-03   -1.5116    
  19  Prefactor     9.1645        7.8382        .13237E-03   -1.5102    
  20  Prefactor     .10000E-03    6.3356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94770        .17675        .24345E-03   -.94804    
  22  Prefactor     1.0866        .17575        .24123E-03   -.89897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9853e-08
Minuit parameter uncertainties:
  1  0.000111483
  2  2.82205
  3  1.53751e-05
  4  8.22568e-05
  5  1.40114
  6  5.46207
  7  9.33569
  8  1.56252
  9  8.3877
  10  0.000104054
  11  9.68635e-05
  12  3.90747
  13  4.00065e-06
  14  6.51531
  15  2.31132
  16  9.27251e-05
  17  17.3146
  18  6.88644
  19  7.83903
  20  2.15797e-05
  21  0.176861
  22  0.175847
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.988e+01  8.388e+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.087e+00  1.758e-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:  9.477e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.05
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 7.16e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 1.19e-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) = 8037.21967037
delta logL = 0.112185913361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8037.21653288
delta logL = 0.115323409472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.227       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3832       1.0000          .0000       5.0000    
     3 'Normalizat'    .93119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0968       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=   8037.217     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      231 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.227        133.85        .22836E-02   -.20730E-03
   2  alpha         2.3833        3.5929        .32088        .40030E-04
   3  Normalizat    .93119        .12427        .45299E-01    .16341E-04
   4  Prefactor     1.0968        .98733E-01    .54323E-01    .79652E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 19.2267
  alpha      = 2.38326
  Normalizat = 0.931194
  Prefactor  = 1.09685
 **********
 **   18 **HESSE 
 **********

 FCN=   8037.217     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.227        8.2716        .91343E-04   -1.4831    
   2  alpha         2.3833        .45071        .12334E-01   -.46715E-01
   3  Normalizat    .93119        .16976        .24522E-03   -.95373    
   4  Prefactor     1.0968        .17653        .24018E-03   -.89567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63422e-10
Minuit parameter uncertainties:
  1  8.27211
  2  0.453194
  3  0.16986
  4  0.176624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714821': 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) = 8037.21653287
delta logL = 0.115323415353

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.923e+01  8.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.383e+00  4.532e-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.097e+00  1.766e-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:  9.312e-01  1.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.26
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.38 +/- 0.45
Photon Flux (Free Index): 8.54e-08 +/- 4.34e-08
Energy Flux (Free Index): 2.71e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/714821/cmap_HighResolution_243216001_243475201_4FGL_J1012.7+2439_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.16e-08', energy_flux2='2.71e-05', photon_flux_error='3.02e-08', dlogl='1.15e-01', energy_flux='2.82e-05', photon_flux2='8.54e-08', job_status='DONE', time_completed='2021-09-01 13:10:30.072353', photon_index_error2='0.45', photon_index2='2.38', ts='16.05', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='0.95', time_epoch_completed='1630527030.07', return_code='0', job_id='714821', GAL2='1.10', EG2='0.93', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.34e-08', ts2='16.26', photon_index='2.17' WHERE bin_id='15' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:10:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 714821: <4FGL_J1012.7+2439_daily_bin15> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin15> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:55:52 2021
Job was executed on host(s) <bullet0155>, 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:10:30 2021
Results reported at Wed Sep  1 13:10:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin15 153.199 24.6638 243216001 243475201 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 :                                   626.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            878 sec.

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

