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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin48
RA = 153.199, Dec = 24.6638
tmin = 251769601, tmax = 252028801
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='714868', job_status='RUN', time_executed='2021-09-01 12:58:20.745877', time_epoch_executed='1630526300.75' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714868

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714868/ft1_4FGL_J1012.7+2439_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714868/ft2_4FGL_J1012.7+2439_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714868/ft1_4FGL_J1012.7+2439_daily_bin48.fits outfile=/scratch/kocevski/714868/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin48.fits ra=153.199 dec=24.6638 rad=12.0 tmin=251769601.0 tmax=252028801.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 2.23
user 1.96
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714868/ft2_4FGL_J1012.7+2439_daily_bin48.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/714868/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin48.fits evtable="EVENTS" outfile="/scratch/kocevski/714868/ft1_filtered_4FGL_J1012.7+2439_daily_bin48.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.56
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714868/ft1_filtered_4FGL_J1012.7+2439_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/714868/ft2_4FGL_J1012.7+2439_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/714868/ltcube_251769601_252028801_4FGL_J1012.7+2439_daily_bin48.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/714868/ft2_4FGL_J1012.7+2439_daily_bin48.fits
.....................!
real 19.57
user 19.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714868/ft1_filtered_4FGL_J1012.7+2439_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/714868/ft2_4FGL_J1012.7+2439_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/714868/ltcube_251769601_252028801_4FGL_J1012.7+2439_daily_bin48.fits outfile=/scratch/kocevski/714868/expmap_251769601_252028801_4FGL_J1012.7+2439_daily_bin48.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/714868/ltcube_251769601_252028801_4FGL_J1012.7+2439_daily_bin48.fits
.....................!
real 193.37
user 187.15
sys 5.33

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/714868/ft1_filtered_4FGL_J1012.7+2439_daily_bin48.fits scfile=/scratch/kocevski/714868/ft2_4FGL_J1012.7+2439_daily_bin48.fits outfile=/scratch/kocevski/714868/cmap_251769601_252028801_4FGL_J1012.7+2439_daily_bin48.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714868/ft1_filtered_4FGL_J1012.7+2439_daily_bin48.fits scfile=/scratch/kocevski/714868/ft2_4FGL_J1012.7+2439_daily_bin48.fits outfile=/scratch/kocevski/714868/cmap_HighResolution_251769601_252028801_4FGL_J1012.7+2439_daily_bin48.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714868/ft1_filtered_4FGL_J1012.7+2439_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/714868/ft2_4FGL_J1012.7+2439_daily_bin48.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714868/Model_4FGL_J1012.7+2439_daily_bin48.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/714868/ft1_filtered_4FGL_J1012.7+2439_daily_bin48.fits.....................!
real 67.25
user 65.32
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1227       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1390       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8592       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .92336E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2583       1.0000         .10000E-03   10000.    
    13 'Prefactor '    55.043       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16043       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57186       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81712       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1526       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=   7790.835     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2425 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.363        .15123E-04** at limit **
   2  Prefactor     9.1208        4.2529       -.11019E-07   -.66600E-04
   3  Prefactor     1.1361        37.230       -.57429E-05   -.25558E-03
   4  Prefactor     .10000E-03    52.268        .15178E-04** at limit **
   5  Prefactor     .10000E-03    30.734       -.11418E-04** at limit **
   6  Prefactor     4.8590        5.3301       -.12881E-05   -.23806E-03
   7  Prefactor     .10000E-03    13.573       -.10353E-05** at limit **
   8  Prefactor     .10000E-03    .77573        .13370E-06** at limit **
   9  norm          .49482E-01    4.1542       -.18583E-05    .77982E-03
  10  Prefactor     .10000E-03    1.1350       -.18191E-06** at limit **
  11  Prefactor     .10000E-03    11.815        .77944E-06** at limit **
  12  Prefactor     4.2572        3.0815       -.12253E-06   -.40015E-04
  13  Prefactor     55.035        37.230       -.68151E-05    .24893E-04
  14  Prefactor     .12063        2.8128        .13896E-06   -.22022E-03
  15  Prefactor     .57218        1.2725       -.50619E-06   -.18920E-02
  16  Prefactor     6.4893        6.6548       -.13588E-05   -.17472E-03
  17  Prefactor     .10000E-03    30.643       -.10806E-04** at limit **
  18  Prefactor     .10000E-03    6.2481        .21609E-06** at limit **
  19  Prefactor     .10000E-03    13.895       -.86203E-07** at limit **
  20  Prefactor     .10000E-03    3.7568        .48751E-06** at limit **
  21  Normalizat    .81734        .14756        .21783E-05    .31544E-03
  22  Prefactor     1.1526        .14979       -.12754E-06    .44193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.12081
  Prefactor  = 1.13614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.85898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0494821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.25717
  Prefactor  = 55.0352
  Prefactor  = 0.120626
  Prefactor  = 0.572177
  Prefactor  = 6.48925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.817338
  Prefactor  = 1.1526
 **********
 **   18 **HESSE 
 **********

 FCN=   7790.835     FROM HESSE     STATUS=OK           352 CALLS     2777 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1208        4.2604        .11904E-03   -1.5104    
   3  Prefactor     1.1361        39.841        .43593E-03   -1.5495    
   4  Prefactor     .10000E-03    51.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8590        5.3494        .18248E-03   -1.5267    
   7  Prefactor     .10000E-03    14.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1854        .15015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .49482E-01    4.5517        .53243E-01   -1.5664    
  10  Prefactor     .10000E-03    1.1549        .91754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2572        3.0815        .12773E-03   -1.5295    
  13  Prefactor     55.035        37.061        .54066E-04   -1.4223    
  14  Prefactor     .12063        62.502        .26885E-02   -1.5639    
  15  Prefactor     .57218        1.1824        .14000E-02   -1.5557    
  16  Prefactor     6.4893        6.6311        .15762E-03   -1.5198    
  17  Prefactor     .10000E-03    30.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7609        .16706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81734        .17217        .24466E-03   -.99429    
  22  Prefactor     1.1526        .17413        .22355E-03   -.87803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97834e-09
