/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 1 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 = 7423
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1012.7+2439_daily_bin483
RA = 153.199, Dec = 24.6638
tmin = 364521601, tmax = 364780801
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='716639', job_status='RUN', time_executed='2021-09-01 13:07:25.709462', time_epoch_executed='1630526845.71' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716639

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716639/ft1_4FGL_J1012.7+2439_daily_bin483.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716639/ft2_4FGL_J1012.7+2439_daily_bin483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716639/ft1_4FGL_J1012.7+2439_daily_bin483.fits outfile=/scratch/kocevski/716639/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin483.fits ra=153.199 dec=24.6638 rad=12.0 tmin=364521601.0 tmax=364780801.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.38
user 3.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716639/ft1_filtered_4FGL_J1012.7+2439_daily_bin483.fits" evtable="EVENTS" scfile=/scratch/kocevski/716639/ft2_4FGL_J1012.7+2439_daily_bin483.fits sctable="SC_DATA" outfile=/scratch/kocevski/716639/ltcube_364521601_364780801_4FGL_J1012.7+2439_daily_bin483.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/716639/ft2_4FGL_J1012.7+2439_daily_bin483.fits
.....................!
real 15.17
user 14.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716639/ft1_filtered_4FGL_J1012.7+2439_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/716639/ft2_4FGL_J1012.7+2439_daily_bin483.fits sctable="SC_DATA" expcube=/scratch/kocevski/716639/ltcube_364521601_364780801_4FGL_J1012.7+2439_daily_bin483.fits outfile=/scratch/kocevski/716639/expmap_364521601_364780801_4FGL_J1012.7+2439_daily_bin483.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/716639/ltcube_364521601_364780801_4FGL_J1012.7+2439_daily_bin483.fits
.....................!
real 194.67
user 188.88
sys 5.27

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/716639/ft1_filtered_4FGL_J1012.7+2439_daily_bin483.fits scfile=/scratch/kocevski/716639/ft2_4FGL_J1012.7+2439_daily_bin483.fits outfile=/scratch/kocevski/716639/cmap_364521601_364780801_4FGL_J1012.7+2439_daily_bin483.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.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716639/ft1_filtered_4FGL_J1012.7+2439_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/716639/ft2_4FGL_J1012.7+2439_daily_bin483.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716639/Model_4FGL_J1012.7+2439_daily_bin483.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/716639/ft1_filtered_4FGL_J1012.7+2439_daily_bin483.fits.....................!
real 48.25
user 46.86
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25632E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5381       1.0000         .10000E-03   10000.    
     9 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2046       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0923       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1880       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9481       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0849       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97092       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85256       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=   5053.973     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2352 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.206        .37119E-05** at limit **
   2  Prefactor     4.8045        4.3199       -.60650E-06   -.35298E-04
   3  Prefactor     .10000E-03    7.0776       -.17842E-05** at limit **
   4  Prefactor     .10000E-03    19.683       -.43232E-05** at limit **
   5  Prefactor     39.589        34.407       -.49511E-05   -.23539E-04
   6  Prefactor     .10000E-03    3.6225        .26210E-07** at limit **
   7  Prefactor     .10000E-03    2.5987       -.82838E-08** at limit **
   8  Prefactor     3.5379        2.2259       -.39875E-07    .44453E-04
   9  norm          .10000E-03    10.777       -.32824E-05** at limit **
  10  Prefactor     3.2046        4.2080       -.81367E-07   -.43780E-04
  11  Prefactor     21.228        20.641        .12187E-05    .17705E-04
  12  Prefactor     6.0922        6.3285       -.60591E-07   -.27577E-04
  13  Prefactor     .10000E-03    13.578        .36390E-06** at limit **
  14  Prefactor     .10000E-03    6.9913       -.47118E-06** at limit **
  15  Prefactor     4.1885        2.2987       -.55575E-07    .57307E-05
  16  Prefactor     2.9479        2.4891        .34847E-06   -.13668E-02
  17  Prefactor     .10000E-03    7.6316        .32647E-05** at limit **
  18  Prefactor     .10000E-03    17.359        .17350E-05** at limit **
  19  Prefactor     9.0849        10.820       -.13833E-06   -.79742E-05
  20  Prefactor     .10000E-03    4.4808       -.35363E-07** at limit **
  21  Normalizat    .97096        .17110        .67362E-06    .45639E-04
  22  Prefactor     .85252        .17361        .11608E-06    .78549E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.80449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.5894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.53791
  norm       = 0.0001
  Prefactor  = 3.20464
  Prefactor  = 21.2276
  Prefactor  = 6.09217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18845
  Prefactor  = 2.94791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.08488
  Prefactor  = 0.0001
  Normalizat = 0.97096
  Prefactor  = 0.852516
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.973     FROM HESSE     STATUS=OK           344 CALLS     2696 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8045        4.3293        .13462E-03   -1.5270    
   3  Prefactor     .10000E-03    7.0827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.589        34.535        .63700E-04   -1.4449    
   6  Prefactor     .10000E-03    18.516        .25544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6021        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5379        2.2232        .80626E-04   -1.5332    
   9  norm          .10000E-03    11.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2046        4.1796        .13202E-03   -1.5350    
  11  Prefactor     21.228        20.649        .86937E-04   -1.4786    
  12  Prefactor     6.0922        6.3088        .14327E-03   -1.5214    
  13  Prefactor     .10000E-03    13.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1885        2.3068        .76386E-04   -1.5299    
  16  Prefactor     2.9479        6.6565        .11827E-02   -1.5365    
  17  Prefactor     .10000E-03    7.6377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.0849        10.823        .13297E-03   -1.5105    
  20  Prefactor     .10000E-03    4.4852        .14698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97096        .20066        .21731E-03   -.94010    
  22  Prefactor     .85252        .20385        .24472E-03   -.97821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79113e-09
