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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin104
RA = 153.199, Dec = 24.6638
tmin = 266284801, tmax = 266544001
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='714929', job_status='RUN', time_executed='2021-09-01 12:57:53.563161', time_epoch_executed='1630526273.56' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714929/ft1_4FGL_J1012.7+2439_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714929/ft2_4FGL_J1012.7+2439_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714929/ft1_4FGL_J1012.7+2439_daily_bin104.fits outfile=/scratch/kocevski/714929/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin104.fits ra=153.199 dec=24.6638 rad=12.0 tmin=266284801.0 tmax=266544001.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.44
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714929/ft1_filtered_4FGL_J1012.7+2439_daily_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/714929/ft2_4FGL_J1012.7+2439_daily_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/714929/ltcube_266284801_266544001_4FGL_J1012.7+2439_daily_bin104.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/714929/ft2_4FGL_J1012.7+2439_daily_bin104.fits
.....................!
real 14.22
user 13.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714929/ft1_filtered_4FGL_J1012.7+2439_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/714929/ft2_4FGL_J1012.7+2439_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/714929/ltcube_266284801_266544001_4FGL_J1012.7+2439_daily_bin104.fits outfile=/scratch/kocevski/714929/expmap_266284801_266544001_4FGL_J1012.7+2439_daily_bin104.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/714929/ltcube_266284801_266544001_4FGL_J1012.7+2439_daily_bin104.fits
.....................!
real 192.00
user 185.96
sys 5.24

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/714929/ft1_filtered_4FGL_J1012.7+2439_daily_bin104.fits scfile=/scratch/kocevski/714929/ft2_4FGL_J1012.7+2439_daily_bin104.fits outfile=/scratch/kocevski/714929/cmap_266284801_266544001_4FGL_J1012.7+2439_daily_bin104.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714929/ft1_filtered_4FGL_J1012.7+2439_daily_bin104.fits scfile=/scratch/kocevski/714929/ft2_4FGL_J1012.7+2439_daily_bin104.fits outfile=/scratch/kocevski/714929/cmap_HighResolution_266284801_266544001_4FGL_J1012.7+2439_daily_bin104.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714929/ft1_filtered_4FGL_J1012.7+2439_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/714929/ft2_4FGL_J1012.7+2439_daily_bin104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714929/Model_4FGL_J1012.7+2439_daily_bin104.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/714929/ft1_filtered_4FGL_J1012.7+2439_daily_bin104.fits.....................!
real 73.02
user 71.53
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.250       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7788       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.602       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23529E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9506       1.0000         .10000E-03   10000.    
     9 'norm      '    13.181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9547       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4355       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2752       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2976       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0211       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92144       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=   8706.409     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2035 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.240        31.424       -.12856E-04   -.34347E-04
   2  Prefactor     2.7773        3.1547        .48802E-06    .99921E-04
   3  Prefactor     34.074        23.977       -.12491E-04   -.74551E-04
   4  Prefactor     .10000E-03    17.939       -.33050E-05** at limit **
   5  Prefactor     65.936        30.320       -.29830E-05   -.15289E-06
   6  Prefactor     14.601        6.1210        .35825E-06   -.69739E-04
   7  Prefactor     .10000E-03    2.9271       -.31761E-06** at limit **
   8  Prefactor     9.9500        2.6987        .10057E-06    .12366E-03
   9  norm          13.181        6.5239       -.21518E-06    .20130E-04
  10  Prefactor     1.8366        3.1079       -.11786E-05   -.21692E-03
  11  Prefactor     .10000E-03    11.004       -.32300E-05** at limit **
  12  Prefactor     1.6798        3.0588        .10180E-05   -.26719E-02
  13  Prefactor     .10000E-03    15.891        .56061E-05** at limit **
  14  Prefactor     .10000E-03    2.7343       -.58187E-07** at limit **
  15  Prefactor     3.8252        1.7456       -.10720E-06    .62920E-04
  16  Prefactor     1.9554        3.8896       -.41146E-06   -.24403E-02
  17  Prefactor     .10000E-03    8.1890        .17067E-05** at limit **
  18  Prefactor     8.4346        6.2611        .53456E-07    .37612E-04
  19  Prefactor     5.2715        10.877       -.16807E-05   -.16300E-04
  20  Prefactor     9.2956        10.006       -.36917E-06    .16420E-04
  21  Normalizat    1.0213        .15001        .27263E-05   -.49865E-04
  22  Prefactor     .92126        .14556       -.98296E-07    .17902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2405
  Prefactor  = 2.77725
  Prefactor  = 34.0741
  Prefactor  = 0.0001
  Prefactor  = 65.9358
  Prefactor  = 14.6006
  Prefactor  = 0.0001
  Prefactor  = 9.94995
  norm       = 13.1806
  Prefactor  = 1.83656
  Prefactor  = 0.0001
  Prefactor  = 1.67978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.8252
  Prefactor  = 1.95535
  Prefactor  = 0.0001
  Prefactor  = 8.43458
  Prefactor  = 5.27153
  Prefactor  = 9.29555
  Normalizat = 1.02128
  Prefactor  = 0.921257
 **********
 **   18 **HESSE 
 **********

 FCN=   8706.409     FROM HESSE     STATUS=OK           350 CALLS     2385 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.240        31.447        .81344E-04   -1.4723    
   2  Prefactor     2.7773        3.1459        .16985E-03   -1.5375    
   3  Prefactor     34.074        24.015        .68636E-04   -1.4540    
   4  Prefactor     .10000E-03    17.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.936        30.382        .49424E-04   -1.4082    
   6  Prefactor     14.601        6.1315        .52409E-03   -1.4944    
   7  Prefactor     .10000E-03    6.9961        .31023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.9500        2.7022        .76175E-04   -1.5077    
   9  norm          13.181        6.5251        .11033E-03   -1.4982    
  10  Prefactor     1.8366        3.1156        .18277E-03   -1.5437    
  11  Prefactor     .10000E-03    11.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6798        3.6764        .11323E-02   -1.5449    
  13  Prefactor     .10000E-03    15.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7633        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8252        1.7468        .80081E-04   -1.5317    
  16  Prefactor     1.9554        5.8193        .14839E-02   -1.5428    
  17  Prefactor     .10000E-03    8.1913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4346        6.3539        .13802E-03   -1.5127    
  19  Prefactor     5.2715        10.895        .17500E-03   -1.5249    
  20  Prefactor     9.2956        10.059        .13143E-03   -1.5098    
  21  Normalizat    1.0213        .17395        .24310E-03   -.92321    
  22  Prefactor     .92126        .16748        .26136E-03   -.95402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56168e-08
