/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 7 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_bin280
RA = 153.199, Dec = 24.6638
tmin = 311904001, tmax = 312163201
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='716356', job_status='RUN', time_executed='2021-09-01 13:03:48.634489', time_epoch_executed='1630526628.63' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716356

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716356/ft1_4FGL_J1012.7+2439_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716356/ft2_4FGL_J1012.7+2439_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716356/ft1_4FGL_J1012.7+2439_daily_bin280.fits outfile=/scratch/kocevski/716356/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin280.fits ra=153.199 dec=24.6638 rad=12.0 tmin=311904001.0 tmax=312163201.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.48
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716356/ft1_filtered_4FGL_J1012.7+2439_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/716356/ft2_4FGL_J1012.7+2439_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/716356/ltcube_311904001_312163201_4FGL_J1012.7+2439_daily_bin280.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/716356/ft2_4FGL_J1012.7+2439_daily_bin280.fits
.....................!
real 16.68
user 16.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716356/ft1_filtered_4FGL_J1012.7+2439_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/716356/ft2_4FGL_J1012.7+2439_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/716356/ltcube_311904001_312163201_4FGL_J1012.7+2439_daily_bin280.fits outfile=/scratch/kocevski/716356/expmap_311904001_312163201_4FGL_J1012.7+2439_daily_bin280.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/716356/ltcube_311904001_312163201_4FGL_J1012.7+2439_daily_bin280.fits
.....................!
real 191.37
user 186.36
sys 4.50

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/716356/ft1_filtered_4FGL_J1012.7+2439_daily_bin280.fits scfile=/scratch/kocevski/716356/ft2_4FGL_J1012.7+2439_daily_bin280.fits outfile=/scratch/kocevski/716356/cmap_311904001_312163201_4FGL_J1012.7+2439_daily_bin280.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716356/ft1_filtered_4FGL_J1012.7+2439_daily_bin280.fits scfile=/scratch/kocevski/716356/ft2_4FGL_J1012.7+2439_daily_bin280.fits outfile=/scratch/kocevski/716356/cmap_HighResolution_311904001_312163201_4FGL_J1012.7+2439_daily_bin280.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.62
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716356/ft1_filtered_4FGL_J1012.7+2439_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/716356/ft2_4FGL_J1012.7+2439_daily_bin280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716356/Model_4FGL_J1012.7+2439_daily_bin280.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/716356/ft1_filtered_4FGL_J1012.7+2439_daily_bin280.fits.....................!
real 51.31
user 49.56
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4858       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0026       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4873       1.0000         .10000E-03   10000.    
     9 'norm      '    7.6031       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.980       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71237E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    93.739       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4050       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4382       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4385       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7041       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4038       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83584       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1429       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=   5658.022     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2390 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.944        .68866E-07** at limit **
   2  Prefactor     .10000E-03    2.0353        .26354E-06** at limit **
   3  Prefactor     .10000E-03    13.581        .17133E-06** at limit **
   4  Prefactor     1.2573        1117.6       -.85859E-04    .11889E-04
   5  Prefactor     35.537        37.262       -.10407E-06   -.40062E-04
   6  Prefactor     8.0000        7.2669       -.68503E-06    .49428E-05
   7  Prefactor     .10000E-03    5.2255        .36844E-06** at limit **
   8  Prefactor     3.4868        2.2791        .12480E-06   -.64367E-04
   9  norm          7.6015        8.3090        .22933E-06    .54878E-05
  10  Prefactor     2.2671        4.3453        .38318E-06   -.42354E-03
  11  Prefactor     39.992        44.246        .73324E-06   -.25304E-04
  12  Prefactor     .31875E-03    3.5369        .91433E-06** at limit **
  13  Prefactor     93.762        68.528        .59246E-06   -.25028E-04
  14  Prefactor     6.3975        9.4837       -.67304E-07   -.72011E-04
  15  Prefactor     1.4382        3.0199        .13796E-05    .16630E-03
  16  Prefactor     7.4325        9.4023        .19545E-06   -.50816E-04
  17  Prefactor     .10000E-03    18.418        .42825E-06** at limit **
  18  Prefactor     6.7000        10.085        .52376E-07   -.38800E-04
  19  Prefactor     2.3991        12.462        .19724E-05    .16427E-04
  20  Prefactor     .10000E-03    7.7455        .19427E-06** at limit **
  21  Normalizat    .83622        .19233       -.51288E-05   -.16235E-03
  22  Prefactor     1.1428        .18269        .11863E-05   -.36318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25725
  Prefactor  = 35.5374
  Prefactor  = 8.00004
  Prefactor  = 0.0001
  Prefactor  = 3.48676
  norm       = 7.6015
  Prefactor  = 2.26715
  Prefactor  = 39.9915
  Prefactor  = 0.000318753
  Prefactor  = 93.7625
  Prefactor  = 6.39747
  Prefactor  = 1.43816
  Prefactor  = 7.43255
  Prefactor  = 0.0001
  Prefactor  = 6.69999
  Prefactor  = 2.39906
  Prefactor  = 0.0001
  Normalizat = 0.836223
  Prefactor  = 1.14282
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.022     FROM HESSE     STATUS=OK           358 CALLS     2748 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0513        .10486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2573        1154.8        .35190E-02   -1.5484    
   5  Prefactor     35.537        37.349        .67248E-04   -1.4515    
   6  Prefactor     8.0000        7.2764        .14173E-03   -1.5142    
   7  Prefactor     .10000E-03    5.2512        .16797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4868        2.2757        .88270E-04   -1.5334    
   9  norm          7.6015        8.3064        .14544E-03   -1.5156    
  10  Prefactor     2.2671        4.3791        .18869E-03   -1.5407    
  11  Prefactor     39.992        44.324        .63393E-04   -1.4442    
  12  Prefactor     .31875E-03    8.4655        .41479E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     93.762        68.581        .41510E-04   -1.3768    
  14  Prefactor     6.3975        9.3694        .15859E-03   -1.5202    
  15  Prefactor     1.4382        2.9899        .16832E-03   -1.5468    
  16  Prefactor     7.4325        9.3701        .14705E-03   -1.5163    
  17  Prefactor     .10000E-03    18.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7000        10.050        .15497E-03   -1.5190    
  19  Prefactor     2.3991        12.460        .26409E-03   -1.5398    
  20  Prefactor     .10000E-03    7.7543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83622        .22121        .26575E-03   -.98739    
  22  Prefactor     1.1428        .21168        .23801E-03   -.88109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61758e-10
