/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 3 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1012.7+2439_daily_bin264
RA = 153.199, Dec = 24.6638
tmin = 307756801, tmax = 308016001
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='716334', job_status='RUN', time_executed='2021-09-01 13:03:30.187383', time_epoch_executed='1630526610.19' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716334/ft1_4FGL_J1012.7+2439_daily_bin264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716334/ft2_4FGL_J1012.7+2439_daily_bin264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716334/ft1_4FGL_J1012.7+2439_daily_bin264.fits outfile=/scratch/kocevski/716334/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin264.fits ra=153.199 dec=24.6638 rad=12.0 tmin=307756801.0 tmax=308016001.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.59
user 3.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716334/ft1_filtered_4FGL_J1012.7+2439_daily_bin264.fits" evtable="EVENTS" scfile=/scratch/kocevski/716334/ft2_4FGL_J1012.7+2439_daily_bin264.fits sctable="SC_DATA" outfile=/scratch/kocevski/716334/ltcube_307756801_308016001_4FGL_J1012.7+2439_daily_bin264.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/716334/ft2_4FGL_J1012.7+2439_daily_bin264.fits
.....................!
real 17.90
user 17.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716334/ft1_filtered_4FGL_J1012.7+2439_daily_bin264.fits evtable="EVENTS" scfile=/scratch/kocevski/716334/ft2_4FGL_J1012.7+2439_daily_bin264.fits sctable="SC_DATA" expcube=/scratch/kocevski/716334/ltcube_307756801_308016001_4FGL_J1012.7+2439_daily_bin264.fits outfile=/scratch/kocevski/716334/expmap_307756801_308016001_4FGL_J1012.7+2439_daily_bin264.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/716334/ltcube_307756801_308016001_4FGL_J1012.7+2439_daily_bin264.fits
.....................!
real 196.67
user 191.08
sys 4.03

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/716334/ft1_filtered_4FGL_J1012.7+2439_daily_bin264.fits scfile=/scratch/kocevski/716334/ft2_4FGL_J1012.7+2439_daily_bin264.fits outfile=/scratch/kocevski/716334/cmap_307756801_308016001_4FGL_J1012.7+2439_daily_bin264.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/716334/ft1_filtered_4FGL_J1012.7+2439_daily_bin264.fits scfile=/scratch/kocevski/716334/ft2_4FGL_J1012.7+2439_daily_bin264.fits outfile=/scratch/kocevski/716334/cmap_HighResolution_307756801_308016001_4FGL_J1012.7+2439_daily_bin264.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716334/ft1_filtered_4FGL_J1012.7+2439_daily_bin264.fits evtable="EVENTS" scfile=/scratch/kocevski/716334/ft2_4FGL_J1012.7+2439_daily_bin264.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716334/Model_4FGL_J1012.7+2439_daily_bin264.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/716334/ft1_filtered_4FGL_J1012.7+2439_daily_bin264.fits.....................!
real 51.26
user 49.85
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.940       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7963       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.111       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55898       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8088       1.0000         .10000E-03   10000.    
     9 'norm      '    14.568       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43196E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14766E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1679       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.657       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5984       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0742       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98794       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=   5621.481     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2420 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.914        64.604        .19874E-05    .11684E-04
   2  Prefactor     1.8002        5.5727       -.59392E-06   -.26704E-04
   3  Prefactor     .10000E-03    13.714        .20992E-06** at limit **
   4  Prefactor     32.817        46.286        .34293E-06   -.37542E-05
   5  Prefactor     15.074        26.135       -.34948E-05   -.28204E-04
   6  Prefactor     .57033        3.9133        .26312E-06   -.18747E-03
   7  Prefactor     3.5198        7.2114       -.45573E-07   -.13545E-04
   8  Prefactor     1.8106        2.4764        .78754E-06    .36330E-04
   9  norm          14.570        9.4673       -.68210E-07   -.19555E-04
  10  Prefactor     .10000E-03    3.8335        .17409E-07** at limit **
  11  Prefactor     .10000E-03    320.41        .84977E-05** at limit **
  12  Prefactor     .10000E-03    4.5515        .54892E-06** at limit **
  13  Prefactor     .10000E-03    12.318        .22356E-06** at limit **
  14  Prefactor     .10000E-03    6.9200       -.35458E-06** at limit **
  15  Prefactor     2.1706        2.7638        .81576E-07    .11925E-03
  16  Prefactor     11.659        9.5179        .72860E-07    .43025E-04
  17  Prefactor     .10000E-03    9.0427        .12247E-07** at limit **
  18  Prefactor     5.5996        9.2967        .51051E-07    .14494E-04
  19  Prefactor     .10000E-03    4.6584       -.59239E-08** at limit **
  20  Prefactor     .10000E-03    5.7253        .29563E-09** at limit **
  21  Normalizat    1.0741        .19275       -.36229E-07   -.47617E-04
  22  Prefactor     .98767        .18667        .46998E-07   -.32418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.9138
  Prefactor  = 1.8002
  Prefactor  = 0.0001
  Prefactor  = 32.8173
  Prefactor  = 15.0742
  Prefactor  = 0.570325
  Prefactor  = 3.51985
  Prefactor  = 1.81058
  norm       = 14.5699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.17063
  Prefactor  = 11.6586
  Prefactor  = 0.0001
  Prefactor  = 5.59956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07414
  Prefactor  = 0.987672
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.481     FROM HESSE     STATUS=OK           350 CALLS     2770 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.914        64.676        .23831E-03   -1.4022    
   2  Prefactor     1.8002        5.5703        .29414E-03   -1.5440    
   3  Prefactor     .10000E-03    13.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.817        46.252        .69940E-04   -1.4562    
   5  Prefactor     15.074        26.211        .10303E-03   -1.4931    
   6  Prefactor     .57033        15.200        .27340E-02   -1.5557    
   7  Prefactor     3.5198        7.1872        .21561E-03   -1.5333    
   8  Prefactor     1.8106        2.4927        .66382E-03   -1.5439    
   9  norm          14.570        9.4468        .10494E-03   -1.4944    
  10  Prefactor     .10000E-03    3.9262        .28531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    324.88        .38795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.513        .29742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.197        .36146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1706        2.6799        .12876E-03   -1.5413    
  16  Prefactor     11.659        9.4677        .11733E-03   -1.5025    
  17  Prefactor     .10000E-03    9.0455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5996        9.2659        .16979E-03   -1.5235    
  19  Prefactor     .10000E-03    4.6675        .15804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7307        .17519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0741        .21843        .23990E-03   -.90586    
  22  Prefactor     .98767        .21593        .25429E-03   -.93142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94479e-10
