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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin66
RA = 153.199, Dec = 24.6638
tmin = 256435201, tmax = 256694401
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='714887', job_status='RUN', time_executed='2021-09-01 12:59:42.762329', time_epoch_executed='1630526382.76' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714887/ft1_4FGL_J1012.7+2439_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714887/ft2_4FGL_J1012.7+2439_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714887/ft1_4FGL_J1012.7+2439_daily_bin66.fits outfile=/scratch/kocevski/714887/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin66.fits ra=153.199 dec=24.6638 rad=12.0 tmin=256435201.0 tmax=256694401.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.77
user 1.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714887/ft2_4FGL_J1012.7+2439_daily_bin66.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/714887/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/714887/ft1_filtered_4FGL_J1012.7+2439_daily_bin66.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714887/ft1_filtered_4FGL_J1012.7+2439_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/714887/ft2_4FGL_J1012.7+2439_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/714887/ltcube_256435201_256694401_4FGL_J1012.7+2439_daily_bin66.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/714887/ft2_4FGL_J1012.7+2439_daily_bin66.fits
.....................!
real 20.25
user 19.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714887/ft1_filtered_4FGL_J1012.7+2439_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/714887/ft2_4FGL_J1012.7+2439_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/714887/ltcube_256435201_256694401_4FGL_J1012.7+2439_daily_bin66.fits outfile=/scratch/kocevski/714887/expmap_256435201_256694401_4FGL_J1012.7+2439_daily_bin66.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/714887/ltcube_256435201_256694401_4FGL_J1012.7+2439_daily_bin66.fits
.....................!
real 193.96
user 187.17
sys 4.83

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/714887/ft1_filtered_4FGL_J1012.7+2439_daily_bin66.fits scfile=/scratch/kocevski/714887/ft2_4FGL_J1012.7+2439_daily_bin66.fits outfile=/scratch/kocevski/714887/cmap_256435201_256694401_4FGL_J1012.7+2439_daily_bin66.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.58
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714887/ft1_filtered_4FGL_J1012.7+2439_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/714887/ft2_4FGL_J1012.7+2439_daily_bin66.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714887/Model_4FGL_J1012.7+2439_daily_bin66.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/714887/ft1_filtered_4FGL_J1012.7+2439_daily_bin66.fits.....................!
real 71.39
user 69.31
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11375E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2619       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21634E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5589       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9168       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6821       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6638       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.684       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2260       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6492       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5372       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1778       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86300       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=   8435.766     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2407 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.632        .44351E-06** at limit **
   2  Prefactor     2.2614        3.8099       -.27188E-06   -.11811E-03
   3  Prefactor     54.850        28.952       -.87255E-06    .17751E-04
   4  Prefactor     .10000E-03    13.541       -.44235E-08** at limit **
   5  Prefactor     30.499        25.487       -.67343E-05   -.31006E-04
   6  Prefactor     .10000E-03    4.7270        .26973E-07** at limit **
   7  Prefactor     .10004E-03    3.1279       -.60404E-06** at limit **
   8  Prefactor     2.5589        1.7548       -.33831E-07    .49319E-04
   9  norm          2.9163        3.5654       -.91330E-07   -.30897E-04
  10  Prefactor     .10000E-03    1.1754        .79204E-07** at limit **
  11  Prefactor     .10006E-03    20.534       -.87896E-06** at limit **
  12  Prefactor     6.6810        4.5741       -.11018E-05   -.49839E-04
  13  Prefactor     .10000E-03    18.833        .11584E-05** at limit **
  14  Prefactor     .99647        7.2080       -.57759E-06   -.22600E-03
  15  Prefactor     2.6634        2.0498       -.86606E-07    .49258E-04
  16  Prefactor     .10000E-03    3.2677       -.32093E-07** at limit **
  17  Prefactor     19.688        30.693        .43513E-06    .67346E-05
  18  Prefactor     6.2269        6.4038       -.20373E-06    .14564E-04
  19  Prefactor     2.6507        3.4378        .56965E-06   -.12601E-02
  20  Prefactor     4.5364        10.278       -.32240E-06   -.39812E-03
  21  Normalizat    1.1780        .15061        .12685E-05    .65940E-04
  22  Prefactor     .86300        .14533       -.44277E-07    .18545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.26142
  Prefactor  = 54.8505
  Prefactor  = 0.0001
  Prefactor  = 30.4991
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 2.55888
  norm       = 2.91631
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 6.68103
  Prefactor  = 0.0001
  Prefactor  = 0.996466
  Prefactor  = 2.66336
  Prefactor  = 0.0001
  Prefactor  = 19.6878
  Prefactor  = 6.22688
  Prefactor  = 2.65075
  Prefactor  = 4.53636
  Normalizat = 1.17795
  Prefactor  = 0.862997
 **********
 **   18 **HESSE 
 **********

 FCN=   8435.766     FROM HESSE     STATUS=OK           364 CALLS     2771 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2614        3.8147        .22144E-03   -1.5407    
   3  Prefactor     54.850        28.993        .54165E-04   -1.4225    
   4  Prefactor     .10000E-03    13.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.499        25.557        .72569E-04   -1.4603    
   6  Prefactor     .10000E-03    4.8303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    23.613        .31427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5589        1.7537        .96767E-04   -1.5388    
   9  norm          2.9163        3.5549        .18636E-03   -1.5366    
  10  Prefactor     .10000E-03    1.1833        .97064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    21.466        .13052       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6810        4.5869        .15523E-03   -1.5191    
  13  Prefactor     .10000E-03    18.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .99647        7.6918        .45640E-02   -1.5508    
  15  Prefactor     2.6634        2.0305        .10632E-03   -1.5382    
  16  Prefactor     .10000E-03    3.3033        .16195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.688        30.716        .90277E-04   -1.4820    
  18  Prefactor     6.2269        6.4026        .16088E-03   -1.5209    
  19  Prefactor     2.6507        6.6908        .12523E-02   -1.5382    
  20  Prefactor     4.5364        10.940        .94499E-03   -1.5282    
  21  Normalizat    1.1780        .17768        .22617E-03   -.87287    
  22  Prefactor     .86300        .17053        .26593E-03   -.97446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41761e-07