Minuit parameter uncertainties:
  1  5.73635e-05
  2  1.3587e-05
  3  5.96236e-05
  4  77.7593
  5  37.3736
  6  7.27718
  7  1.76886e-05
  8  2.27578
  9  8.30763
  10  4.37968
  11  44.3603
  12  0.0860787
  13  68.6387
  14  9.37156
  15  2.99022
  16  9.37198
  17  2.85619e-05
  18  10.0526
  19  10.9383
  20  9.47744e-06
  21  0.221449
  22  0.211832
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  7.601e+00  8.308e+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.143e+00  2.118e-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.362e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/716356/likelihoodResults_311904001_312163201_4FGL_J1012.7+2439_daily_bin280.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) = 5657.77813893
delta logL = 0.244064862548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5657.77752578
delta logL = 0.244678013445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1508       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0554       1.0000          .0000       5.0000    
     3 'Normalizat'    .79707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1681       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=   5657.778     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      279 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1597        9.2387        .78821E-03   -.11282E-03
   2  alpha         3.0544        1.3914        .19843E-01    .14551E-03
   3  Normalizat    .79708        .21402        .27145E-03   -.11141E-04
   4  Prefactor     1.1681        .21440        .23568E-03   -.17607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.15972
  alpha      = 3.05438
  Normalizat = 0.79708
  Prefactor  = 1.16811
 **********
 **   18 **HESSE 
 **********

 FCN=   5657.778     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1597        8.0033        .31528E-04   -1.5212    
   2  alpha         3.0544        1.2219        .39687E-02    .22361    
   3  Normalizat    .79708        .21252        .10858E-04   -1.0018    
   4  Prefactor     1.1681        .21316        .94273E-05   -.87318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07383e-11
Minuit parameter uncertainties:
  1  8.0047
  2  1.27987
  3  0.212737
  4  0.213314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716356': 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) = 5657.77752513
delta logL = 0.244678664656

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  6.160e+00  8.005e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  3.054e+00  1.280e+00  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.168e+00  2.133e-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.971e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 153.199 24.664
Photon Index (Free Index): 3.05 +/- 1.28
Photon Flux (Free Index): 6.00e-08 +/- 6.85e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.13e-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/716356/cmap_HighResolution_311904001_312163201_4FGL_J1012.7+2439_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-05', comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='1.24e-05', photon_flux_error='2.99e-08', dlogl='2.45e-01', energy_flux='1.08e-05', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-01 13:13:40.034175', photon_index_error2='1.28', photon_index2='3.05', ts='1.41', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.13e-05', EG='0.84', time_epoch_completed='1630527220.03', return_code='0', job_id='716356', GAL2='1.17', EG2='0.80', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='6.85e-08', ts2='1.92', photon_index='2.17' WHERE bin_id='280' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:13:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 716356: <4FGL_J1012.7+2439_daily_bin280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin280 153.199 24.6638 311904001 312163201 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 :                                   590.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            783 sec.

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

