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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin978
RA = 153.199, Dec = 24.6638
tmin = 492825601, tmax = 493084801
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='719444', job_status='RUN', time_executed='2021-09-01 13:17:02.363296', time_epoch_executed='1630527422.36' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719444

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719444/ft1_4FGL_J1012.7+2439_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719444/ft2_4FGL_J1012.7+2439_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719444/ft1_4FGL_J1012.7+2439_daily_bin978.fits outfile=/scratch/kocevski/719444/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin978.fits ra=153.199 dec=24.6638 rad=12.0 tmin=492825601.0 tmax=493084801.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.77
user 3.55
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/719444/ft1_filtered_4FGL_J1012.7+2439_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/719444/ft2_4FGL_J1012.7+2439_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/719444/ltcube_492825601_493084801_4FGL_J1012.7+2439_daily_bin978.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/719444/ft2_4FGL_J1012.7+2439_daily_bin978.fits
.....................!
real 15.00
user 14.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719444/ft1_filtered_4FGL_J1012.7+2439_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/719444/ft2_4FGL_J1012.7+2439_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/719444/ltcube_492825601_493084801_4FGL_J1012.7+2439_daily_bin978.fits outfile=/scratch/kocevski/719444/expmap_492825601_493084801_4FGL_J1012.7+2439_daily_bin978.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/719444/ltcube_492825601_493084801_4FGL_J1012.7+2439_daily_bin978.fits
.....................!
real 194.85
user 190.53
sys 3.85

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/719444/ft1_filtered_4FGL_J1012.7+2439_daily_bin978.fits scfile=/scratch/kocevski/719444/ft2_4FGL_J1012.7+2439_daily_bin978.fits outfile=/scratch/kocevski/719444/cmap_492825601_493084801_4FGL_J1012.7+2439_daily_bin978.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/719444/ft1_filtered_4FGL_J1012.7+2439_daily_bin978.fits scfile=/scratch/kocevski/719444/ft2_4FGL_J1012.7+2439_daily_bin978.fits outfile=/scratch/kocevski/719444/cmap_HighResolution_492825601_493084801_4FGL_J1012.7+2439_daily_bin978.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/719444/ft1_filtered_4FGL_J1012.7+2439_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/719444/ft2_4FGL_J1012.7+2439_daily_bin978.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/719444/Model_4FGL_J1012.7+2439_daily_bin978.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/719444/ft1_filtered_4FGL_J1012.7+2439_daily_bin978.fits....................!
real 50.70
user 49.40
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.322       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6324       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.6908       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8970       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2728       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.998       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.970       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3089       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1077       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96020       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=   5396.822     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2399 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.744        .44814E-06** at limit **
   2  Prefactor     .10000E-03    1.5607        .59058E-07** at limit **
   3  Prefactor     32.126        31.454       -.16901E-05   -.36220E-04
   4  Prefactor     .10000E-03    24.497       -.72376E-06** at limit **
   5  Prefactor     71.337        51.973        .13209E-04   -.21728E-04
   6  Prefactor     9.6319        6.9871        .15982E-06   -.19765E-03
   7  Prefactor     .10000E-03    4.0104        .50333E-07** at limit **
   8  Prefactor     .10000E-03    .80974        .22441E-06** at limit **
   9  norm          6.6911        7.0870        .19225E-06   -.17464E-03
  10  Prefactor     .10000E-03    2.0241        .30470E-06** at limit **
  11  Prefactor     .10000E-03    111.11        .91500E-05** at limit **
  12  Prefactor     2.8920        4.5025        .95352E-07   -.73545E-03
  13  Prefactor     .10000E-03    12.364        .48484E-07** at limit **
  14  Prefactor     2.9943        5.7104        .20780E-05   -.56663E-03
  15  Prefactor     .10000E-03    .67749        .86747E-08** at limit **
  16  Prefactor     .10000E-03    8.1048       -.10029E-06** at limit **
  17  Prefactor     1.3288        178.72        .58651E-04   -.68689E-04
  18  Prefactor     15.001        13.247       -.14443E-05   -.29621E-03
  19  Prefactor     10.970        8.8744        .75003E-07   -.68535E-04
  20  Prefactor     1.2991        74.608        .12939E-04   -.12028E-03
  21  Normalizat    1.1078        .19548       -.38249E-05   -.36009E-03
  22  Prefactor     .96005        .19362       -.23287E-06   -.45426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.1259
  Prefactor  = 0.0001
  Prefactor  = 71.3373
  Prefactor  = 9.63186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.69107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89196
  Prefactor  = 0.0001
  Prefactor  = 2.99428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3288
  Prefactor  = 15.0007
  Prefactor  = 10.9702
  Prefactor  = 1.29906
  Normalizat = 1.10785
  Prefactor  = 0.960049
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.822     FROM HESSE     STATUS=OK           342 CALLS     2741 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5718        .89608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.126        31.560        .70687E-04   -1.4574    
   4  Prefactor     .10000E-03    24.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     71.337        52.378        .47535E-04   -1.4017    
   6  Prefactor     9.6319        6.9758        .12912E-03   -1.5087    
   7  Prefactor     .10000E-03    4.0430        .14367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3434        .12820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.6911        7.0783        .15513E-03   -1.5191    
  10  Prefactor     .10000E-03    9.1221        .18276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    112.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8920        4.0796        .16836E-03   -1.5368    
  13  Prefactor     .10000E-03    12.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9943        5.6485        .22733E-03   -1.5362    
  15  Prefactor     .10000E-03    .68312        .58995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.1501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.3288        172.25        .39415E-03   -1.5477    
  18  Prefactor     15.001        12.768        .10342E-03   -1.4933    
  19  Prefactor     10.970        8.8749        .12096E-03   -1.5045    
  20  Prefactor     1.2991        69.095        .38552E-03   -1.5480    
  21  Normalizat    1.1078        .22652        .22677E-03   -.89500    
  22  Prefactor     .96005        .22621        .25824E-03   -.94073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69624e-09
