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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin44
RA = 153.199, Dec = 24.6638
tmin = 250732801, tmax = 250992001
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='714864', job_status='RUN', time_executed='2021-09-01 12:59:39.268100', time_epoch_executed='1630526379.27' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='44'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714864/ft1_4FGL_J1012.7+2439_daily_bin44.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714864/ft2_4FGL_J1012.7+2439_daily_bin44.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714864/ft1_4FGL_J1012.7+2439_daily_bin44.fits outfile=/scratch/kocevski/714864/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin44.fits ra=153.199 dec=24.6638 rad=12.0 tmin=250732801.0 tmax=250992001.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.51
user 1.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714864/ft1_filtered_4FGL_J1012.7+2439_daily_bin44.fits" evtable="EVENTS" scfile=/scratch/kocevski/714864/ft2_4FGL_J1012.7+2439_daily_bin44.fits sctable="SC_DATA" outfile=/scratch/kocevski/714864/ltcube_250732801_250992001_4FGL_J1012.7+2439_daily_bin44.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/714864/ft2_4FGL_J1012.7+2439_daily_bin44.fits
.....................!
real 19.81
user 19.22
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714864/ft1_filtered_4FGL_J1012.7+2439_daily_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/714864/ft2_4FGL_J1012.7+2439_daily_bin44.fits sctable="SC_DATA" expcube=/scratch/kocevski/714864/ltcube_250732801_250992001_4FGL_J1012.7+2439_daily_bin44.fits outfile=/scratch/kocevski/714864/expmap_250732801_250992001_4FGL_J1012.7+2439_daily_bin44.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/714864/ltcube_250732801_250992001_4FGL_J1012.7+2439_daily_bin44.fits
.....................!
real 193.80
user 187.12
sys 5.33

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/714864/ft1_filtered_4FGL_J1012.7+2439_daily_bin44.fits scfile=/scratch/kocevski/714864/ft2_4FGL_J1012.7+2439_daily_bin44.fits outfile=/scratch/kocevski/714864/cmap_250732801_250992001_4FGL_J1012.7+2439_daily_bin44.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.65
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714864/ft1_filtered_4FGL_J1012.7+2439_daily_bin44.fits scfile=/scratch/kocevski/714864/ft2_4FGL_J1012.7+2439_daily_bin44.fits outfile=/scratch/kocevski/714864/cmap_HighResolution_250732801_250992001_4FGL_J1012.7+2439_daily_bin44.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714864/ft1_filtered_4FGL_J1012.7+2439_daily_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/714864/ft2_4FGL_J1012.7+2439_daily_bin44.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714864/Model_4FGL_J1012.7+2439_daily_bin44.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/714864/ft1_filtered_4FGL_J1012.7+2439_daily_bin44.fits.....................!
real 55.78
user 53.77
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2416       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4380       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0271       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.241       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24484       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5126       1.0000         .10000E-03   10000.    
     9 'norm      '    14.975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8114       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0926       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8355       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5920       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.317       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14994E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6830       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74287       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0817       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=   6234.087     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2385 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2235        87.863        .62544E-05   -.25304E-04
   2  Prefactor     3.4383        4.0980        .39953E-06   -.11415E-03
   3  Prefactor     3.0310        35.187        .83942E-05    .68253E-04
   4  Prefactor     .10000E-03    32.024        .13119E-05** at limit **
   5  Prefactor     13.234        19.080        .81318E-06   -.28911E-04
   6  Prefactor     .10000E-03    2.1192        .12047E-06** at limit **
   7  Prefactor     .22782        7.7989       -.33025E-05    .36333E-03
   8  Prefactor     2.5128        2.0063        .10172E-06   -.16172E-03
   9  norm          14.977        8.4818        .14872E-06   -.79754E-04
  10  Prefactor     .10000E-03    3.3260        .19910E-06** at limit **
  11  Prefactor     14.156        29.751        .96670E-06   -.22201E-04
  12  Prefactor     5.8123        4.7673       -.40836E-07   -.55062E-03
  13  Prefactor     7.0605        26.132        .53486E-05   -.65408E-04
  14  Prefactor     .10000E-03    3.0218        .26255E-06** at limit **
  15  Prefactor     2.8350        2.0963       -.27282E-06   -.10128E-02
  16  Prefactor     2.5806        8.1651        .10057E-04   -.13150E-03
  17  Prefactor     36.319        33.378        .36418E-06   -.23473E-04
  18  Prefactor     .10033E-03    6.5847        .24378E-05** at limit **
  19  Prefactor     .10000E-03    3.3598       -.12999E-06** at limit **
  20  Prefactor     7.6815        13.720       -.36020E-05   -.58051E-03
  21  Normalizat    .74281        .15949       -.33193E-05   -.66594E-03
  22  Prefactor     1.0818        .16070        .13016E-06   -.69345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.22348
  Prefactor  = 3.43829
  Prefactor  = 3.03097
  Prefactor  = 0.0001
  Prefactor  = 13.2341
  Prefactor  = 0.0001
  Prefactor  = 0.227817
  Prefactor  = 2.51281
  norm       = 14.9774
  Prefactor  = 0.0001
  Prefactor  = 14.1556
  Prefactor  = 5.81228
  Prefactor  = 7.06053
  Prefactor  = 0.0001
  Prefactor  = 2.83496
  Prefactor  = 2.58057
  Prefactor  = 36.3189
  Prefactor  = 0.00010033
  Prefactor  = 0.0001
  Prefactor  = 7.68153
  Normalizat = 0.742808
  Prefactor  = 1.08177
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.087     FROM HESSE     STATUS=OK           352 CALLS     2737 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2235        88.228        .16068E-03   -1.5209    
   2  Prefactor     3.4383        4.0885        .16658E-03   -1.5337    
   3  Prefactor     3.0310        34.934        .11662E-02   -1.5360    
   4  Prefactor     .10000E-03    32.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.234        19.089        .11008E-03   -1.4980    
   6  Prefactor     .10000E-03    2.1358        .11222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .22782        71.680        .39663E-02   -1.5613    
   8  Prefactor     2.5128        1.9984        .95642E-04   -1.5391    
   9  norm          14.977        8.4885        .10350E-03   -1.4934    
  10  Prefactor     .10000E-03    3.3796        .27867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.156        29.769        .10646E-03   -1.4955    
  12  Prefactor     5.8123        4.7463        .14717E-03   -1.5226    
  13  Prefactor     7.0605        26.138        .15063E-03   -1.5176    
  14  Prefactor     .10000E-03    3.0527        .13398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8350        2.0841        .92071E-04   -1.5371    
  16  Prefactor     2.5806        8.2851        .12672E-02   -1.5387    
  17  Prefactor     36.319        33.392        .66502E-04   -1.4502    
  18  Prefactor     .10033E-03    35.821        .34781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3671        .14131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6815        13.389        .72337E-03   -1.5154    
  21  Normalizat    .74281        .18289        .24549E-03   -1.0223    
  22  Prefactor     1.0818        .18456        .22149E-03   -.90051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5806e-08
