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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin90
RA = 153.199, Dec = 24.6638
tmin = 262656001, tmax = 262915201
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='714915', job_status='RUN', time_executed='2021-09-01 12:59:58.479832', time_epoch_executed='1630526398.48' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714915/ft1_4FGL_J1012.7+2439_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714915/ft2_4FGL_J1012.7+2439_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714915/ft1_4FGL_J1012.7+2439_daily_bin90.fits outfile=/scratch/kocevski/714915/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin90.fits ra=153.199 dec=24.6638 rad=12.0 tmin=262656001.0 tmax=262915201.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.43
user 1.25
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714915/ft1_filtered_4FGL_J1012.7+2439_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/714915/ft2_4FGL_J1012.7+2439_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/714915/ltcube_262656001_262915201_4FGL_J1012.7+2439_daily_bin90.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/714915/ft2_4FGL_J1012.7+2439_daily_bin90.fits
.....................!
real 17.59
user 16.94
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714915/ft1_filtered_4FGL_J1012.7+2439_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/714915/ft2_4FGL_J1012.7+2439_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/714915/ltcube_262656001_262915201_4FGL_J1012.7+2439_daily_bin90.fits outfile=/scratch/kocevski/714915/expmap_262656001_262915201_4FGL_J1012.7+2439_daily_bin90.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/714915/ltcube_262656001_262915201_4FGL_J1012.7+2439_daily_bin90.fits
.....................!
real 199.30
user 194.16
sys 3.91

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714915/ft1_filtered_4FGL_J1012.7+2439_daily_bin90.fits scfile=/scratch/kocevski/714915/ft2_4FGL_J1012.7+2439_daily_bin90.fits outfile=/scratch/kocevski/714915/cmap_HighResolution_262656001_262915201_4FGL_J1012.7+2439_daily_bin90.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/714915/ft1_filtered_4FGL_J1012.7+2439_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/714915/ft2_4FGL_J1012.7+2439_daily_bin90.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714915/Model_4FGL_J1012.7+2439_daily_bin90.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/714915/ft1_filtered_4FGL_J1012.7+2439_daily_bin90.fits.....................!
real 53.57
user 52.15
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7914       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.353       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4696       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70151E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .97590       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18704E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.391       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54845E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2465       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.308       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1796       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5895.282     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2421 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.918        41.606         .0000       -.50150E-03
   2  Prefactor     1.7909        3.9560         .0000        .51341E-03
   3  Prefactor     .10111E-03    63.570         .0000    ** at limit **
   4  Prefactor     34.349        51.107         .0000        .99735E-03
   5  Prefactor     .10037E-03    28.941         .0000    ** at limit **
   6  Prefactor     5.4691        6.3631         .0000        .27058E-02
   7  Prefactor     .10120E-03    7.0544         .0000    ** at limit **
   8  Prefactor     .10000E-03    .69542         .0000    ** at limit **
   9  norm          .97566        11.140         .0000        .29776E-01
  10  Prefactor     .10000E-03    1.2581         .0000    ** at limit **
  11  Prefactor     .10086E-03    170.30         .0000    ** at limit **
  12  Prefactor     1.8954        3.4486         .0000        .47931E-03
  13  Prefactor     16.393        28.311         .0000        .16346E-04
  14  Prefactor     .10246E-03    5.0600         .0000    ** at limit **
  15  Prefactor     1.1437        1.7110         .0000        .61173E-03
  16  Prefactor     .10000E-03    3.7439         .0000    ** at limit **
  17  Prefactor     .10000E-03    8.5522         .0000    ** at limit **
  18  Prefactor     5.1466        7.5675         .0000        .36243E-02
  19  Prefactor     5.2475        6.0711         .0000        .53847E-02
  20  Prefactor     22.312        16.100         .0000        .64487E-03
  21  Normalizat    1.1797        .16839         .0000        .10467E-03
  22  Prefactor     .79864        .16740         .0000        .62578E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.9181
  Prefactor  = 1.79093
  Prefactor  = 0.000101107
  Prefactor  = 34.3489
  Prefactor  = 0.000100366
  Prefactor  = 5.46914
  Prefactor  = 0.000101201
  Prefactor  = 0.0001
  norm       = 0.975656
  Prefactor  = 0.0001
  Prefactor  = 0.000100858
  Prefactor  = 1.89541
  Prefactor  = 16.3929
  Prefactor  = 0.000102464
  Prefactor  = 1.14366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.14659
  Prefactor  = 5.24755
  Prefactor  = 22.3117
  Normalizat = 1.17965
  Prefactor  = 0.798644
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.282     FROM HESSE     STATUS=OK           346 CALLS     2767 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.918        41.602        .57928E-04   -1.4322    
   2  Prefactor     1.7909        3.9436        .21671E-03   -1.5440    
   3  Prefactor     .10111E-03    65.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.349        51.086        .68371E-04   -1.4535    
   5  Prefactor     .10037E-03    29.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4691        6.3644        .17181E-03   -1.5240    
   7  Prefactor     .10120E-03    30.552        .39228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .70095        .62495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .97566        5.7515        .59310E-01   -1.5510    
  10  Prefactor     .10000E-03    1.2675        .83980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10086E-03    173.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8954        3.4248        .18533E-03   -1.5433    
  13  Prefactor     16.393        28.310        .98926E-04   -1.4898    
  14  Prefactor     .10246E-03    42.172        .32766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1437        1.6510        .11686E-03   -1.5494    
  16  Prefactor     .10000E-03    3.7711        .14493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.5532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1466        7.5457        .17726E-03   -1.5254    
  19  Prefactor     5.2475        6.0702        .17549E-03   -1.5250    
  20  Prefactor     22.312        16.083        .84806E-04   -1.4763    
  21  Normalizat    1.1797        .18962        .21133E-03   -.87234    
  22  Prefactor     .79864        .19051        .26110E-03   -.99778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73419e-07
