/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 5 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 = 7411
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1012.7+2439_daily_bin947
RA = 153.199, Dec = 24.6638
tmin = 484790401, tmax = 485049601
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='719400', job_status='RUN', time_executed='2021-09-01 13:15:37.812977', time_epoch_executed='1630527337.81' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719400/ft1_4FGL_J1012.7+2439_daily_bin947.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719400/ft2_4FGL_J1012.7+2439_daily_bin947.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719400/ft1_4FGL_J1012.7+2439_daily_bin947.fits outfile=/scratch/kocevski/719400/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin947.fits ra=153.199 dec=24.6638 rad=12.0 tmin=484790401.0 tmax=485049601.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 3.56
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/719400/ft1_filtered_4FGL_J1012.7+2439_daily_bin947.fits" evtable="EVENTS" scfile=/scratch/kocevski/719400/ft2_4FGL_J1012.7+2439_daily_bin947.fits sctable="SC_DATA" outfile=/scratch/kocevski/719400/ltcube_484790401_485049601_4FGL_J1012.7+2439_daily_bin947.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/719400/ft2_4FGL_J1012.7+2439_daily_bin947.fits
.....................!
real 17.76
user 17.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719400/ft1_filtered_4FGL_J1012.7+2439_daily_bin947.fits evtable="EVENTS" scfile=/scratch/kocevski/719400/ft2_4FGL_J1012.7+2439_daily_bin947.fits sctable="SC_DATA" expcube=/scratch/kocevski/719400/ltcube_484790401_485049601_4FGL_J1012.7+2439_daily_bin947.fits outfile=/scratch/kocevski/719400/expmap_484790401_485049601_4FGL_J1012.7+2439_daily_bin947.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/719400/ltcube_484790401_485049601_4FGL_J1012.7+2439_daily_bin947.fits
.....................!
real 192.53
user 187.27
sys 4.30

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/719400/ft1_filtered_4FGL_J1012.7+2439_daily_bin947.fits scfile=/scratch/kocevski/719400/ft2_4FGL_J1012.7+2439_daily_bin947.fits outfile=/scratch/kocevski/719400/cmap_484790401_485049601_4FGL_J1012.7+2439_daily_bin947.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=153.199 yref=24.6638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/719400/ft1_filtered_4FGL_J1012.7+2439_daily_bin947.fits scfile=/scratch/kocevski/719400/ft2_4FGL_J1012.7+2439_daily_bin947.fits outfile=/scratch/kocevski/719400/cmap_HighResolution_484790401_485049601_4FGL_J1012.7+2439_daily_bin947.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/719400/ft1_filtered_4FGL_J1012.7+2439_daily_bin947.fits evtable="EVENTS" scfile=/scratch/kocevski/719400/ft2_4FGL_J1012.7+2439_daily_bin947.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/719400/Model_4FGL_J1012.7+2439_daily_bin947.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/719400/ft1_filtered_4FGL_J1012.7+2439_daily_bin947.fits.....................!
real 49.26
user 47.68
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67928E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.383       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0814       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.112       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5134       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1366       1.0000         .10000E-03   10000.    
     9 'norm      '    25.305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54966       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.996       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4518       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.761       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.073       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0255       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85211       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=   5444.159     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2398 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.747        .21187E-06** at limit **
   2  Prefactor     .10000E-03    1.0281        .71105E-08** at limit **
   3  Prefactor     .10015E-03    20.208        .23313E-05** at limit **
   4  Prefactor     22.207        66.049       -.16955E-05   -.64105E-04
   5  Prefactor     4.0860        38.291       -.11132E-05   -.58322E-04
   6  Prefactor     13.110        7.2122       -.35893E-06   -.59849E-03
   7  Prefactor     4.5135        5.8613        .25661E-05   -.63353E-03
   8  Prefactor     1.1350        2.0762        .18561E-06   -.23536E-03
   9  norm          25.307        9.4275        .74971E-06    .81891E-03
  10  Prefactor     .55020        2.5046        .85353E-06   -.24027E-03
  11  Prefactor     .10000E-03    43.864       -.21891E-06** at limit **
  12  Prefactor     .10000E-03    1.6490       -.13064E-06** at limit **
  13  Prefactor     40.008        60.344       -.21982E-05   -.10551E-03
  14  Prefactor     .10000E-03    3.0446        .53549E-07** at limit **
  15  Prefactor     .10000E-03    1.0843        .95761E-07** at limit **
  16  Prefactor     .10000E-03    2.2986       -.35871E-07** at limit **
  17  Prefactor     .10000E-03    12.973        .39837E-07** at limit **
  18  Prefactor     7.4519        7.0611       -.52621E-06   -.38487E-03
  19  Prefactor     11.763        9.8393        .88989E-06    .43372E-03
  20  Prefactor     11.073        13.565       -.89416E-07   -.76626E-04
  21  Normalizat    1.0255        .16889       -.31445E-07   -.25469E-03
  22  Prefactor     .85206        .16962       -.44682E-06   -.15294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100153
  Prefactor  = 22.207
  Prefactor  = 4.08598
  Prefactor  = 13.1096
  Prefactor  = 4.51348
  Prefactor  = 1.13501
  norm       = 25.3068
  Prefactor  = 0.550199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.45189
  Prefactor  = 11.7627
  Prefactor  = 11.0728
  Normalizat = 1.02549
  Prefactor  = 0.852057
 **********
 **   18 **HESSE 
 **********

 FCN=   5444.159     FROM HESSE     STATUS=OK           342 CALLS     2740 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0315        .73055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10015E-03    88.416        .61847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.207        66.344        .84664E-04   -1.4765    
   5  Prefactor     4.0860        38.581        .19956E-03   -1.5304    
   6  Prefactor     13.110        7.2609        .11062E-03   -1.4984    
   7  Prefactor     4.5135        6.0307        .94753E-03   -1.5283    
   8  Prefactor     1.1350        2.0302        .13568E-03   -1.5495    
   9  norm          25.307        9.6904        .79633E-04   -1.4701    
  10  Prefactor     .55020        2.4987        .22283E-03   -1.5560    
  11  Prefactor     .10000E-03    44.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6603        .92354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.008        61.056        .63380E-04   -1.4442    
  14  Prefactor     .10000E-03    3.0815        .12568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7376        .14840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3035        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4519        7.1156        .14692E-03   -1.5162    
  19  Prefactor     11.763        9.9839        .11681E-03   -1.5022    
  20  Prefactor     11.073        13.566        .12040E-03   -1.5042    
  21  Normalizat    1.0255        .19407        .21720E-03   -.92181    
  22  Prefactor     .85206        .19578        .25015E-03   -.97837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88179e-09
