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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin331
RA = 153.199, Dec = 24.6638
tmin = 325123201, tmax = 325382401
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='716427', job_status='RUN', time_executed='2021-09-01 13:04:35.742592', time_epoch_executed='1630526675.74' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716427

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716427/ft1_4FGL_J1012.7+2439_daily_bin331.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716427/ft2_4FGL_J1012.7+2439_daily_bin331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716427/ft1_4FGL_J1012.7+2439_daily_bin331.fits outfile=/scratch/kocevski/716427/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin331.fits ra=153.199 dec=24.6638 rad=12.0 tmin=325123201.0 tmax=325382401.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.62
user 3.41
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716427/ft1_filtered_4FGL_J1012.7+2439_daily_bin331.fits" evtable="EVENTS" scfile=/scratch/kocevski/716427/ft2_4FGL_J1012.7+2439_daily_bin331.fits sctable="SC_DATA" outfile=/scratch/kocevski/716427/ltcube_325123201_325382401_4FGL_J1012.7+2439_daily_bin331.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/716427/ft2_4FGL_J1012.7+2439_daily_bin331.fits
.....................!
real 13.87
user 13.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716427/ft1_filtered_4FGL_J1012.7+2439_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/716427/ft2_4FGL_J1012.7+2439_daily_bin331.fits sctable="SC_DATA" expcube=/scratch/kocevski/716427/ltcube_325123201_325382401_4FGL_J1012.7+2439_daily_bin331.fits outfile=/scratch/kocevski/716427/expmap_325123201_325382401_4FGL_J1012.7+2439_daily_bin331.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/716427/ltcube_325123201_325382401_4FGL_J1012.7+2439_daily_bin331.fits
.....................!
real 191.57
user 186.34
sys 4.05

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/716427/ft1_filtered_4FGL_J1012.7+2439_daily_bin331.fits scfile=/scratch/kocevski/716427/ft2_4FGL_J1012.7+2439_daily_bin331.fits outfile=/scratch/kocevski/716427/cmap_325123201_325382401_4FGL_J1012.7+2439_daily_bin331.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 1.00
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716427/ft1_filtered_4FGL_J1012.7+2439_daily_bin331.fits scfile=/scratch/kocevski/716427/ft2_4FGL_J1012.7+2439_daily_bin331.fits outfile=/scratch/kocevski/716427/cmap_HighResolution_325123201_325382401_4FGL_J1012.7+2439_daily_bin331.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.81
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    251.58       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8769       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.0718       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.457       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11469E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53898       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.370       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0456       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .80551E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20947E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.502       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13353E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70656       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2714       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=   5622.125     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2366 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     251.56        101.26       -.13569E-04    .36511E-05
   2  Prefactor     3.8781        4.5890       -.86581E-06   -.27283E-03
   3  Prefactor     .10000E-03    7.5857       -.29437E-06** at limit **
   4  Prefactor     .10000E-03    22.597       -.24380E-04** at limit **
   5  Prefactor     28.865        40.151        .26135E-04   -.54599E-05
   6  Prefactor     .10000E-03    2.4126        .16786E-07** at limit **
   7  Prefactor     .10000E-03    2.7893       -.64670E-08** at limit **
   8  Prefactor     .10000E-03    .47046        .22387E-07** at limit **
   9  norm          6.0729        6.7123       -.10965E-05   -.18957E-03
  10  Prefactor     10.465        6.3830        .97695E-06    .41951E-03
  11  Prefactor     .10000E-03    32.503        .35541E-04** at limit **
  12  Prefactor     .54104        4.6835       -.97477E-06   -.16310E-03
  13  Prefactor     13.369        32.475       -.90545E-06   -.13481E-05
  14  Prefactor     6.0406        10.337        .10056E-07    .42877E-04
  15  Prefactor     .10077E-03    1.4483        .83705E-06** at limit **
  16  Prefactor     .10073E-03    9.5423       -.36642E-05** at limit **
  17  Prefactor     .10000E-03    16.925        .66388E-05** at limit **
  18  Prefactor     17.503        14.239        .15280E-05    .92881E-03
  19  Prefactor     .10000E-03    4.6869        .36410E-07** at limit **
  20  Prefactor     .10000E-03    49.304       -.18621E-04** at limit **
  21  Normalizat    .70639        .18818        .46279E-06    .29263E-03
  22  Prefactor     1.2716        .18554       -.17128E-05    .38739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 251.557
  Prefactor  = 3.87806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.07294
  Prefactor  = 10.4647
  Prefactor  = 0.0001
  Prefactor  = 0.541038
  Prefactor  = 13.3689
  Prefactor  = 6.04058
  Prefactor  = 0.000100767
  Prefactor  = 0.000100733
  Prefactor  = 0.0001
  Prefactor  = 17.5034
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.70639
  Prefactor  = 1.27162
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.125     FROM HESSE     STATUS=OK           346 CALLS     2712 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     251.56        101.20        .12771E-03   -1.2522    
   2  Prefactor     3.8781        4.5813        .16727E-03   -1.5314    
   3  Prefactor     .10000E-03    7.5913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.865        40.053        .74598E-04   -1.4633    
   6  Prefactor     .10000E-03    2.4268        .11371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7923        .12229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .47151        .50219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0729        6.7108        .16294E-03   -1.5215    
  10  Prefactor     10.465        6.6509        .11595E-03   -1.5061    
  11  Prefactor     .10000E-03    32.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .54104        25.723        .25412E-02   -1.5561    
  13  Prefactor     13.369        32.471        .10955E-03   -1.4977    
  14  Prefactor     6.0406        9.8172        .16330E-03   -1.5216    
  15  Prefactor     .10077E-03    44.809        .15963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10073E-03    49.655        .39121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.503        13.336        .95737E-04   -1.4871    
  19  Prefactor     .10000E-03    4.6945        .15853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .70639        .22245        .28077E-03   -1.0364    
  22  Prefactor     1.2716        .22330        .22735E-03   -.84155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19304e-08
