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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin34
RA = 153.199, Dec = 24.6638
tmin = 248140801, tmax = 248400001
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='714852', job_status='RUN', time_executed='2021-09-01 12:59:22.648679', time_epoch_executed='1630526362.65' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714852/ft1_4FGL_J1012.7+2439_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714852/ft2_4FGL_J1012.7+2439_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714852/ft1_4FGL_J1012.7+2439_daily_bin34.fits outfile=/scratch/kocevski/714852/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin34.fits ra=153.199 dec=24.6638 rad=12.0 tmin=248140801.0 tmax=248400001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.56
user 1.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714852/ft1_filtered_4FGL_J1012.7+2439_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/714852/ft2_4FGL_J1012.7+2439_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/714852/ltcube_248140801_248400001_4FGL_J1012.7+2439_daily_bin34.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/714852/ft2_4FGL_J1012.7+2439_daily_bin34.fits
.....................!
real 19.77
user 19.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714852/ft1_filtered_4FGL_J1012.7+2439_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/714852/ft2_4FGL_J1012.7+2439_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/714852/ltcube_248140801_248400001_4FGL_J1012.7+2439_daily_bin34.fits outfile=/scratch/kocevski/714852/expmap_248140801_248400001_4FGL_J1012.7+2439_daily_bin34.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/714852/ltcube_248140801_248400001_4FGL_J1012.7+2439_daily_bin34.fits
.....................!
real 192.67
user 186.80
sys 4.88

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/714852/ft1_filtered_4FGL_J1012.7+2439_daily_bin34.fits scfile=/scratch/kocevski/714852/ft2_4FGL_J1012.7+2439_daily_bin34.fits outfile=/scratch/kocevski/714852/cmap_248140801_248400001_4FGL_J1012.7+2439_daily_bin34.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.61
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714852/ft1_filtered_4FGL_J1012.7+2439_daily_bin34.fits scfile=/scratch/kocevski/714852/ft2_4FGL_J1012.7+2439_daily_bin34.fits outfile=/scratch/kocevski/714852/cmap_HighResolution_248140801_248400001_4FGL_J1012.7+2439_daily_bin34.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714852/ft1_filtered_4FGL_J1012.7+2439_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/714852/ft2_4FGL_J1012.7+2439_daily_bin34.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714852/Model_4FGL_J1012.7+2439_daily_bin34.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/714852/ft1_filtered_4FGL_J1012.7+2439_daily_bin34.fits.....................!
real 68.37
user 66.10
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.7849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5970       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0264       1.0000         .10000E-03   10000.    
     9 'norm      '    6.5358       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4505       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .94581       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0372       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9803       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1339       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94627       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=   7768.253     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     1995 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.484        .55214E-05** at limit **
   2  Prefactor     4.7847        3.8080       -.16354E-06   -.72721E-04
   3  Prefactor     7.5970        16.150        .30837E-07   -.13711E-03
   4  Prefactor     .10000E-03    15.968       -.14583E-05** at limit **
   5  Prefactor     3.3681        40.580       -.20333E-04   -.55853E-04
   6  Prefactor     .10000E-03    4.2200       -.40779E-06** at limit **
   7  Prefactor     .10000E-03    1.8621        .32266E-07** at limit **
   8  Prefactor     1.0265        1.8936       -.85505E-07   -.25581E-03
   9  norm          6.5361        5.8374        .44407E-07   -.72517E-03
  10  Prefactor     .10000E-03    1.9622       -.40928E-07** at limit **
  11  Prefactor     .10000E-03    10.424       -.67518E-05** at limit **
  12  Prefactor     .10000E-03    1.6929       -.13847E-08** at limit **
  13  Prefactor     .10000E-03    16.445       -.54004E-05** at limit **
  14  Prefactor     4.4503        6.7187       -.22156E-06   -.60304E-04
  15  Prefactor     .94606        1.6821       -.64659E-07   -.36094E-03
  16  Prefactor     .10000E-03    5.3954        .83083E-06** at limit **
  17  Prefactor     .10000E-03    13.292        .72297E-05** at limit **
  18  Prefactor     .10000E-03    2.7166        .19486E-07** at limit **
  19  Prefactor     2.0368        2.5110        .98421E-06   -.26976E-02
  20  Prefactor     6.9810        8.7928       -.59429E-08   -.21498E-03
  21  Normalizat    1.1339        .15287        .50527E-06    .10643E-03
  22  Prefactor     .94624        .15248        .54200E-06    .94850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.78475
  Prefactor  = 7.59695
  Prefactor  = 0.0001
  Prefactor  = 3.36809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.02654
  norm       = 6.53609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.45032
  Prefactor  = 0.946061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03683
  Prefactor  = 6.98095
  Normalizat = 1.1339
  Prefactor  = 0.946237
 **********
 **   18 **HESSE 
 **********

 FCN=   7768.253     FROM HESSE     STATUS=OK           344 CALLS     2339 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7847        3.8072        .14741E-03   -1.5270    
   3  Prefactor     7.5970        16.208        .72748E-03   -1.5157    
   4  Prefactor     .10000E-03    15.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3681        40.981        .22024E-03   -1.5341    
   6  Prefactor     .10000E-03    4.2902        .17665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8637        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0265        1.8534        .15554E-03   -1.5505    
   9  norm          6.5361        5.9197        .78489E-03   -1.5197    
  10  Prefactor     .10000E-03    2.0560        .24091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7265        .11194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4503        6.5971        .19088E-03   -1.5286    
  15  Prefactor     .94606        1.4171        .14018E-02   -1.5513    
  16  Prefactor     .10000E-03    5.4662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7211        .14185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0368        5.0594        .14488E-02   -1.5423    
  20  Prefactor     6.9810        8.8019        .75923E-03   -1.5179    
  21  Normalizat    1.1339        .17633        .22295E-03   -.88671    
  22  Prefactor     .94624        .17668        .25184E-03   -.94544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74616e-09