Minuit parameter uncertainties:
  1  46.9487
  2  4.08884
  3  20.5949
  4  6.19743e-05
  5  19.0975
  6  1.11887e-05
  7  8.09008
  8  1.99848
  9  8.48915
  10  1.17187e-05
  11  29.8005
  12  4.7466
  13  26.1802
  14  2.15853e-05
  15  2.08413
  16  8.28876
  17  33.4092
  18  0.0068754
  19  1.4893e-05
  20  13.3946
  21  0.183045
  22  0.184672
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.498e+01  8.489e+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.082e+00  1.847e-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.428e-01  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.19
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.20e-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) = 6234.07225127
delta logL = 0.0146560144831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6234.07107527
delta logL = 0.0158320133514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.268       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2892       1.0000          .0000       5.0000    
     3 'Normalizat'    .73449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0860       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=   6234.071     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      237 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.268        8.1954        .10250E-03   -.64228E-03
   2  alpha         2.2886        .64530        .14262E-01   -.76653E-04
   3  Normalizat    .73416        .17680        .24674E-03    .63492E-04
   4  Prefactor     1.0862        .18398        .22104E-03    .63570E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.2681
  alpha      = 2.28865
  Normalizat = 0.73416
  Prefactor  = 1.08625
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.071     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.268        8.2066        .41001E-05   -1.4926    
   2  alpha         2.2886        .64515        .57048E-03   -.84641E-01
   3  Normalizat    .73416        .17694        .98696E-05   -1.0256    
   4  Prefactor     1.0862        .18408        .88418E-05   -.89907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87693e-10
Minuit parameter uncertainties:
  1  8.20724
  2  0.652589
  3  0.177079
  4  0.184191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714864': 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) = 6234.07107236
delta logL = 0.0158349299072

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.527e+01  8.207e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.289e+00  6.526e-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.086e+00  1.842e-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.342e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.20
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.29 +/- 0.65
Photon Flux (Free Index): 6.17e-08 +/- 5.30e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.15e-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/714864/cmap_HighResolution_250732801_250992001_4FGL_J1012.7+2439_daily_bin44.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='2.14e-05', photon_flux_error='3.06e-08', dlogl='1.58e-02', energy_flux='2.13e-05', photon_flux2='6.17e-08', job_status='DONE', time_completed='2021-09-01 13:09:01.845222', photon_index_error2='0.65', photon_index2='2.29', ts='8.19', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='0.74', time_epoch_completed='1630526941.85', return_code='0', job_id='714864', GAL2='1.09', EG2='0.73', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.30e-08', ts2='8.20', photon_index='2.17' WHERE bin_id='44' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:09:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 714864: <4FGL_J1012.7+2439_daily_bin44> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin44 153.199 24.6638 250732801 250992001 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 :                                   561.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            788 sec.

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

