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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin49
RA = 153.199, Dec = 24.6638
tmin = 252028801, tmax = 252288001
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='714869', job_status='RUN', time_executed='2021-09-01 12:56:21.870948', time_epoch_executed='1630526181.87' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714869/ft1_4FGL_J1012.7+2439_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714869/ft2_4FGL_J1012.7+2439_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714869/ft1_4FGL_J1012.7+2439_daily_bin49.fits outfile=/scratch/kocevski/714869/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin49.fits ra=153.199 dec=24.6638 rad=12.0 tmin=252028801.0 tmax=252288001.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.45
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714869/ft1_filtered_4FGL_J1012.7+2439_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/714869/ft2_4FGL_J1012.7+2439_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/714869/ltcube_252028801_252288001_4FGL_J1012.7+2439_daily_bin49.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/714869/ft2_4FGL_J1012.7+2439_daily_bin49.fits
.....................!
real 13.85
user 13.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714869/ft1_filtered_4FGL_J1012.7+2439_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/714869/ft2_4FGL_J1012.7+2439_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/714869/ltcube_252028801_252288001_4FGL_J1012.7+2439_daily_bin49.fits outfile=/scratch/kocevski/714869/expmap_252028801_252288001_4FGL_J1012.7+2439_daily_bin49.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/714869/ltcube_252028801_252288001_4FGL_J1012.7+2439_daily_bin49.fits
.....................!
real 192.90
user 187.77
sys 4.37

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/714869/ft1_filtered_4FGL_J1012.7+2439_daily_bin49.fits scfile=/scratch/kocevski/714869/ft2_4FGL_J1012.7+2439_daily_bin49.fits outfile=/scratch/kocevski/714869/cmap_252028801_252288001_4FGL_J1012.7+2439_daily_bin49.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714869/ft1_filtered_4FGL_J1012.7+2439_daily_bin49.fits scfile=/scratch/kocevski/714869/ft2_4FGL_J1012.7+2439_daily_bin49.fits outfile=/scratch/kocevski/714869/cmap_HighResolution_252028801_252288001_4FGL_J1012.7+2439_daily_bin49.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=153.199 yref=24.6638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714869/ft1_filtered_4FGL_J1012.7+2439_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/714869/ft2_4FGL_J1012.7+2439_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714869/Model_4FGL_J1012.7+2439_daily_bin49.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/714869/ft1_filtered_4FGL_J1012.7+2439_daily_bin49.fits.....................!
real 69.42
user 67.15
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.093       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4677       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6148       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .98707       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5234       1.0000         .10000E-03   10000.    
     9 'norm      '    9.2025       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15607E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24559E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.360       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12374E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.210       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78792       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1156       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=   8159.291     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2406 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.050        57.611       -.88558E-07   -.68099E-04
   2  Prefactor     6.4664        3.8473        .92633E-07   -.34606E-04
   3  Prefactor     7.6258        18.262        .38674E-06    .35653E-05
   4  Prefactor     .10000E-03    27.606       -.14853E-06** at limit **
   5  Prefactor     52.508        30.626        .22201E-06   -.40172E-04
   6  Prefactor     .10000E-03    2.3791       -.18634E-07** at limit **
   7  Prefactor     .98684        6.6658        .41172E-05   -.46825E-04
   8  Prefactor     3.5230        1.8833        .18008E-07   -.13616E-03
   9  norm          9.1982        5.8882        .69377E-07   -.80388E-04
  10  Prefactor     .10000E-03    1.6335        .13118E-06** at limit **
  11  Prefactor     .10000E-03    38.396        .10789E-06** at limit **
  12  Prefactor     .10000E-03    1.7332        .14426E-06** at limit **
  13  Prefactor     29.398        41.931        .49488E-06    .55303E-04
  14  Prefactor     2.8062        4.6543        .68938E-06   -.96236E-04
  15  Prefactor     .10000E-03    .41962       -.18031E-08** at limit **
  16  Prefactor     .10002E-03    5.5660        .55526E-06** at limit **
  17  Prefactor     .10000E-03    29.432        .45319E-06** at limit **
  18  Prefactor     17.813        9.6691       -.69387E-07   -.17982E-03
  19  Prefactor     .10000E-03    4.1377        .92177E-07** at limit **
  20  Prefactor     14.223        13.174       -.47974E-07   -.10946E-03
  21  Normalizat    .78809        .14654       -.13677E-05   -.18624E-03
  22  Prefactor     1.1155        .15068        .30047E-06   -.24976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.0498
  Prefactor  = 6.46643
  Prefactor  = 7.62581
  Prefactor  = 0.0001
  Prefactor  = 52.508
  Prefactor  = 0.0001
  Prefactor  = 0.986839
  Prefactor  = 3.52305
  norm       = 9.19823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 29.3982
  Prefactor  = 2.80624
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 17.8133
  Prefactor  = 0.0001
  Prefactor  = 14.2228
  Normalizat = 0.78809
  Prefactor  = 1.11552
 **********
 **   18 **HESSE 
 **********

 FCN=   8159.291     FROM HESSE     STATUS=OK           348 CALLS     2754 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.050        57.567        .53092E-04   -1.4196    
   2  Prefactor     6.4664        3.8444        .13099E-03   -1.5199    
   3  Prefactor     7.6258        18.238        .14533E-03   -1.5156    
   4  Prefactor     .10000E-03    27.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.508        30.627        .55344E-04   -1.4257    
   6  Prefactor     .10000E-03    2.4054        .13598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .98684        6.6551        .45039E-03   -1.5509    
   8  Prefactor     3.5230        1.8813        .86921E-04   -1.5333    
   9  norm          9.1982        5.8866        .13212E-03   -1.5101    
  10  Prefactor     .10000E-03    3.4471        .21651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.9653        .22307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.398        41.882        .73940E-04   -1.4623    
  14  Prefactor     2.8062        4.6230        .23768E-03   -1.5373    
  15  Prefactor     .10000E-03    .42258        .57099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    46.390        .37734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.813        9.3878        .94944E-04   -1.4864    
  19  Prefactor     .10000E-03    4.1624        .17946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.223        12.906        .10625E-03   -1.4954    
  21  Normalizat    .78809        .16456        .25205E-03   -1.0051    
  22  Prefactor     1.1155        .17214        .23032E-03   -.88972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10467e-10