Minuit parameter uncertainties:
  1  9.81168e-06
  2  7.86048e-06
  3  31.5763
  4  1.32596e-05
  5  52.4117
  6  6.97634
  7  1.22879e-05
  8  2.65168e-05
  9  7.07914
  10  0.000116447
  11  0.000248136
  12  4.07997
  13  4.42992e-06
  14  5.64948
  15  3.49279e-07
  16  5.13761e-05
  17  30.3461
  18  12.7702
  19  8.87598
  20  18.9707
  21  0.226723
  22  0.226437
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  6.691e+00  7.079e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.600e-01  2.264e-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.108e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 9.50e-06 +/- 1.00e-05

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

Saving results to:
/scratch/kocevski/719444/likelihoodResults_492825601_493084801_4FGL_J1012.7+2439_daily_bin978.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) = 5396.71949401
delta logL = 0.10251916206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5396.7139189
delta logL = 0.108094273058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0132       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5505       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96597       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=   5396.714     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0077        198.11        .40935E-02    .36415E-03
   2  alpha         2.5514        2.7470        .41162        .47636E-04
   3  Normalizat    1.0987        .71043E-01    .38062E-01    .93430E-04
   4  Prefactor     .96570        .76695E-01    .45840E-01   -.15432E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00767
  alpha      = 2.55144
  Normalizat = 1.09868
  Prefactor  = 0.965695
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.714     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0077        6.9288        .16374E-03   -1.5218    
   2  alpha         2.5514        .85977        .17725E-01    .20579E-01
   3  Normalizat    1.0987        .20957        .22755E-03   -.89794    
   4  Prefactor     .96570        .22397        .25754E-03   -.93882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53938e-10
Minuit parameter uncertainties:
  1  6.92976
  2  0.8777
  3  0.209731
  4  0.224184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719444': 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) = 5396.71391735
delta logL = 0.108095828654

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  6.008e+00  6.930e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.551e+00  8.777e-01  0.000e+00  5.000e+00 ( 1.000e+00)
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.657e-01  2.242e-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.099e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.55 +/- 0.88
Photon Flux (Free Index): 3.20e-08 +/- 3.29e-08
Energy Flux (Free Index): 8.83e-06 +/- 8.97e-06

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/719444/cmap_HighResolution_492825601_493084801_4FGL_J1012.7+2439_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-05', comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='8.83e-06', photon_flux_error='2.55e-08', dlogl='1.08e-01', energy_flux='9.50e-06', photon_flux2='3.20e-08', job_status='DONE', time_completed='2021-09-01 13:26:55.713344', photon_index_error2='0.88', photon_index2='2.55', ts='1.34', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.51e-08', energy_flux_error2='8.97e-06', EG='1.11', time_epoch_completed='1630528015.71', return_code='0', job_id='719444', GAL2='0.97', EG2='1.10', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='3.29e-08', ts2='1.55', photon_index='2.17' WHERE bin_id='978' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:26:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 719444: <4FGL_J1012.7+2439_daily_bin978> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin978> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 13:10:30 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:16:45 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:16:45 2021
Terminated at Wed Sep  1 13:26:56 2021
Results reported at Wed Sep  1 13:26:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin978 153.199 24.6638 492825601 493084801 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 :                                   592.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            986 sec.

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