Minuit parameter uncertainties:
  1  2.29859e-06
  2  3.81506
  3  29.0007
  4  4.8591e-06
  5  25.5665
  6  1.35231e-06
  7  0.00200128
  8  1.75377
  9  3.55517
  10  8.71636e-06
  11  0.00230568
  12  4.58719
  13  7.50288e-07
  14  5.53771
  15  2.03057
  16  6.51254e-07
  17  30.741
  18  6.40333
  19  6.6927
  20  10.9451
  21  0.177773
  22  0.170638
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.916e+00  3.555e+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.630e-01  1.706e-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.178e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.05e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 4.14e-06 +/- 5.05e-06

TS (Fixed Index): 1.09
Ra Dec: 153.199 24.664
Photon Flux Upper Limit: 4.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/714887/likelihoodResults_256435201_256694401_4FGL_J1012.7+2439_daily_bin66.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) = 8435.52770644
delta logL = 0.238222117545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8435.51705415
delta logL = 0.248874407047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4644       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4502       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85914       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=   8435.517     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4636        2.8354        .65125E-02    .11831E-03
   2  alpha         1.4498        .65231        .47068       -.47087E-04
   3  Normalizat    1.1842        .14102        .51037E-01    .54897E-05
   4  Prefactor     .85912        .14503        .44482E-01    .21487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.46364
  alpha      = 1.44982
  Normalizat = 1.1842
  Prefactor  = 0.859123
 **********
 **   18 **HESSE 
 **********

 FCN=   8435.517     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4636        3.3935        .16162E-03   -1.5394    
   2  alpha         1.4498        .89394        .26110E-01   -.43353    
   3  Normalizat    1.1842        .16459        .22565E-03   -.87093    
   4  Prefactor     .85912        .16930        .26641E-03   -.97584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23095e-11
Minuit parameter uncertainties:
  1  3.39373
  2  0.918851
  3  0.164663
  4  0.169407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714887': 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) = 8435.51705409
delta logL = 0.248874471277

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.464e+00  3.394e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.450e+00  9.189e-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.591e-01  1.694e-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.184e+00  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.45 +/- 0.92
Photon Flux (Free Index): 5.68e-09 +/- 8.55e-09
Energy Flux (Free Index): 7.26e-06 +/- 1.09e-05

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/714887/cmap_HighResolution_256435201_256694401_4FGL_J1012.7+2439_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-05', comment='SUCCESS', photon_flux='1.05e-08', energy_flux2='7.26e-06', photon_flux_error='1.28e-08', dlogl='2.49e-01', energy_flux='4.14e-06', photon_flux2='5.68e-09', job_status='DONE', time_completed='2021-09-01 13:12:02.949786', photon_index_error2='0.92', photon_index2='1.45', ts='1.09', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='4.63e-08', energy_flux_error2='1.09e-05', EG='1.18', time_epoch_completed='1630527122.95', return_code='0', job_id='714887', GAL2='0.86', EG2='1.18', return_code2='0', energy_flux_error='5.05e-06', photon_flux_error2='8.55e-09', ts2='1.59', photon_index='2.17' WHERE bin_id='66' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:12:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 714887: <4FGL_J1012.7+2439_daily_bin66> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin66> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:55:57 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:55:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 12:55:59 2021
Terminated at Wed Sep  1 13:12:04 2021
Results reported at Wed Sep  1 13:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin66 153.199 24.6638 256435201 256694401 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 :                                   734.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

