/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 5 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1012.7+2439_daily_bin434
RA = 153.199, Dec = 24.6638
tmin = 351820801, tmax = 352080001
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='716572', job_status='RUN', time_executed='2021-09-01 13:06:47.335513', time_epoch_executed='1630526807.34' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716572/ft1_4FGL_J1012.7+2439_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716572/ft2_4FGL_J1012.7+2439_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716572/ft1_4FGL_J1012.7+2439_daily_bin434.fits outfile=/scratch/kocevski/716572/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin434.fits ra=153.199 dec=24.6638 rad=12.0 tmin=351820801.0 tmax=352080001.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.73
user 3.42
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716572/ft1_filtered_4FGL_J1012.7+2439_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/716572/ft2_4FGL_J1012.7+2439_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/716572/ltcube_351820801_352080001_4FGL_J1012.7+2439_daily_bin434.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/716572/ft2_4FGL_J1012.7+2439_daily_bin434.fits
.....................!
real 16.34
user 15.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716572/ft1_filtered_4FGL_J1012.7+2439_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/716572/ft2_4FGL_J1012.7+2439_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/716572/ltcube_351820801_352080001_4FGL_J1012.7+2439_daily_bin434.fits outfile=/scratch/kocevski/716572/expmap_351820801_352080001_4FGL_J1012.7+2439_daily_bin434.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/716572/ltcube_351820801_352080001_4FGL_J1012.7+2439_daily_bin434.fits
.....................!
real 193.43
user 186.46
sys 5.46

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/716572/ft1_filtered_4FGL_J1012.7+2439_daily_bin434.fits scfile=/scratch/kocevski/716572/ft2_4FGL_J1012.7+2439_daily_bin434.fits outfile=/scratch/kocevski/716572/cmap_351820801_352080001_4FGL_J1012.7+2439_daily_bin434.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716572/ft1_filtered_4FGL_J1012.7+2439_daily_bin434.fits scfile=/scratch/kocevski/716572/ft2_4FGL_J1012.7+2439_daily_bin434.fits outfile=/scratch/kocevski/716572/cmap_HighResolution_351820801_352080001_4FGL_J1012.7+2439_daily_bin434.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/716572/ft1_filtered_4FGL_J1012.7+2439_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/716572/ft2_4FGL_J1012.7+2439_daily_bin434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716572/Model_4FGL_J1012.7+2439_daily_bin434.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/716572/ft1_filtered_4FGL_J1012.7+2439_daily_bin434.fits.....................!
real 46.78
user 44.64
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.518       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.001       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.191       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.058       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92715       1.0000         .10000E-03   10000.    
     9 'norm      '    9.0425       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70612       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12314E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15331E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.663       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.211       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85748       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98724       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=   5044.959     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2378 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.518        40.969        .10497E-06   -.22694E-05
   2  Prefactor     .10000E-03    1.2361        .25487E-08** at limit **
   3  Prefactor     .10000E-03    7.3021        .97700E-06** at limit **
   4  Prefactor     53.003        46.484        .82893E-06    .62218E-04
   5  Prefactor     36.198        33.015        .26421E-05    .24674E-03
   6  Prefactor     .10000E-03    4.6525       -.52933E-07** at limit **
   7  Prefactor     10.058        8.8293        .24032E-06   -.23304E-03
   8  Prefactor     .92751        1.9459        .18497E-06   -.26705E-03
   9  norm          9.0422        7.8767        .91760E-06   -.77554E-03
  10  Prefactor     .70416        2.3416        .46253E-06   -.31603E-03
  11  Prefactor     .10000E-03    55.622        .13909E-07** at limit **
  12  Prefactor     .10000E-03    2.9450       -.11158E-06** at limit **
  13  Prefactor     .10000E-03    21.825        .33109E-07** at limit **
  14  Prefactor     .10000E-03    3.0948        .37879E-08** at limit **
  15  Prefactor     .10000E-03    1.7994        .64036E-07** at limit **
  16  Prefactor     .10000E-03    7.0193       -.94571E-06** at limit **
  17  Prefactor     38.212        44.806        .78665E-06    .27582E-04
  18  Prefactor     27.657        13.092        .25414E-06    .14463E-03
  19  Prefactor     16.209        14.882        .25691E-06    .18681E-04
  20  Prefactor     .10000E-03    11.062       -.72045E-07** at limit **
  21  Normalizat    .85751        .17033       -.74759E-06   -.31289E-05
  22  Prefactor     .98707        .17616       -.22496E-06   -.26757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.5177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.0035
  Prefactor  = 36.1979
  Prefactor  = 0.0001
  Prefactor  = 10.058
  Prefactor  = 0.927512
  norm       = 9.04224
  Prefactor  = 0.704163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2115
  Prefactor  = 27.6572
  Prefactor  = 16.2089
  Prefactor  = 0.0001
  Normalizat = 0.857512
  Prefactor  = 0.987072
 **********
 **   18 **HESSE 
 **********

 FCN=   5044.959     FROM HESSE     STATUS=OK           342 CALLS     2720 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.518        40.978        .68208E-04   -1.4532    
   2  Prefactor     .10000E-03    1.2511        .77110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.4398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     53.003        46.607        .55092E-04   -1.4251    
   5  Prefactor     36.198        34.405        .66618E-04   -1.4504    
   6  Prefactor     .10000E-03    4.7411        .14949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.058        8.8774        .63175E-03   -1.5074    
   8  Prefactor     .92751        1.9050        .13685E-03   -1.5515    
   9  norm          9.0422        9.1460        .66643E-03   -1.5106    
  10  Prefactor     .70416        2.2824        .18844E-03   -1.5540    
  11  Prefactor     .10000E-03    55.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7254        .22759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1078        .12196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5986        .18181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.212        44.869        .64840E-04   -1.4471    
  18  Prefactor     27.657        13.062        .76170E-04   -1.4656    
  19  Prefactor     16.209        14.881        .99475E-04   -1.4903    
  20  Prefactor     .10000E-03    11.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85751        .19570        .23035E-03   -.97970    
  22  Prefactor     .98707        .20498        .23374E-03   -.93162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60423e-10