Minuit parameter uncertainties:
  1  41.6272
  2  3.94419
  3  0.0170276
  4  51.151
  5  0.00652634
  6  6.36521
  7  0.0121235
  8  3.51297e-06
  9  4.73818
  10  2.10254e-05
  11  0.0244312
  12  3.42513
  13  28.3334
  14  0.0204037
  15  1.6511
  16  1.89578e-06
  17  6.96082e-05
  18  7.54712
  19  6.0709
  20  16.0856
  21  0.189734
  22  0.190666
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  9.757e-01  4.738e+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:  7.986e-01  1.907e-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.180e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/714915/likelihoodResults_262656001_262915201_4FGL_J1012.7+2439_daily_bin90.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) = 5895.01007343
delta logL = 0.271807552544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5894.97271818
delta logL = 0.309162806803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8725       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3718       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80982       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=   5894.973     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      248 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8757        5.0218        .14006E-03   -.35089E-03
   2  alpha         3.3705        1.6088        .25534E-01   -.13413E-04
   3  Normalizat    1.1554        .18553        .21310E-03    .92168E-04
   4  Prefactor     .80978        .19081        .25931E-03    .66509E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87573
  alpha      = 3.37052
  Normalizat = 1.15537
  Prefactor  = 0.809785
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.973     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8757        4.0222        .56025E-05   -1.5434    
   2  alpha         3.3705        1.3338        .10214E-02    .35566    
   3  Normalizat    1.1554        .18574        .42619E-04   -.87993    
   4  Prefactor     .80978        .19087        .10372E-04   -.99369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09532e-11
Minuit parameter uncertainties:
  1  4.02276
  2  1.41895
  3  0.185848
  4  0.191023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714915': 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) = 5894.97271771
delta logL = 0.309163270334

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.876e+00  4.023e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  3.371e+00  1.419e+00  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.098e-01  1.910e-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.155e+00  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 153.199 24.664

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/714915/cmap_HighResolution_262656001_262915201_4FGL_J1012.7+2439_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-05', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2021-09-01 13:10:10.425909', job_id='714915', GAL2='0.81', fit_tolerance='1e-08', EG2='1.16', EG='1.18', time_epoch_completed='1630527010.43', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.09e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='90' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:10:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 714915: <4FGL_J1012.7+2439_daily_bin90> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin90 153.199 24.6638 262656001 262915201 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            851 sec.

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