Minuit parameter uncertainties:
  1  57.6231
  2  3.84459
  3  18.2512
  4  9.21899e-06
  5  30.6357
  6  3.60625e-06
  7  5.12598
  8  1.88134
  9  5.88701
  10  7.60311e-05
  11  5.05154e-05
  12  0.000266312
  13  41.9237
  14  4.62359
  15  8.29964e-08
  16  0.00213754
  17  3.99876e-05
  18  9.38861
  19  3.63674e-06
  20  12.9089
  21  0.164662
  22  0.17223
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  9.198e+00  5.887e+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:  1.116e+00  1.722e-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.881e-01  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 8.35e-06

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) = 8159.17917305
delta logL = 0.111403585311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8159.17718229
delta logL = 0.113394337553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3245       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4585       1.0000          .0000       5.0000    
     3 'Normalizat'    .77615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1212       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=   8159.177     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      249 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3245        5.5956        .65622E-03   -.15920E-03
   2  alpha         2.4585        .58927        .16301E-01   -.52845E-05
   3  Normalizat    .77615        .16228        .25372E-03    .47720E-04
   4  Prefactor     1.1212        .17206        .22973E-03   -.74180E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.32449
  alpha      = 2.45852
  Normalizat = 0.776148
  Prefactor  = 1.12121
 **********
 **   18 **HESSE 
 **********

 FCN=   8159.177     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3245        5.5385        .26249E-04   -1.5097    
   2  alpha         2.4585        .58298        .65202E-03   -.16593E-01
   3  Normalizat    .77615        .16240        .10149E-04   -1.0096    
   4  Prefactor     1.1212        .17219        .91894E-05   -.88792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2252e-11
Minuit parameter uncertainties:
  1  5.53882
  2  0.588394
  3  0.162505
  4  0.172276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714869': 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) = 8159.17718229
delta logL = 0.11339433765

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  9.324e+00  5.539e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.459e+00  5.884e-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.121e+00  1.723e-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.761e-01  1.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.71
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.46 +/- 0.59
Photon Flux (Free Index): 4.49e-08 +/- 3.50e-08
Energy Flux (Free Index): 1.33e-05 +/- 7.78e-06

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/714869/cmap_HighResolution_252028801_252288001_4FGL_J1012.7+2439_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='1.33e-05', photon_flux_error='2.12e-08', dlogl='1.13e-01', energy_flux='1.31e-05', photon_flux2='4.49e-08', job_status='DONE', time_completed='2021-09-01 13:06:59.727277', photon_index_error2='0.59', photon_index2='2.46', ts='7.50', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='7.78e-06', EG='0.79', time_epoch_completed='1630526819.73', return_code='0', job_id='714869', GAL2='1.12', EG2='0.78', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='3.50e-08', ts2='7.71', photon_index='2.17' WHERE bin_id='49' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:06:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 714869: <4FGL_J1012.7+2439_daily_bin49> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin49 153.199 24.6638 252028801 252288001 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 :                                   634.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            665 sec.

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