Minuit parameter uncertainties:
  1  101.271
  2  4.58169
  3  1.40699e-05
  4  7.34188e-06
  5  40.0905
  6  4.25472e-06
  7  1.00599e-06
  8  4.6401e-07
  9  6.71166
  10  6.65138
  11  3.08415e-05
  12  7.46385
  13  32.5138
  14  9.81983
  15  0.0117328
  16  0.0120779
  17  5.10286e-06
  18  13.3387
  19  1.73324e-06
  20  0.000390722
  21  0.222734
  22  0.223467
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.272e+00  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:  7.064e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 8.62e-06 +/- 9.52e-06

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

Saving results to:
/scratch/kocevski/716427/likelihoodResults_325123201_325382401_4FGL_J1012.7+2439_daily_bin331.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) = 5622.00396777
delta logL = 0.121005546403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5622.00038924
delta logL = 0.124584073891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6770       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5965       1.0000          .0000       5.0000    
     3 'Normalizat'    .69624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2771       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=   5622.000     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      240 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6763        6.4675        .16859E-03    .18397E-02
   2  alpha         2.5968        .87714        .19722E-01    .16146E-03
   3  Normalizat    .69617        .20716        .28265E-03   -.17444E-03
   4  Prefactor     1.2772        .21888        .22689E-03   -.28199E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.67634
  alpha      = 2.59683
  Normalizat = 0.69617
  Prefactor  = 1.27719
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.000     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6763        6.2822        .67436E-05   -1.5231    
   2  alpha         2.5968        .85279        .78887E-03    .38740E-01
   3  Normalizat    .69617        .20729        .11306E-04   -1.0404    
   4  Prefactor     1.2772        .21900        .45378E-04   -.83988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26547e-09
Minuit parameter uncertainties:
  1  6.28297
  2  0.870284
  3  0.207525
  4  0.219161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716427': 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) = 5622.00038913
delta logL = 0.124584188155

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  5.676e+00  6.283e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.597e+00  8.703e-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.277e+00  2.192e-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:  6.962e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.60 +/- 0.87
Photon Flux (Free Index): 3.18e-08 +/- 3.55e-08
Energy Flux (Free Index): 8.49e-06 +/- 8.53e-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/716427/cmap_HighResolution_325123201_325382401_4FGL_J1012.7+2439_daily_bin331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='8.49e-06', photon_flux_error='2.42e-08', dlogl='1.25e-01', energy_flux='8.62e-06', photon_flux2='3.18e-08', job_status='DONE', time_completed='2021-09-01 13:14:33.011346', photon_index_error2='0.87', photon_index2='2.60', ts='1.20', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='8.09e-08', energy_flux_error2='8.53e-06', EG='0.71', time_epoch_completed='1630527273.01', return_code='0', job_id='716427', GAL2='1.28', EG2='0.70', return_code2='0', energy_flux_error='9.52e-06', photon_flux_error2='3.55e-08', ts2='1.45', photon_index='2.17' WHERE bin_id='331' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:14:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 716427: <4FGL_J1012.7+2439_daily_bin331> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin331> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 13:00:41 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 13:04:21 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:04:21 2021
Terminated at Wed Sep  1 13:14:33 2021
Results reported at Wed Sep  1 13:14:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin331 153.199 24.6638 325123201 325382401 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            832 sec.

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

