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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin276
RA = 153.199, Dec = 24.6638
tmin = 310867201, tmax = 311126401
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='716351', job_status='RUN', time_executed='2021-09-01 13:03:36.256961', time_epoch_executed='1630526616.26' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716351

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716351/ft1_4FGL_J1012.7+2439_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716351/ft2_4FGL_J1012.7+2439_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716351/ft1_4FGL_J1012.7+2439_daily_bin276.fits outfile=/scratch/kocevski/716351/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin276.fits ra=153.199 dec=24.6638 rad=12.0 tmin=310867201.0 tmax=311126401.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.52
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/716351/ft2_4FGL_J1012.7+2439_daily_bin276.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/716351/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin276.fits evtable="EVENTS" outfile="/scratch/kocevski/716351/ft1_filtered_4FGL_J1012.7+2439_daily_bin276.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716351/ft1_filtered_4FGL_J1012.7+2439_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/716351/ft2_4FGL_J1012.7+2439_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/716351/ltcube_310867201_311126401_4FGL_J1012.7+2439_daily_bin276.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/716351/ft2_4FGL_J1012.7+2439_daily_bin276.fits
.....................!
real 15.78
user 15.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716351/ft1_filtered_4FGL_J1012.7+2439_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/716351/ft2_4FGL_J1012.7+2439_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/716351/ltcube_310867201_311126401_4FGL_J1012.7+2439_daily_bin276.fits outfile=/scratch/kocevski/716351/expmap_310867201_311126401_4FGL_J1012.7+2439_daily_bin276.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/716351/ltcube_310867201_311126401_4FGL_J1012.7+2439_daily_bin276.fits
.....................!
real 192.20
user 186.40
sys 4.66

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/716351/ft1_filtered_4FGL_J1012.7+2439_daily_bin276.fits scfile=/scratch/kocevski/716351/ft2_4FGL_J1012.7+2439_daily_bin276.fits outfile=/scratch/kocevski/716351/cmap_310867201_311126401_4FGL_J1012.7+2439_daily_bin276.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716351/ft1_filtered_4FGL_J1012.7+2439_daily_bin276.fits scfile=/scratch/kocevski/716351/ft2_4FGL_J1012.7+2439_daily_bin276.fits outfile=/scratch/kocevski/716351/cmap_HighResolution_310867201_311126401_4FGL_J1012.7+2439_daily_bin276.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716351/ft1_filtered_4FGL_J1012.7+2439_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/716351/ft2_4FGL_J1012.7+2439_daily_bin276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716351/Model_4FGL_J1012.7+2439_daily_bin276.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/716351/ft1_filtered_4FGL_J1012.7+2439_daily_bin276.fits.....................!
real 54.41
user 53.08
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.020       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .88039       1.0000         .10000E-03   10000.    
     9 'norm      '    9.8566       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2133       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91874E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14315E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3865       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5406       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.387       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9133       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .87460E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3890       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3814       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83497       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=   5864.012     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2386 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    34.801       -.21102E-05** at limit **
   2  Prefactor     .10000E-03    2.0666        .42472E-07** at limit **
   3  Prefactor     .10001E-03    27.206        .17464E-05** at limit **
   4  Prefactor     .10000E-03    21.015       -.48619E-06** at limit **
   5  Prefactor     34.044        32.286        .46952E-06    .76902E-04
   6  Prefactor     .10000E-03    4.1213       -.88751E-07** at limit **
   7  Prefactor     .10000E-03    3.0391        .12369E-07** at limit **
   8  Prefactor     .88090        1.8658        .63751E-06    .56105E-03
   9  norm          9.8591        7.8397       -.45747E-06   -.78403E-03
  10  Prefactor     .10000E-03    1.2570        .10240E-07** at limit **
  11  Prefactor     2.2234        156.91        .13677E-05    .12038E-04
  12  Prefactor     .10008E-03    2.1931        .73653E-06** at limit **
  13  Prefactor     .10001E-03    173.15       -.23089E-05** at limit **
  14  Prefactor     7.3847        9.4974        .42622E-05    .42169E-03
  15  Prefactor     5.5408        2.7358       -.23554E-06   -.27767E-03
  16  Prefactor     9.4316        9.1518       -.20595E-06    .62580E-04
  17  Prefactor     23.375        25.185        .24357E-06    .23902E-04
  18  Prefactor     7.9153        7.7325        .10289E-06    .21408E-03
  19  Prefactor     .10085E-03    12.622        .42938E-05** at limit **
  20  Prefactor     9.3900        12.604        .54157E-07    .19190E-04
  21  Normalizat    1.3814        .18099       -.63489E-06   -.39069E-03
  22  Prefactor     .83485        .18270       -.60642E-06   -.34344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 34.0438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.880896
  norm       = 9.85908
  Prefactor  = 0.0001
  Prefactor  = 2.22341
  Prefactor  = 0.000100078
  Prefactor  = 0.000100009
  Prefactor  = 7.38468
  Prefactor  = 5.54084
  Prefactor  = 9.43156
  Prefactor  = 23.3747
  Prefactor  = 7.91527
  Prefactor  = 0.000100846
  Prefactor  = 9.38996
  Normalizat = 1.38139
  Prefactor  = 0.834853
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.012     FROM HESSE     STATUS=OK           342 CALLS     2728 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    35.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0843        .10749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    27.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.044        32.318        .68704E-04   -1.4540    
   6  Prefactor     .10000E-03    4.1552        .15174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0430        .13037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .88090        1.6983        .14730E-02   -1.5520    
   9  norm          9.8591        7.8730        .12764E-03   -1.5080    
  10  Prefactor     .10000E-03    1.2677        .83736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2234        157.01        .27647E-03   -1.5410    
  12  Prefactor     .10008E-03    24.547        .21297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    176.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3847        9.6172        .73786E-03   -1.5164    
  15  Prefactor     5.5408        2.7335        .84252E-04   -1.5237    
  16  Prefactor     9.4316        9.1394        .13051E-03   -1.5094    
  17  Prefactor     23.375        25.187        .82829E-04   -1.4741    
  18  Prefactor     7.9153        7.7345        .14254E-03   -1.5145    
  19  Prefactor     .10085E-03    57.613        .42941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.3900        12.592        .13079E-03   -1.5095    
  21  Normalizat    1.3814        .21128        .22551E-03   -.81168    
  22  Prefactor     .83485        .21357        .28815E-03   -.98456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88864e-08
