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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin91
RA = 153.199, Dec = 24.6638
tmin = 262915201, tmax = 263174401
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='714916', job_status='RUN', time_executed='2021-09-01 13:00:24.411916', time_epoch_executed='1630526424.41' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714916

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714916/ft1_4FGL_J1012.7+2439_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714916/ft2_4FGL_J1012.7+2439_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714916/ft1_4FGL_J1012.7+2439_daily_bin91.fits outfile=/scratch/kocevski/714916/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin91.fits ra=153.199 dec=24.6638 rad=12.0 tmin=262915201.0 tmax=263174401.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.46
user 1.13
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714916/ft1_filtered_4FGL_J1012.7+2439_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/714916/ft2_4FGL_J1012.7+2439_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/714916/ltcube_262915201_263174401_4FGL_J1012.7+2439_daily_bin91.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/714916/ft2_4FGL_J1012.7+2439_daily_bin91.fits
.....................!
real 14.74
user 14.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714916/ft1_filtered_4FGL_J1012.7+2439_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/714916/ft2_4FGL_J1012.7+2439_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/714916/ltcube_262915201_263174401_4FGL_J1012.7+2439_daily_bin91.fits outfile=/scratch/kocevski/714916/expmap_262915201_263174401_4FGL_J1012.7+2439_daily_bin91.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/714916/ltcube_262915201_263174401_4FGL_J1012.7+2439_daily_bin91.fits
.....................!
real 192.34
user 185.57
sys 4.51

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/714916/ft1_filtered_4FGL_J1012.7+2439_daily_bin91.fits scfile=/scratch/kocevski/714916/ft2_4FGL_J1012.7+2439_daily_bin91.fits outfile=/scratch/kocevski/714916/cmap_262915201_263174401_4FGL_J1012.7+2439_daily_bin91.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714916/ft1_filtered_4FGL_J1012.7+2439_daily_bin91.fits scfile=/scratch/kocevski/714916/ft2_4FGL_J1012.7+2439_daily_bin91.fits outfile=/scratch/kocevski/714916/cmap_HighResolution_262915201_263174401_4FGL_J1012.7+2439_daily_bin91.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714916/ft1_filtered_4FGL_J1012.7+2439_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/714916/ft2_4FGL_J1012.7+2439_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714916/Model_4FGL_J1012.7+2439_daily_bin91.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/714916/ft1_filtered_4FGL_J1012.7+2439_daily_bin91.fits.....................!
real 44.93
user 43.15
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.865       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.339       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.630       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1861       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.194       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.553       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24251E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2414       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .94844E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.267       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54894E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2142       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97171       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93796       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=   4529.092     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2417 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.860        68.307       -.90208E-06   -.76381E-04
   2  Prefactor     .10000E-03    1.1913        .57083E-09** at limit **
   3  Prefactor     .10000E-03    42.645        .10828E-05** at limit **
   4  Prefactor     .10000E-03    18.150        .24392E-05** at limit **
   5  Prefactor     22.340        38.479        .12005E-05    .10896E-04
   6  Prefactor     16.630        7.5237        .21057E-06    .46786E-04
   7  Prefactor     1.1869        15.605        .34973E-05    .42333E-04
   8  Prefactor     .10000E-03    1.2443        .19245E-07** at limit **
   9  norm          17.193        10.509        .17709E-06   -.68833E-04
  10  Prefactor     .10000E-03    1.2931       -.35533E-07** at limit **
  11  Prefactor     46.545        40.800       -.15551E-05   -.26644E-03
  12  Prefactor     .10000E-03    2.0021       -.16850E-07** at limit **
  13  Prefactor     .10000E-03    18.982       -.27610E-05** at limit **
  14  Prefactor     .10004E-03    8.2926        .12584E-05** at limit **
  15  Prefactor     2.2406        2.7238       -.36363E-06   -.15682E-02
  16  Prefactor     .10029E-03    15.938        .48791E-05** at limit **
  17  Prefactor     11.262        27.878       -.10262E-05   -.83745E-04
  18  Prefactor     .10000E-03    6.6417        .54257E-06** at limit **
  19  Prefactor     .10003E-03    8.0734       -.15646E-05** at limit **
  20  Prefactor     2.2573        42.151       -.13727E-05   -.18566E-03
  21  Normalizat    .97173        .18795       -.21746E-05   -.79168E-03
  22  Prefactor     .93792        .19170        .74252E-06   -.59667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.8597
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 22.3396
  Prefactor  = 16.6303
  Prefactor  = 1.18694
  Prefactor  = 0.0001
  norm       = 17.1931
  Prefactor  = 0.0001
  Prefactor  = 46.5452
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100039
  Prefactor  = 2.24055
  Prefactor  = 0.000100287
  Prefactor  = 11.2619
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 2.25734
  Normalizat = 0.971734
  Prefactor  = 0.937924
 **********
 **   18 **HESSE 
 **********

 FCN=   4529.092     FROM HESSE     STATUS=OK           340 CALLS     2757 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.860        68.394        .54153E-04   -1.4225    
   2  Prefactor     .10000E-03    1.1936        .71729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.340        38.562        .84747E-04   -1.4762    
   6  Prefactor     16.630        7.5282        .98215E-04   -1.4892    
   7  Prefactor     1.1869        16.156        .41893E-03   -1.5490    
   8  Prefactor     .10000E-03    1.2896        .14653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.193        10.510        .96589E-04   -1.4878    
  10  Prefactor     .10000E-03    1.3048        .74703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     46.545        41.212        .29383E-03   -1.4342    
  12  Prefactor     .10000E-03    2.0284        .92966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    35.844        .34703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2406        2.6740        .11403E-03   -1.5409    
  16  Prefactor     .10029E-03    45.835        .39303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.262        27.910        .11935E-03   -1.5037    
  18  Prefactor     .10000E-03    6.6633        .16934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    27.119        .35646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2573        40.147        .27640E-03   -1.5407    
  21  Normalizat    .97173        .21731        .22511E-03   -.93983    
  22  Prefactor     .93792        .22229        .24297E-03   -.94828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61736e-09