Minuit parameter uncertainties:
  1  3.41028e-05
  2  4.26055
  3  13.4651
  4  6.41663e-05
  5  3.90131e-05
  6  5.34988
  7  4.06918e-05
  8  5.675e-06
  9  0.948278
  10  1.91457e-07
  11  9.18193e-06
  12  3.0816
  13  37.0767
  14  5.49508
  15  1.18245
  16  6.63183
  17  1.90392e-05
  18  4.07155e-05
  19  2.97181e-05
  20  5.63919e-06
  21  0.172289
  22  0.174218
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  4.948e-02  9.483e-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:  1.153e+00  1.742e-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.173e-01  1.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/714868/likelihoodResults_251769601_252028801_4FGL_J1012.7+2439_daily_bin48.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): 102
logL (Free Index) = 7790.82834674
delta logL = 0.00641654474839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7790.77563496
delta logL = 0.0591283237327

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0387       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9225       1.0000          .0000       5.0000    
     3 'Normalizat'    .81123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1532       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=   7790.776     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      299 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0330        4.0382        .26048E-03   -.27837E-03
   2  alpha         2.9184        1.8025        .47874E-01   -.72469E-05
   3  Normalizat    .81119        .16178        .24548E-03   -.70487E-04
   4  Prefactor     1.1533        .17238        .22345E-03   -.15914E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.033
  alpha      = 2.91845
  Normalizat = 0.811194
  Prefactor  = 1.15333
 **********
 **   18 **HESSE 
 **********

 FCN=   7790.776     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0330        3.5146        .10419E-04   -1.5505    
   2  alpha         2.9184        1.6151        .19150E-02    .16817    
   3  Normalizat    .81119        .16200        .98192E-05   -.99655    
   4  Prefactor     1.1533        .17247        .44690E-04   -.87780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28951e-10
Minuit parameter uncertainties:
  1  3.5153
  2  1.76114
  3  0.162092
  4  0.172555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714868': 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) = 7790.77562785
delta logL = 0.0591354335947

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  1.033e+00  3.515e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.918e+00  1.761e+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.153e+00  1.726e-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.112e-01  1.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 153.199 24.664

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/714868/cmap_HighResolution_251769601_252028801_4FGL_J1012.7+2439_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-05', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-09-01 13:10:12.311022', job_id='714868', GAL2='1.15', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1630527012.31', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='5.91e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='48' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:10:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 714868: <4FGL_J1012.7+2439_daily_bin48> in cluster <slac> Done

Job <4FGL_J1012.7+2439_daily_bin48> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:55:55 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:55:59 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:55:59 2021
Terminated at Wed Sep  1 13:10:13 2021
Results reported at Wed Sep  1 13:10:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin48 153.199 24.6638 251769601 252028801 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 :                                   708.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            858 sec.

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

