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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin76
RA = 153.199, Dec = 24.6638
tmin = 259027201, tmax = 259286401
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='714898', job_status='RUN', time_executed='2021-09-01 12:58:33.033429', time_epoch_executed='1630526313.03' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714898/ft1_4FGL_J1012.7+2439_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714898/ft2_4FGL_J1012.7+2439_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714898/ft1_4FGL_J1012.7+2439_daily_bin76.fits outfile=/scratch/kocevski/714898/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin76.fits ra=153.199 dec=24.6638 rad=12.0 tmin=259027201.0 tmax=259286401.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.12
user 1.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714898/ft1_filtered_4FGL_J1012.7+2439_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/714898/ft2_4FGL_J1012.7+2439_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/714898/ltcube_259027201_259286401_4FGL_J1012.7+2439_daily_bin76.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/714898/ft2_4FGL_J1012.7+2439_daily_bin76.fits
.....................!
real 17.00
user 15.94
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714898/ft1_filtered_4FGL_J1012.7+2439_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/714898/ft2_4FGL_J1012.7+2439_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/714898/ltcube_259027201_259286401_4FGL_J1012.7+2439_daily_bin76.fits outfile=/scratch/kocevski/714898/expmap_259027201_259286401_4FGL_J1012.7+2439_daily_bin76.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/714898/ltcube_259027201_259286401_4FGL_J1012.7+2439_daily_bin76.fits
.....................!
real 195.05
user 187.83
sys 5.07

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/714898/ft1_filtered_4FGL_J1012.7+2439_daily_bin76.fits scfile=/scratch/kocevski/714898/ft2_4FGL_J1012.7+2439_daily_bin76.fits outfile=/scratch/kocevski/714898/cmap_259027201_259286401_4FGL_J1012.7+2439_daily_bin76.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.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714898/ft1_filtered_4FGL_J1012.7+2439_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/714898/ft2_4FGL_J1012.7+2439_daily_bin76.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714898/Model_4FGL_J1012.7+2439_daily_bin76.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/714898/ft1_filtered_4FGL_J1012.7+2439_daily_bin76.fits.....................!
real 48.24
user 46.04
sys 1.72

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .73391E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    110.07       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.043       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6369       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1120       1.0000         .10000E-03   10000.    
     9 'norm      '    27.893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9413       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8322       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.044       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73715       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2774       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=   4914.985     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2411 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.872       -.23294E-07** at limit **
   2  Prefactor     1.4514        3.1400        .60090E-06    .19327E-03
   3  Prefactor     .42201E-03    30.924       -.37374E-05** at limit **
   4  Prefactor     110.15        74.935       -.66269E-07   -.51187E-04
   5  Prefactor     37.012        37.401        .13251E-05    .24191E-03
   6  Prefactor     7.6384        7.5992        .33754E-06    .18480E-03
   7  Prefactor     .10000E-03    4.1271       -.17908E-06** at limit **
   8  Prefactor     3.1127        2.6335        .78331E-07    .19027E-03
   9  norm          27.893        11.749        .14342E-06    .11682E-03
  10  Prefactor     5.8515        4.7961        .24289E-05    .41606E-03
  11  Prefactor     .10000E-03    27.485        .24178E-06** at limit **
  12  Prefactor     .10000E-03    1.8592       -.31236E-06** at limit **
  13  Prefactor     .10000E-03    27.098       -.42367E-06** at limit **
  14  Prefactor     .10000E-03    6.6008       -.11872E-06** at limit **
  15  Prefactor     2.9403        2.4461        .11065E-06    .15357E-04
  16  Prefactor     .10000E-03    20.867        .28031E-06** at limit **
  17  Prefactor     .10000E-03    174.77       -.15085E-05** at limit **
  18  Prefactor     8.8094        12.241        .33551E-06    .22566E-04
  19  Prefactor     19.046        13.139        .16552E-06    .43558E-04
  20  Prefactor     .10000E-03    31.626        .45176E-06** at limit **
  21  Normalizat    .73699        .19520       -.22422E-05    .23139E-03
  22  Prefactor     1.2775        .19911        .83644E-06    .10485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.4514
  Prefactor  = 0.000422009
  Prefactor  = 110.151
  Prefactor  = 37.0119
  Prefactor  = 7.63839
  Prefactor  = 0.0001
  Prefactor  = 3.11274
  norm       = 27.8928
  Prefactor  = 5.85153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.94034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.80936
  Prefactor  = 19.0456
  Prefactor  = 0.0001
  Normalizat = 0.736993
  Prefactor  = 1.27753
 **********
 **   18 **HESSE 
 **********

 FCN=   4914.985     FROM HESSE     STATUS=OK           348 CALLS     2759 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4514        3.1055        .17657E-03   -1.5467    
   3  Prefactor     .42201E-03    36.078        .98559E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     110.15        75.053        .19169E-03   -1.3605    
   5  Prefactor     37.012        37.734        .65849E-04   -1.4490    
   6  Prefactor     7.6384        7.5854        .14511E-03   -1.5155    
   7  Prefactor     .10000E-03    4.1391        .13914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1127        2.6254        .99961E-04   -1.5355    
   9  norm          27.893        11.753        .75856E-04   -1.4651    
  10  Prefactor     5.8515        4.8035        .66013E-03   -1.5224    
  11  Prefactor     .10000E-03    27.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8783        .93685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6731        .17568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9403        2.4390        .94792E-04   -1.5365    
  16  Prefactor     .10000E-03    21.398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    181.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.8094        12.164        .13487E-03   -1.5114    
  19  Prefactor     19.046        13.151        .91779E-04   -1.4835    
  20  Prefactor     .10000E-03    31.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73699        .22675        .27498E-03   -1.0245    
  22  Prefactor     1.2775        .23327        .23393E-03   -.83978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88434e-09