Minuit parameter uncertainties:
  1  8.34769e-05
  2  3.8074
  3  16.2171
  4  1.83682e-05
  5  23.5168
  6  6.78298e-06
  7  7.09249e-07
  8  1.85348
  9  5.92027
  10  5.06072e-06
  11  9.47157e-05
  12  2.49844e-06
  13  0.000100997
  14  6.59821
  15  1.41714
  16  1.6063e-06
  17  0.00010517
  18  1.58446e-06
  19  5.06041
  20  8.80353
  21  0.176423
  22  0.176784
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  6.536e+00  5.920e+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:  9.462e-01  1.768e-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.134e+00  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.36e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 9.28e-06 +/- 8.40e-06

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

Saving results to:
/scratch/kocevski/714852/likelihoodResults_248140801_248400001_4FGL_J1012.7+2439_daily_bin34.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) = 7768.21384108
delta logL = 0.0390006409516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7768.2130602
delta logL = 0.0397815205361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3738       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3914       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94983       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=   7768.213     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      200 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3738        198.58        .39746E-02    .31661E-03
   2  alpha         2.3914        2.8536        .41201        .20953E-04
   3  Normalizat    1.1279        .86409E-01    .36964E-01    .18880E-04
   4  Prefactor     .94983        .78261E-01    .45637E-01   -.14888E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.37377
  alpha      = 2.39143
  Normalizat = 1.1279
  Prefactor  = 0.94983
 **********
 **   18 **HESSE 
 **********

 FCN=   7768.213     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3738        5.8922        .15898E-03   -1.5203    
   2  alpha         2.3914        .80050        .22033E-01   -.43443E-01
   3  Normalizat    1.1279        .16897        .22345E-03   -.88861    
   4  Prefactor     .94983        .17564        .25141E-03   -.94421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14289e-11
Minuit parameter uncertainties:
  1  5.89273
  2  0.814878
  3  0.169047
  4  0.175748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714852': 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) = 7768.2130602
delta logL = 0.039781522365

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.498e-01  1.757e-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.128e+00  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 153.199 24.664
Photon Index (Free Index): 2.39 +/- 0.81
Photon Flux (Free Index): 2.86e-08 +/- 2.95e-08
Energy Flux (Free Index): 8.99e-06 +/- 8.02e-06

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/714852/cmap_HighResolution_248140801_248400001_4FGL_J1012.7+2439_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', comment='SUCCESS', photon_flux='2.36e-08', energy_flux2='8.99e-06', photon_flux_error='2.13e-08', dlogl='3.98e-02', energy_flux='9.28e-06', photon_flux2='2.86e-08', job_status='DONE', time_completed='2021-09-01 13:10:24.984001', photon_index_error2='0.81', photon_index2='2.39', ts='2.02', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='7.31e-08', energy_flux_error2='8.02e-06', EG='1.13', time_epoch_completed='1630527024.98', return_code='0', job_id='714852', GAL2='0.95', EG2='1.13', return_code2='0', energy_flux_error='8.40e-06', photon_flux_error2='2.95e-08', ts2='2.09', photon_index='2.17' WHERE bin_id='34' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:10:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 714852: <4FGL_J1012.7+2439_daily_bin34> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin34 153.199 24.6638 248140801 248400001 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            871 sec.

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

