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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin28
RA = 153.199, Dec = 24.6638
tmin = 246585601, tmax = 246844801
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='714843', job_status='RUN', time_executed='2021-09-01 12:58:16.411386', time_epoch_executed='1630526296.41' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='28'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714843

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714843/ft1_4FGL_J1012.7+2439_daily_bin28.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714843/ft2_4FGL_J1012.7+2439_daily_bin28.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714843/ft1_4FGL_J1012.7+2439_daily_bin28.fits outfile=/scratch/kocevski/714843/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin28.fits ra=153.199 dec=24.6638 rad=12.0 tmin=246585601.0 tmax=246844801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.24
user 1.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714843/ft1_filtered_4FGL_J1012.7+2439_daily_bin28.fits" evtable="EVENTS" scfile=/scratch/kocevski/714843/ft2_4FGL_J1012.7+2439_daily_bin28.fits sctable="SC_DATA" outfile=/scratch/kocevski/714843/ltcube_246585601_246844801_4FGL_J1012.7+2439_daily_bin28.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/714843/ft2_4FGL_J1012.7+2439_daily_bin28.fits
.....................!
real 19.93
user 19.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714843/ft1_filtered_4FGL_J1012.7+2439_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/714843/ft2_4FGL_J1012.7+2439_daily_bin28.fits sctable="SC_DATA" expcube=/scratch/kocevski/714843/ltcube_246585601_246844801_4FGL_J1012.7+2439_daily_bin28.fits outfile=/scratch/kocevski/714843/expmap_246585601_246844801_4FGL_J1012.7+2439_daily_bin28.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/714843/ltcube_246585601_246844801_4FGL_J1012.7+2439_daily_bin28.fits
.....................!
real 192.91
user 187.28
sys 4.72

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/714843/ft1_filtered_4FGL_J1012.7+2439_daily_bin28.fits scfile=/scratch/kocevski/714843/ft2_4FGL_J1012.7+2439_daily_bin28.fits outfile=/scratch/kocevski/714843/cmap_246585601_246844801_4FGL_J1012.7+2439_daily_bin28.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714843/ft1_filtered_4FGL_J1012.7+2439_daily_bin28.fits scfile=/scratch/kocevski/714843/ft2_4FGL_J1012.7+2439_daily_bin28.fits outfile=/scratch/kocevski/714843/cmap_HighResolution_246585601_246844801_4FGL_J1012.7+2439_daily_bin28.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714843/ft1_filtered_4FGL_J1012.7+2439_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/714843/ft2_4FGL_J1012.7+2439_daily_bin28.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714843/Model_4FGL_J1012.7+2439_daily_bin28.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/714843/ft1_filtered_4FGL_J1012.7+2439_daily_bin28.fits.....................!
real 71.14
user 69.06
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2192       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.280       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4953       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.323       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8002       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2244       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1529       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87732       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=   8143.696     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2354 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.960        .67209E-05** at limit **
   2  Prefactor     3.2185        2.1554        .93105E-06   -.50226E-02
   3  Prefactor     31.280        25.499       -.76775E-06   -.35912E-04
   4  Prefactor     .10000E-03    23.592       -.28290E-05** at limit **
   5  Prefactor     .10000E-03    23.982       -.56249E-05** at limit **
   6  Prefactor     2.4958        5.7636        .10165E-06   -.23173E-03
   7  Prefactor     .10000E-03    4.6465       -.17140E-05** at limit **
   8  Prefactor     .10000E-03    .70209        .13590E-06** at limit **
   9  norm          10.521        7.4047       -.51552E-07   -.11786E-03
  10  Prefactor     .10000E-03    .96058       -.11185E-06** at limit **
  11  Prefactor     52.324        32.092        .82451E-06    .12553E-05
  12  Prefactor     .10000E-03    1.1758        .86210E-07** at limit **
  13  Prefactor     9.1380        24.773       -.21149E-05   -.37558E-04
  14  Prefactor     .10000E-03    7.2645        .69208E-05** at limit **
  15  Prefactor     1.8004        1.2824       -.39231E-08   -.52085E-03
  16  Prefactor     .10000E-03    4.3569        .11425E-05** at limit **
  17  Prefactor     .10000E-03    7.9778       -.75307E-05** at limit **
  18  Prefactor     14.857        8.3552       -.46533E-07   -.21281E-03
  19  Prefactor     .10000E-03    2.9198        .12078E-06** at limit **
  20  Prefactor     6.2228        10.914       -.69304E-07   -.93345E-04
  21  Normalizat    1.1529        .14882       -.22212E-06   -.28219E-03
  22  Prefactor     .87736        .14966       -.69338E-07   -.20532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 3.21852
  Prefactor  = 31.2804
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.49584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5213
  Prefactor  = 0.0001
  Prefactor  = 52.3241
  Prefactor  = 0.0001
  Prefactor  = 9.13804
  Prefactor  = 0.000100001
  Prefactor  = 1.8004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.8574
  Prefactor  = 0.0001
  Prefactor  = 6.22281
  Normalizat = 1.1529
  Prefactor  = 0.87736
 **********
 **   18 **HESSE 
 **********

 FCN=   8143.696     FROM HESSE     STATUS=OK           340 CALLS     2694 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2185        4.1107        .98049E-03   -1.5349    
   3  Prefactor     31.280        25.688        .71641E-04   -1.4589    
   4  Prefactor     .10000E-03    23.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4958        5.7643        .25874E-03   -1.5392    
   7  Prefactor     .10000E-03    4.6902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2865        .14671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.521        7.3993        .12352E-03   -1.5059    
  10  Prefactor     .10000E-03    .97134        .86349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.324        32.100        .55446E-04   -1.4260    
  12  Prefactor     .10000E-03    1.1821        .95552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1380        24.778        .13257E-03   -1.5103    
  14  Prefactor     .10000E-03    7.4205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8004        1.2872        .83278E-04   -1.5440    
  16  Prefactor     .10000E-03    4.4207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.857        8.3411        .10391E-03   -1.4937    
  19  Prefactor     .10000E-03    2.9366        .15059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2228        10.898        .16090E-03   -1.5209    
  21  Normalizat    1.1529        .17204        .22276E-03   -.88071    
  22  Prefactor     .87736        .17196        .25999E-03   -.96937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34e-08