Minuit parameter uncertainties:
  1  2.81933e-05
  2  4.32958
  3  7.72597e-06
  4  3.03379e-05
  5  34.5525
  6  1.74634e-05
  7  7.7785e-07
  8  2.22327
  9  1.07527e-06
  10  4.17999
  11  20.6556
  12  6.30948
  13  8.80284e-08
  14  1.18673e-05
  15  2.30688
  16  6.65813
  17  1.62532e-05
  18  4.22269e-05
  19  10.825
  20  2.09926e-06
  21  0.200814
  22  0.204028
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.000e-04  1.075e-06  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.525e-01  2.040e-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:  9.710e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/716639/likelihoodResults_364521601_364780801_4FGL_J1012.7+2439_daily_bin483.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): 102
logL (Free Index) = 5053.97378246
delta logL = -0.000429615968642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5053.94911548
delta logL = 0.0242373704014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28372       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9380       1.0000          .0000       5.0000    
     3 'Normalizat'    .95982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85849       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=   5053.949     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      278 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28412        19.771        .25323E-01    .14158E-02
   2  alpha         3.9388        2.7215        .50000        .38766E-04
   3  Normalizat    .95983        .20143E-01    .45661E-01   -.79730E-06
   4  Prefactor     .85848        .21520E-01    .44474E-01    .40516E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.284116
  alpha      = 3.93882
  Normalizat = 0.959831
  Prefactor  = 0.858478
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.949     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      313 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28412        248.80        .12963E-02   -1.5601    
   2  alpha         3.9388        3.0038        .88076E-01    .61325    
   3  Normalizat    .95983        .90452E-01    .21845E-03   -.94389    
   4  Prefactor     .85848        .99324E-01    .24396E-03   -.97607    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.88105e-06
Minuit parameter uncertainties:
  1  16.883
  2  37.0032
  3  0.0904666
  4  0.0993451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716639': 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): 102
logL (Free Index) = 5053.94911528
delta logL = 0.0242375652078

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.841e-01  1.688e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  3.939e+00  3.700e+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.585e-01  9.935e-02  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:  9.598e-01  9.047e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/716639/cmap_HighResolution_364521601_364780801_4FGL_J1012.7+2439_daily_bin483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-01 13:17:01.471928', job_id='716639', GAL2='0.86', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1630527421.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.42e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='483' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:17:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 716639: <4FGL_J1012.7+2439_daily_bin483> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin483> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 13:00:54 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:07:16 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:07:16 2021
Terminated at Wed Sep  1 13:17:02 2021
Results reported at Wed Sep  1 13:17:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin483 153.199 24.6638 364521601 364780801 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 :                                   575.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             333.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            968 sec.

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