Minuit parameter uncertainties:
  1  31.4689
  2  3.14604
  3  24.0218
  4  7.74156e-06
  5  30.3887
  6  6.13173
  7  6.07482e-05
  8  2.70225
  9  6.52547
  10  3.11586
  11  2.58406e-05
  12  3.67693
  13  7.90638e-06
  14  1.14592e-05
  15  1.74682
  16  5.82096
  17  2.81501e-07
  18  6.3544
  19  10.8995
  20  10.0604
  21  0.174052
  22  0.167569
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.318e+01  6.525e+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:  9.213e-01  1.676e-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.021e+00  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.91
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 4.75e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 9.26e-06

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) = 8705.83206339
delta logL = 0.57739635856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8705.82976785
delta logL = 0.579691899533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.193       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7355       1.0000          .0000       5.0000    
     3 'Normalizat'    .99184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93925       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=   8705.830     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      306 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.184        6.5262        .59873E-03    .12712E-03
   2  alpha         2.7341        .56200        .13538E-01    .10810E-04
   3  Normalizat    .99197        .16473        .24605E-03   -.62839E-05
   4  Prefactor     .93931        .16759        .25903E-03   -.30020E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1837
  alpha      = 2.73405
  Normalizat = 0.991969
  Prefactor  = 0.939306
 **********
 **   18 **HESSE 
 **********

 FCN=   8705.830     FROM HESSE     STATUS=OK            27 CALLS      333 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.184        6.2591        .11975E-03   -1.5039    
   2  alpha         2.7341        .53892        .54150E-03    .93757E-01
   3  Normalizat    .99197        .16472        .98419E-05   -.93300    
   4  Prefactor     .93931        .16761        .10361E-04   -.94781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14004e-12
Minuit parameter uncertainties:
  1  6.25944
  2  0.543225
  3  0.164807
  4  0.167705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714929': 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) = 8705.82975547
delta logL = 0.579704273077

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.118e+01  6.259e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.734e+00  5.432e-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:  9.393e-01  1.677e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  9.920e-01  1.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.06
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.73 +/- 0.54
Photon Flux (Free Index): 7.35e-08 +/- 3.97e-08
Energy Flux (Free Index): 1.79e-05 +/- 8.02e-06

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/714929/cmap_HighResolution_266284801_266544001_4FGL_J1012.7+2439_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.75e-08', energy_flux2='1.79e-05', photon_flux_error='2.35e-08', dlogl='5.80e-01', energy_flux='1.87e-05', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-09-01 13:08:26.509935', photon_index_error2='0.54', photon_index2='2.73', ts='7.91', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='8.02e-06', EG='1.02', time_epoch_completed='1630526906.51', return_code='0', job_id='714929', GAL2='0.94', EG2='0.99', return_code2='0', energy_flux_error='9.26e-06', photon_flux_error2='3.97e-08', ts2='9.06', photon_index='2.17' WHERE bin_id='104' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:08:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 714929: <4FGL_J1012.7+2439_daily_bin104> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin104> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:56:01 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:56:14 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:56:14 2021
Terminated at Wed Sep  1 13:08:27 2021
Results reported at Wed Sep  1 13:08:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin104 153.199 24.6638 266284801 266544001 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 :                                   632.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            746 sec.

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