Minuit parameter uncertainties:
  1  0.000291899
  2  4.11105
  3  25.6971
  4  0.00013304
  5  0.00026214
  6  5.76562
  7  3.26234e-05
  8  7.57628e-06
  9  7.39991
  10  4.79786e-07
  11  32.1107
  12  1.43013e-06
  13  24.8061
  14  0.000124527
  15  1.28719
  16  1.64864e-05
  17  0.000211924
  18  8.34173
  19  2.13771e-06
  20  10.9012
  21  0.172125
  22  0.172068
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.052e+01  7.400e+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.774e-01  1.721e-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.153e+00  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.07
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.05e-05

TS (Fixed Index): 3.07
Ra Dec: 153.199 24.664
Photon Flux Upper Limit: 9.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/714843/likelihoodResults_246585601_246844801_4FGL_J1012.7+2439_daily_bin28.txt

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) = 8143.69300202
delta logL = 0.00296557111596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8143.69270042
delta logL = 0.00326717327152

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8143.693     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      266 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.472        7.4282        .61854E-03    .95072E-04
   2  alpha         2.0878        .95015        .23557E-01   -.11403E-03
   3  Normalizat    1.1570        .17174        .22243E-03   -.29644E-05
   4  Prefactor     .87461        .17411        .26034E-03   -.92576E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.472
  alpha      = 2.08782
  Normalizat = 1.15699
  Prefactor  = 0.874615
 **********
 **   18 **HESSE 
 **********

 FCN=   8143.693     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.472        7.4696        .12371E-03   -1.5061    
   2  alpha         2.0878        .95404        .47113E-02   -.16563    
   3  Normalizat    1.1570        .17172        .88972E-05   -.87943    
   4  Prefactor     .87461        .17411        .10414E-04   -.97034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29451e-13
Minuit parameter uncertainties:
  1  7.47022
  2  0.979611
  3  0.171806
  4  0.174221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714843': 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) = 8143.6926928
delta logL = 0.0032747919422

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.047e+01  7.470e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.088e+00  9.796e-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.746e-01  1.742e-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.157e+00  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.09 +/- 0.98
Photon Flux (Free Index): 3.51e-08 +/- 4.15e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.15e-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/714843/cmap_HighResolution_246585601_246844801_4FGL_J1012.7+2439_daily_bin28.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='1.52e-05', photon_flux_error='2.67e-08', dlogl='3.27e-03', energy_flux='1.49e-05', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-09-01 13:10:24.299911', photon_index_error2='0.98', photon_index2='2.09', ts='3.07', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='9.32e-08', energy_flux_error2='1.15e-05', EG='1.15', time_epoch_completed='1630527024.3', return_code='0', job_id='714843', GAL2='0.87', EG2='1.16', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.15e-08', ts2='3.08', photon_index='2.17' WHERE bin_id='28' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:10:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 714843: <4FGL_J1012.7+2439_daily_bin28> in cluster <slac> Done

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

Your job looked like:

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

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