Minuit parameter uncertainties:
  1  64.7404
  2  5.5719
  3  3.1269e-06
  4  46.3028
  5  26.2307
  6  5.88976
  7  7.18896
  8  2.49285
  9  9.44774
  10  9.98491e-06
  11  0.000413346
  12  0.000311628
  13  9.85533e-07
  14  0.000448016
  15  2.68009
  16  9.46896
  17  7.16717e-07
  18  9.26828
  19  1.34842e-06
  20  1.22491e-06
  21  0.218617
  22  0.216115
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.457e+01  9.448e+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.877e-01  2.161e-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.074e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.95
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 5.25e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.34e-05

TS (Fixed Index): 3.95
Ra Dec: 153.199 24.664
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/716334/likelihoodResults_307756801_308016001_4FGL_J1012.7+2439_daily_bin264.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5621.46247791
delta logL = 0.018269819645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5621.4606585
delta logL = 0.0200892325229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.104       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2971       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99238       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5621.461     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.104        9.7287        .10665E-03    .27193E-03
   2  alpha         2.2971        .65069        .14850E-01    .26049E-04
   3  Normalizat    1.0676        .21199        .24053E-03   -.22829E-04
   4  Prefactor     .99238        .21604        .25376E-03   -.33914E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1042
  alpha      = 2.29715
  Normalizat = 1.06763
  Prefactor  = 0.992378
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.461     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.104        9.6002        .42660E-05   -1.4957    
   2  alpha         2.2971        .64197        .59401E-03   -.81230E-01
   3  Normalizat    1.0676        .21209        .96211E-05   -.90798    
   4  Prefactor     .99238        .21614        .10151E-04   -.92984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11583e-11
Minuit parameter uncertainties:
  1  9.60123
  2  0.649294
  3  0.212261
  4  0.216329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716334': 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) = 5621.4606585
delta logL = 0.0200892334324

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.410e+01  9.601e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.297e+00  6.493e-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.924e-01  2.163e-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.068e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.30 +/- 0.65
Photon Flux (Free Index): 5.74e-08 +/- 4.38e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.34e-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/716334/cmap_HighResolution_307756801_308016001_4FGL_J1012.7+2439_daily_bin264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-05', comment='SUCCESS', photon_flux='5.25e-08', energy_flux2='1.97e-05', photon_flux_error='3.40e-08', dlogl='2.01e-02', energy_flux='2.07e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2021-09-01 13:13:24.343524', photon_index_error2='0.65', photon_index2='2.30', ts='3.95', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.34e-05', EG='1.07', time_epoch_completed='1630527204.34', return_code='0', job_id='716334', GAL2='0.99', EG2='1.07', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.38e-08', ts2='3.98', photon_index='2.17' WHERE bin_id='264' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:13:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 716334: <4FGL_J1012.7+2439_daily_bin264> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin264> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 13:00:35 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:03:13 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:03:13 2021
Terminated at Wed Sep  1 13:13:25 2021
Results reported at Wed Sep  1 13:13:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin264 153.199 24.6638 307756801 308016001 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 :                                   591.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             369.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            770 sec.

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