Minuit parameter uncertainties:
  1  68.4918
  2  1.21219e-06
  3  0.000329083
  4  0.000431128
  5  38.6051
  6  7.52867
  7  8.7606
  8  2.49522e-06
  9  10.5111
  10  4.35879e-07
  11  41.2373
  12  1.26991e-06
  13  0.000490002
  14  0.0023554
  15  2.67419
  16  0.00726027
  17  27.9424
  18  1.33163e-05
  19  0.00166237
  20  19.054
  21  0.217511
  22  0.222506
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.719e+01  1.051e+01  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.379e-01  2.225e-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.717e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 6.19e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.49e-05

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) = 4529.09150875
delta logL = 0.000738606329833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4529.0913535
delta logL = 0.000893851070032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.013       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1923       1.0000          .0000       5.0000    
     3 'Normalizat'    .97064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93889       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=   4529.091     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      250 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.013        11.423        .97103E-04   -.38706E-03
   2  alpha         2.1923        .55502        .12140E-01   -.60939E-04
   3  Normalizat    .97062        .20914        .22522E-03    .29075E-04
   4  Prefactor     .93891        .22321        .24286E-03    .14062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.013
  alpha      = 2.1923
  Normalizat = 0.970622
  Prefactor  = 0.938906
 **********
 **   18 **HESSE 
 **********

 FCN=   4529.091     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.013        11.273        .38841E-05   -1.4883    
   2  alpha         2.1923        .54771        .48560E-03   -.12339    
   3  Normalizat    .97062        .20928        .90090E-05   -.94021    
   4  Prefactor     .93891        .22333        .97144E-05   -.94795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72789e-10
Minuit parameter uncertainties:
  1  11.274
  2  0.552257
  3  0.209459
  4  0.22355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714916': 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) = 4529.0913535
delta logL = 0.000893856758012

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.701e+01  1.127e+01  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.192e+00  5.523e-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.389e-01  2.235e-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.706e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.19 +/- 0.55
Photon Flux (Free Index): 6.26e-08 +/- 4.13e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.70e-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/714916/cmap_HighResolution_262915201_263174401_4FGL_J1012.7+2439_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.19e-08', energy_flux2='2.40e-05', photon_flux_error='3.79e-08', dlogl='8.94e-04', energy_flux='2.44e-05', photon_flux2='6.26e-08', job_status='DONE', time_completed='2021-09-01 13:08:37.798843', photon_index_error2='0.55', photon_index2='2.19', ts='4.48', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='0.97', time_epoch_completed='1630526917.8', return_code='0', job_id='714916', GAL2='0.94', EG2='0.97', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.13e-08', ts2='4.48', photon_index='2.17' WHERE bin_id='91' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:08:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 714916: <4FGL_J1012.7+2439_daily_bin91> in cluster <slac> Done

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

Your job looked like:

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

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