Minuit parameter uncertainties:
  1  4.88278e-07
  2  3.10589
  3  0.215698
  4  75.1178
  5  37.7588
  6  7.58632
  7  1.22611e-05
  8  2.62549
  9  11.7544
  10  4.8038
  11  0.000147813
  12  2.12227e-05
  13  0.000150807
  14  8.04743e-06
  15  2.43906
  16  4.43692e-05
  17  0.000105789
  18  12.1677
  19  13.1534
  20  2.14965e-05
  21  0.227038
  22  0.233459
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.789e+01  1.175e+01  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.278e+00  2.335e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  7.370e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.74
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 4.23e-08
Energy Flux (Fixed Index): 3.96e-05 +/- 1.67e-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) = 4914.98310989
delta logL = 0.00218873765789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4914.98294437
delta logL = 0.0023542559793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.893       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1367       1.0000          .0000       5.0000    
     3 'Normalizat'    .74017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2758       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=   4914.983     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      207 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.935        25.064        .18964E-02    .12895E-03
   2  alpha         2.1367        .88745        .28494        .14008E-04
   3  Normalizat    .74010        .19199        .62051E-01    .17919E-04
   4  Prefactor     1.2758        .20245        .52946E-01    .12977E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 27.9346
  alpha      = 2.13669
  Normalizat = 0.7401
  Prefactor  = 1.27575
 **********
 **   18 **HESSE 
 **********

 FCN=   4914.983     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.935        11.810        .37928E-03   -1.4650    
   2  alpha         2.1367        .47031        .11260E-01   -.14584    
   3  Normalizat    .74010        .21715        .27448E-03   -1.0233    
   4  Prefactor     1.2758        .23314        .23408E-03   -.84031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1605e-10
Minuit parameter uncertainties:
  1  11.8111
  2  0.473189
  3  0.217407
  4  0.233334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714898': 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) = 4914.98293813
delta logL = 0.00236049635987

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.793e+01  1.181e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.137e+00  4.732e-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.276e+00  2.333e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  7.401e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.70
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.14 +/- 0.47
Photon Flux (Free Index): 9.77e-08 +/- 5.70e-08
Energy Flux (Free Index): 4.00e-05 +/- 1.80e-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/714898/cmap_HighResolution_259027201_259286401_4FGL_J1012.7+2439_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='4.00e-05', photon_flux_error='4.23e-08', dlogl='2.36e-03', energy_flux='3.96e-05', photon_flux2='9.77e-08', job_status='DONE', time_completed='2021-09-01 13:07:15.155305', photon_index_error2='0.47', photon_index2='2.14', ts='19.74', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='0.74', time_epoch_completed='1630526835.16', return_code='0', job_id='714898', GAL2='1.28', EG2='0.74', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='5.70e-08', ts2='19.70', photon_index='2.17' WHERE bin_id='76' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:07:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 714898: <4FGL_J1012.7+2439_daily_bin76> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin76> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:55:58 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:56:00 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:00 2021
Terminated at Wed Sep  1 13:07:15 2021
Results reported at Wed Sep  1 13:07:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin76 153.199 24.6638 259027201 259286401 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 :                                   517.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            677 sec.

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

