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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin20
RA = 153.199, Dec = 24.6638
tmin = 244512001, tmax = 244771201
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='714829', job_status='RUN', time_executed='2021-09-01 12:58:20.205806', time_epoch_executed='1630526300.21' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714829

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714829/ft1_4FGL_J1012.7+2439_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714829/ft2_4FGL_J1012.7+2439_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714829/ft1_4FGL_J1012.7+2439_daily_bin20.fits outfile=/scratch/kocevski/714829/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin20.fits ra=153.199 dec=24.6638 rad=12.0 tmin=244512001.0 tmax=244771201.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.34
user 1.31
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714829/ft1_filtered_4FGL_J1012.7+2439_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/714829/ft2_4FGL_J1012.7+2439_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/714829/ltcube_244512001_244771201_4FGL_J1012.7+2439_daily_bin20.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/714829/ft2_4FGL_J1012.7+2439_daily_bin20.fits
.....................!
real 19.51
user 18.45
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714829/ft1_filtered_4FGL_J1012.7+2439_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/714829/ft2_4FGL_J1012.7+2439_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/714829/ltcube_244512001_244771201_4FGL_J1012.7+2439_daily_bin20.fits outfile=/scratch/kocevski/714829/expmap_244512001_244771201_4FGL_J1012.7+2439_daily_bin20.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/714829/ltcube_244512001_244771201_4FGL_J1012.7+2439_daily_bin20.fits
.....................!
real 194.13
user 187.06
sys 4.25

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/714829/ft1_filtered_4FGL_J1012.7+2439_daily_bin20.fits scfile=/scratch/kocevski/714829/ft2_4FGL_J1012.7+2439_daily_bin20.fits outfile=/scratch/kocevski/714829/cmap_244512001_244771201_4FGL_J1012.7+2439_daily_bin20.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714829/ft1_filtered_4FGL_J1012.7+2439_daily_bin20.fits scfile=/scratch/kocevski/714829/ft2_4FGL_J1012.7+2439_daily_bin20.fits outfile=/scratch/kocevski/714829/cmap_HighResolution_244512001_244771201_4FGL_J1012.7+2439_daily_bin20.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.63
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30618E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.769       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.419       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8797       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7112       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.439       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12602E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.656       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.645       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8693       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85112       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3596       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=   5601.483     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2374 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.045       -.12207E-07** at limit **
   2  Prefactor     .10000E-03    2.4059        .46374E-06** at limit **
   3  Prefactor     31.765        34.539       -.19078E-06   -.34252E-04
   4  Prefactor     15.351        54.823        .20031E-04    .19039E-04
   5  Prefactor     55.793        42.452        .26757E-05    .52223E-06
   6  Prefactor     1.8791        6.7837        .12944E-04   -.54027E-04
   7  Prefactor     2.7134        7.6543        .79887E-06   -.57281E-04
   8  Prefactor     .10000E-03    1.0288        .11354E-06** at limit **
   9  norm          18.437        9.3518       -.43655E-06   -.61558E-04
  10  Prefactor     .10000E-03    3.0639        .94891E-06** at limit **
  11  Prefactor     .10000E-03    12.533       -.37461E-06** at limit **
  12  Prefactor     .10000E-03    5.8131        .40213E-06** at limit **
  13  Prefactor     .10000E-03    22.651       -.35831E-06** at limit **
  14  Prefactor     .10000E-03    3.9120        .11339E-06** at limit **
  15  Prefactor     .10002E-03    1.0433        .10135E-05** at limit **
  16  Prefactor     10.652        10.950        .69482E-06   -.11280E-03
  17  Prefactor     .10000E-03    14.169        .79474E-06** at limit **
  18  Prefactor     27.645        14.563        .45428E-07   -.10543E-03
  19  Prefactor     6.8663        12.499        .92627E-06   -.25252E-04
  20  Prefactor     .10000E-03    6.1461       -.24774E-06** at limit **
  21  Normalizat    .85141        .19324       -.55722E-05   -.27169E-03
  22  Prefactor     1.3595        .19764        .13770E-05   -.22346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7645
  Prefactor  = 15.3508
  Prefactor  = 55.7928
  Prefactor  = 1.87911
  Prefactor  = 2.71342
  Prefactor  = 0.0001
  norm       = 18.437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 10.652
  Prefactor  = 0.0001
  Prefactor  = 27.6453
  Prefactor  = 6.86631
  Prefactor  = 0.0001
  Normalizat = 0.851406
  Prefactor  = 1.3595
 **********
 **   18 **HESSE 
 **********

 FCN=   5601.483     FROM HESSE     STATUS=OK           344 CALLS     2718 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.946        .22118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.765        34.364        .71090E-04   -1.4580    
   4  Prefactor     15.351        54.880        .10200E-03   -1.4924    
   5  Prefactor     55.793        42.436        .53697E-04   -1.4213    
   6  Prefactor     1.8791        6.8118        .15183E-02   -1.5434    
   7  Prefactor     2.7134        7.6125        .24736E-03   -1.5379    
   8  Prefactor     .10000E-03    1.0478        .74079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.437        9.3511        .93273E-04   -1.4849    
  10  Prefactor     .10000E-03    5.9453        .24948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9977        .35141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9412        .14447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    7.4083        .14516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.652        10.914        .12274E-03   -1.5055    
  17  Prefactor     .10000E-03    14.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.645        14.543        .76194E-04   -1.4656    
  19  Prefactor     6.8663        12.495        .15308E-03   -1.5184    
  20  Prefactor     .10000E-03    6.1503        .18119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85141        .22173        .26839E-03   -.98189    
  22  Prefactor     1.3595        .23137        .23825E-03   -.81555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42915e-09
