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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin2
RA = 153.199, Dec = 24.6638
tmin = 239846401, tmax = 240105601
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='714800', job_status='RUN', time_executed='2021-09-01 12:57:50.456374', time_epoch_executed='1630526270.46' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714800/ft1_4FGL_J1012.7+2439_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714800/ft2_4FGL_J1012.7+2439_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714800/ft1_4FGL_J1012.7+2439_daily_bin2.fits outfile=/scratch/kocevski/714800/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin2.fits ra=153.199 dec=24.6638 rad=12.0 tmin=239846401.0 tmax=240105601.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.57
user 1.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714800/ft1_filtered_4FGL_J1012.7+2439_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/714800/ft2_4FGL_J1012.7+2439_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/714800/ltcube_239846401_240105601_4FGL_J1012.7+2439_daily_bin2.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/714800/ft2_4FGL_J1012.7+2439_daily_bin2.fits
.....................!
real 19.37
user 18.32
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714800/ft1_filtered_4FGL_J1012.7+2439_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/714800/ft2_4FGL_J1012.7+2439_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/714800/ltcube_239846401_240105601_4FGL_J1012.7+2439_daily_bin2.fits outfile=/scratch/kocevski/714800/expmap_239846401_240105601_4FGL_J1012.7+2439_daily_bin2.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/714800/ltcube_239846401_240105601_4FGL_J1012.7+2439_daily_bin2.fits
.....................!
real 194.59
user 188.03
sys 4.95

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/714800/ft1_filtered_4FGL_J1012.7+2439_daily_bin2.fits scfile=/scratch/kocevski/714800/ft2_4FGL_J1012.7+2439_daily_bin2.fits outfile=/scratch/kocevski/714800/cmap_239846401_240105601_4FGL_J1012.7+2439_daily_bin2.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714800/ft1_filtered_4FGL_J1012.7+2439_daily_bin2.fits scfile=/scratch/kocevski/714800/ft2_4FGL_J1012.7+2439_daily_bin2.fits outfile=/scratch/kocevski/714800/cmap_HighResolution_239846401_240105601_4FGL_J1012.7+2439_daily_bin2.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.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714800/ft1_filtered_4FGL_J1012.7+2439_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/714800/ft2_4FGL_J1012.7+2439_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714800/Model_4FGL_J1012.7+2439_daily_bin2.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/714800/ft1_filtered_4FGL_J1012.7+2439_daily_bin2.fits.....................!
real 51.50
user 49.77
sys 1.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.891       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.900       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34062       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13963E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    26.196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30430E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.033       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8176       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1779       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9583       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.596       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7974       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1342       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82478       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=   5597.742     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2431 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.348        .60321E-06** at limit **
   2  Prefactor     10.271        4.5730        .10942E-06   -.13300E-03
   3  Prefactor     19.289        18.503        .37716E-06   -.76965E-04
   4  Prefactor     40.829        72.182        .70395E-05   -.11740E-03
   5  Prefactor     51.890        35.446        .85413E-06   -.76569E-04
   6  Prefactor     .34740        3.3044        .33459E-06   -.13725E-03
   7  Prefactor     .10000E-03    4.0210        .21966E-06** at limit **
   8  Prefactor     .10224E-03    1.0584        .54943E-06** at limit **
   9  norm          26.197        9.7701        .16003E-06   -.12083E-03
  10  Prefactor     .10000E-03    2.3032       -.76678E-06** at limit **
  11  Prefactor     55.015        48.468        .19105E-05   -.89471E-04
  12  Prefactor     2.8220        4.8789        .21978E-05   -.85285E-03
  13  Prefactor     .10000E-03    20.996        .24772E-06** at limit **
  14  Prefactor     .10000E-03    2.1690        .75449E-07** at limit **
  15  Prefactor     .10000E-03    .76687        .13486E-06** at limit **
  16  Prefactor     2.1734        9.0266        .13263E-04    .84788E-04
  17  Prefactor     7.9218        40.301        .30902E-05   -.45764E-04
  18  Prefactor     29.604        15.271       -.28732E-05   -.15977E-03
  19  Prefactor     6.7963        8.6434        .21485E-06   -.46775E-04
  20  Prefactor     .10000E-03    6.8652       -.28828E-07** at limit **
  21  Normalizat    1.1343        .18790       -.33578E-05   -.56542E-03
  22  Prefactor     .82490        .18667        .29804E-06   -.52959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.2711
  Prefactor  = 19.2888
  Prefactor  = 40.8286
  Prefactor  = 51.8904
  Prefactor  = 0.3474
  Prefactor  = 0.0001
  Prefactor  = 0.000102242
  norm       = 26.1972
  Prefactor  = 0.0001
  Prefactor  = 55.0154
  Prefactor  = 2.82197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17344
  Prefactor  = 7.92184
  Prefactor  = 29.6038
  Prefactor  = 6.79631
  Prefactor  = 0.0001
  Normalizat = 1.13426
  Prefactor  = 0.824904
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.742     FROM HESSE     STATUS=OK           346 CALLS     2777 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.271        4.5746        .10334E-03   -1.5067    
   3  Prefactor     19.289        18.499        .91198E-04   -1.4829    
   4  Prefactor     40.829        72.241        .62686E-04   -1.4429    
   5  Prefactor     51.890        35.483        .55670E-04   -1.4266    
   6  Prefactor     .34740        19.402        .25510E-02   -1.5590    
   7  Prefactor     .10000E-03    4.0375        .14653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10224E-03    3.6230        .25386E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          26.197        9.7643        .78269E-04   -1.4684    
  10  Prefactor     .10000E-03    13.501        .20164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     55.015        48.536        .54071E-04   -1.4223    
  12  Prefactor     2.8220        4.6511        .98349E-03   -1.5372    
  13  Prefactor     .10000E-03    21.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1774        .10759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .78032        .63965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1734        9.0329        .13949E-02   -1.5413    
  17  Prefactor     7.9218        40.486        .14213E-03   -1.5145    
  18  Prefactor     29.604        15.289        .73646E-04   -1.4619    
  19  Prefactor     6.7963        8.6395        .15389E-03   -1.5187    
  20  Prefactor     .10000E-03    6.8743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1343        .21430        .22445E-03   -.88659    
  22  Prefactor     .82490        .21438        .27051E-03   -.98817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10471e-09