Minuit parameter uncertainties:
  1  41.0116
  2  7.62552e-07
  3  8.84364e-05
  4  46.6389
  5  34.4236
  6  1.46962e-06
  7  8.87858
  8  1.90514
  9  9.14741
  10  2.28267
  11  2.24884e-05
  12  1.09484e-06
  13  8.9086e-06
  14  1.89621e-06
  15  1.27222e-05
  16  8.25149e-05
  17  44.9084
  18  13.0635
  19  14.8842
  20  1.09262e-05
  21  0.195858
  22  0.205142
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  9.042e+00  9.147e+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.871e-01  2.051e-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:  8.575e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.26e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.30e-05

TS (Fixed Index): 1.33
Ra Dec: 153.199 24.664
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/716572/likelihoodResults_351820801_352080001_4FGL_J1012.7+2439_daily_bin434.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) = 5044.35457996
delta logL = 0.604863481314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5044.3491101
delta logL = 0.610333339086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1781       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0174       1.0000          .0000       5.0000    
     3 'Normalizat'    .81685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0106       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5044.349     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      273 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1871        8.4401        .64558E-03   -.13273E-03
   2  alpha         3.0168        .87844        .13385E-01   -.80258E-05
   3  Normalizat    .81683        .19314        .23531E-03   -.65223E-05
   4  Prefactor     1.0106        .20580        .23113E-03   -.32464E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.18707
  alpha      = 3.01677
  Normalizat = 0.816833
  Prefactor  = 1.01059
 **********
 **   18 **HESSE 
 **********

 FCN=   5044.349     FROM HESSE     STATUS=OK            27 CALLS      300 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1871        7.5608        .25823E-04   -1.5172    
   2  alpha         3.0168        .78962        .53539E-03    .20821    
   3  Normalizat    .81683        .19319        .94124E-05   -.99447    
   4  Prefactor     1.0106        .20569        .92452E-05   -.92377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02276e-11
Minuit parameter uncertainties:
  1  7.56184
  2  0.804023
  3  0.19335
  4  0.205846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716572': 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) = 5044.3491094
delta logL = 0.610334047243

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  7.187e+00  7.562e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  3.017e+00  8.040e-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.011e+00  2.058e-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:  8.168e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 153.199 24.664
Photon Index (Free Index): 3.02 +/- 0.80
Photon Flux (Free Index): 6.68e-08 +/- 5.14e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.03e-05

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/716572/cmap_HighResolution_351820801_352080001_4FGL_J1012.7+2439_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-05', comment='SUCCESS', photon_flux='3.26e-08', energy_flux2='1.40e-05', photon_flux_error='3.30e-08', dlogl='6.10e-01', energy_flux='1.28e-05', photon_flux2='6.68e-08', job_status='DONE', time_completed='2021-09-01 13:16:24.782380', photon_index_error2='0.80', photon_index2='3.02', ts='1.33', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.03e-05', EG='0.86', time_epoch_completed='1630527384.78', return_code='0', job_id='716572', GAL2='1.01', EG2='0.82', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.14e-08', ts2='2.57', photon_index='2.17' WHERE bin_id='434' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:16:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 716572: <4FGL_J1012.7+2439_daily_bin434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin434 153.199 24.6638 351820801 352080001 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 :                                   571.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             358.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            936 sec.

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