Minuit parameter uncertainties:
  1  0.00124123
  2  3.01209e-06
  3  0.000849709
  4  0.000226907
  5  32.3351
  6  5.61002e-07
  7  9.2332e-07
  8  1.69841
  9  7.87379
  10  1.56368e-06
  11  37.4703
  12  0.00276326
  13  0.00252671
  14  9.61917
  15  2.7336
  16  9.14072
  17  25.198
  18  7.73545
  19  0.0139771
  20  12.596
  21  0.211416
  22  0.213787
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  9.859e+00  7.874e+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:  8.349e-01  2.138e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.381e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.05
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.12e-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) = 5863.9102327
delta logL = 0.102026527999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5863.90679177
delta logL = 0.105467463472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4208       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5342       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84349       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5863.907     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4208        195.04        .32642E-02    .46212E-03
   2  alpha         2.5343        2.7356        .41157        .25536E-04
   3  Normalizat    1.3664        .10374        .51226E-01    .11164E-05
   4  Prefactor     .84348        .84737E-01    .64826E-01    .16204E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.42084
  alpha      = 2.53431
  Normalizat = 1.36636
  Prefactor  = 0.843483
 **********
 **   18 **HESSE 
 **********

 FCN=   5863.907     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4208        7.6678        .13057E-03   -1.5094    
   2  alpha         2.5343        .80066        .17553E-01    .13722E-01
   3  Normalizat    1.3664        .21076        .22647E-03   -.81606    
   4  Prefactor     .84348        .21378        .28675E-03   -.98145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31251e-10
Minuit parameter uncertainties:
  1  7.66858
  2  0.815024
  3  0.210891
  4  0.213989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716351': 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) = 5863.90679175
delta logL = 0.105467483073

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  9.421e+00  7.669e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.534e+00  8.150e-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:  8.435e-01  2.140e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.366e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.53 +/- 0.82
Photon Flux (Free Index): 4.92e-08 +/- 4.52e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.02e-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/716351/cmap_HighResolution_310867201_311126401_4FGL_J1012.7+2439_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.38e-05', photon_flux_error='2.84e-08', dlogl='1.05e-01', energy_flux='1.40e-05', photon_flux2='4.92e-08', job_status='DONE', time_completed='2021-09-01 13:12:54.083865', photon_index_error2='0.82', photon_index2='2.53', ts='4.05', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='1.38', time_epoch_completed='1630527174.08', return_code='0', job_id='716351', GAL2='0.84', EG2='1.37', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.52e-08', ts2='4.25', photon_index='2.17' WHERE bin_id='276' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:12:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 716351: <4FGL_J1012.7+2439_daily_bin276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin276 153.199 24.6638 310867201 311126401 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 :                                   556.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             386.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            738 sec.

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