Minuit parameter uncertainties:
  1  1.93892e-05
  2  4.57479
  3  18.5043
  4  72.3963
  5  35.4972
  6  5.19345
  7  2.53392e-05
  8  0.00570047
  9  9.76493
  10  0.000108802
  11  48.5705
  12  4.65166
  13  3.8876e-05
  14  8.87929e-06
  15  6.81574e-06
  16  8.86383
  17  35.8558
  18  15.2912
  19  8.64113
  20  1.72393e-05
  21  0.214468
  22  0.214601
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.620e+01  9.765e+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:  8.249e-01  2.146e-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:  1.134e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.47
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 9.44e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 3.72e-05 +/- 1.39e-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) = 5597.69878083
delta logL = 0.0433664396442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5597.69759757
delta logL = 0.0445496965012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.505       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0502       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81899       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=   5597.698     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.505        12.705        .19453E-02   -.25645E-02
   2  alpha         2.0501        .47116        .26157        .61034E-05
   3  Normalizat    1.1440        .17908        .36433E-01    .82831E-05
   4  Prefactor     .81910        .18550        .43964E-01    .14681E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.5046
  alpha      = 2.05013
  Normalizat = 1.14402
  Prefactor  = 0.819098
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.698     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.505        10.009        .77813E-04   -1.4678    
   2  alpha         2.0501        .39594        .10777E-01   -.18093    
   3  Normalizat    1.1440        .20362        .22367E-03   -.88351    
   4  Prefactor     .81910        .21123        .27140E-03   -.99028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49254e-09
Minuit parameter uncertainties:
  1  10.01
  2  0.397672
  3  0.203756
  4  0.211438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714800': 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) = 5597.69759721
delta logL = 0.0445500548158

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.650e+01  1.001e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.050e+00  3.977e-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:  8.191e-01  2.114e-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:  1.144e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.50
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.05 +/- 0.40
Photon Flux (Free Index): 8.60e-08 +/- 4.24e-08
Energy Flux (Free Index): 3.91e-05 +/- 1.67e-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/714800/cmap_HighResolution_239846401_240105601_4FGL_J1012.7+2439_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.44e-08', energy_flux2='3.91e-05', photon_flux_error='3.52e-08', dlogl='4.46e-02', energy_flux='3.72e-05', photon_flux2='8.60e-08', job_status='DONE', time_completed='2021-09-01 13:07:05.453480', photon_index_error2='0.40', photon_index2='2.05', ts='24.47', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.13', time_epoch_completed='1630526825.45', return_code='0', job_id='714800', GAL2='0.82', EG2='1.14', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='4.24e-08', ts2='24.50', photon_index='2.17' WHERE bin_id='2' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:07:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 714800: <4FGL_J1012.7+2439_daily_bin2> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin2> 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) <bullet0280>, 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:07:07 2021
Results reported at Wed Sep  1 13:07:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin2 153.199 24.6638 239846401 240105601 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 :                                   552.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            676 sec.

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