Minuit parameter uncertainties:
  1  5.06906e-06
  2  0.000162339
  3  34.3854
  4  55.0612
  5  42.4592
  6  6.81464
  7  7.61522
  8  2.70542e-06
  9  9.35181
  10  7.69732e-05
  11  4.70982e-06
  12  3.49209e-05
  13  2.20981e-05
  14  1.05513e-05
  15  0.000713296
  16  10.9156
  17  2.41591e-05
  18  14.5453
  19  12.4998
  20  5.26843e-07
  21  0.22197
  22  0.231541
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.844e+01  9.352e+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.360e+00  2.315e-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:  8.514e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.98
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 6.64e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 2.62e-05 +/- 1.33e-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) = 5601.16242957
delta logL = 0.320405963963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5601.14125292
delta logL = 0.341582615247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.352       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7019       1.0000          .0000       5.0000    
     3 'Normalizat'    .87739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3473       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=   5601.141     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.347        11.217       -.41195E-05   -.13385E-03
   2  alpha         1.7016        .58726       -.59001E-04    .28257E-04
   3  Normalizat    .87738        .18008        .26475E-05    .46411E-03
   4  Prefactor     1.3472        .19570       -.25888E-06    .46120E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.3472
  alpha      = 1.70159
  Normalizat = 0.877383
  Prefactor  = 1.34717
 **********
 **   18 **HESSE 
 **********

 FCN=   5601.141     FROM HESSE     STATUS=OK            27 CALLS      238 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.347        11.022        .99047E-04   -1.4899    
   2  alpha         1.7016        .57700        .13451E-01   -.32506    
   3  Normalizat    .87738        .21057        .26500E-03   -.97259    
   4  Prefactor     1.3472        .22947        .23931E-03   -.81915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10135e-10
Minuit parameter uncertainties:
  1  11.0234
  2  0.582858
  3  0.210767
  4  0.229648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714829': 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) = 5601.14125239
delta logL = 0.341583145293

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.635e+01  1.102e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.702e+00  5.829e-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.347e+00  2.296e-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:  8.774e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.67
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.70 +/- 0.58
Photon Flux (Free Index): 4.16e-08 +/- 3.68e-08
Energy Flux (Free Index): 3.24e-05 +/- 2.18e-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/714829/cmap_HighResolution_244512001_244771201_4FGL_J1012.7+2439_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.64e-08', energy_flux2='3.24e-05', photon_flux_error='3.37e-08', dlogl='3.42e-01', energy_flux='2.62e-05', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-01 13:07:29.017226', photon_index_error2='0.58', photon_index2='1.70', ts='11.98', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='0.85', time_epoch_completed='1630526849.02', return_code='0', job_id='714829', GAL2='1.35', EG2='0.88', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='3.68e-08', ts2='12.67', photon_index='2.17' WHERE bin_id='20' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:07:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 714829: <4FGL_J1012.7+2439_daily_bin20> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin20 153.199 24.6638 244512001 244771201 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 :                                   543.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            696 sec.

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