Minuit parameter uncertainties:
  1  4.85736e-05
  2  4.99965e-07
  3  0.00735857
  4  66.5657
  5  25.132
  6  7.26138
  7  6.03151
  8  2.03037
  9  9.69097
  10  2.34497
  11  0.00010972
  12  6.43406e-06
  13  61.152
  14  5.07117e-07
  15  1.98209e-06
  16  2.59719e-06
  17  4.00424e-06
  18  7.11644
  19  9.98532
  20  13.5695
  21  0.194203
  22  0.195945
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.531e+01  9.691e+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.521e-01  1.959e-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.025e+00  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.64
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 9.12e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 1.38e-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) = 5444.08196068
delta logL = 0.0768044322222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5444.08063072
delta logL = 0.0781343925455

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5444.081     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      220 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.514        12.088        .19827E-02   -.16233E-02
   2  alpha         2.0085        .45365        .26424        .27321E-05
   3  Normalizat    1.0376        .16166        .41479E-01    .84959E-05
   4  Prefactor     .84522        .16999        .44302E-01    .13876E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.5141
  alpha      = 2.00849
  Normalizat = 1.03759
  Prefactor  = 0.845224
 **********
 **   18 **HESSE 
 **********

 FCN=   5444.081     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.514        10.048        .79307E-04   -1.4697    
   2  alpha         2.0085        .40409        .10836E-01   -.19789    
   3  Normalizat    1.0376        .18550        .21619E-03   -.91782    
   4  Prefactor     .84522        .19511        .25113E-03   -.98082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05024e-09
Minuit parameter uncertainties:
  1  10.0488
  2  0.405942
  3  0.18562
  4  0.195269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719400': 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) = 5444.08063034
delta logL = 0.0781347768634

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.551e+01  1.005e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.008e+00  4.059e-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.452e-01  1.953e-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.038e+00  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.81
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.01 +/- 0.41
Photon Flux (Free Index): 8.00e-08 +/- 4.19e-08
Energy Flux (Free Index): 3.85e-05 +/- 1.70e-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/719400/cmap_HighResolution_484790401_485049601_4FGL_J1012.7+2439_daily_bin947.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.12e-08', energy_flux2='3.85e-05', photon_flux_error='3.49e-08', dlogl='7.81e-02', energy_flux='3.59e-05', photon_flux2='8.00e-08', job_status='DONE', time_completed='2021-09-01 13:24:45.011586', photon_index_error2='0.41', photon_index2='2.01', ts='21.64', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='1.03', time_epoch_completed='1630527885.01', return_code='0', job_id='719400', GAL2='0.85', EG2='1.04', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='4.19e-08', ts2='21.81', photon_index='2.17' WHERE bin_id='947' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:24:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 719400: <4FGL_J1012.7+2439_daily_bin947> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin947> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 13:10:27 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:15:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 13:15:22 2021
Terminated at Wed Sep  1 13:24:45 2021
Results reported at Wed Sep  1 13:24:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin947 153.199 24.6638 484790401 485049601 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 :                                   545.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             376.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            858 sec.

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

