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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin77
RA = 153.199, Dec = 24.6638
tmin = 259286401, tmax = 259545601
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='714899', job_status='RUN', time_executed='2021-09-01 12:59:21.746719', time_epoch_executed='1630526361.75' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714899/ft1_4FGL_J1012.7+2439_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714899/ft2_4FGL_J1012.7+2439_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714899/ft1_4FGL_J1012.7+2439_daily_bin77.fits outfile=/scratch/kocevski/714899/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin77.fits ra=153.199 dec=24.6638 rad=12.0 tmin=259286401.0 tmax=259545601.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.29
user 2.08
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714899/ft2_4FGL_J1012.7+2439_daily_bin77.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/714899/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin77.fits evtable="EVENTS" outfile="/scratch/kocevski/714899/ft1_filtered_4FGL_J1012.7+2439_daily_bin77.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/714899/ft1_filtered_4FGL_J1012.7+2439_daily_bin77.fits" evtable="EVENTS" scfile=/scratch/kocevski/714899/ft2_4FGL_J1012.7+2439_daily_bin77.fits sctable="SC_DATA" outfile=/scratch/kocevski/714899/ltcube_259286401_259545601_4FGL_J1012.7+2439_daily_bin77.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/714899/ft2_4FGL_J1012.7+2439_daily_bin77.fits
.....................!
real 19.22
user 18.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714899/ft1_filtered_4FGL_J1012.7+2439_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/714899/ft2_4FGL_J1012.7+2439_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/714899/ltcube_259286401_259545601_4FGL_J1012.7+2439_daily_bin77.fits outfile=/scratch/kocevski/714899/expmap_259286401_259545601_4FGL_J1012.7+2439_daily_bin77.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/714899/ltcube_259286401_259545601_4FGL_J1012.7+2439_daily_bin77.fits
.....................!
real 191.57
user 187.09
sys 4.10

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/714899/ft1_filtered_4FGL_J1012.7+2439_daily_bin77.fits scfile=/scratch/kocevski/714899/ft2_4FGL_J1012.7+2439_daily_bin77.fits outfile=/scratch/kocevski/714899/cmap_259286401_259545601_4FGL_J1012.7+2439_daily_bin77.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714899/ft1_filtered_4FGL_J1012.7+2439_daily_bin77.fits scfile=/scratch/kocevski/714899/ft2_4FGL_J1012.7+2439_daily_bin77.fits outfile=/scratch/kocevski/714899/cmap_HighResolution_259286401_259545601_4FGL_J1012.7+2439_daily_bin77.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714899/ft1_filtered_4FGL_J1012.7+2439_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/714899/ft2_4FGL_J1012.7+2439_daily_bin77.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714899/Model_4FGL_J1012.7+2439_daily_bin77.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/714899/ft1_filtered_4FGL_J1012.7+2439_daily_bin77.fits.....................!
real 49.29
user 47.94
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.804       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6747       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86805E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.609       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9330       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .68043       1.0000         .10000E-03   10000.    
     9 'norm      '    7.3743       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.291       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 '    .11972E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2058       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.343       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77979       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3310       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=   5674.916     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2459 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.796        51.563        .16306E-05   -.95198E-05
   2  Prefactor     1.6742        3.1791        .19334E-06   -.36273E-04
   3  Prefactor     .10000E-03    8.4041        .13654E-05** at limit **
   4  Prefactor     .10000E-03    336.64        .35041E-04** at limit **
   5  Prefactor     43.605        41.157        .56678E-06   -.72261E-04
   6  Prefactor     4.9308        7.5406        .14012E-05   -.22073E-03
   7  Prefactor     2.4265        6.1135        .45878E-05    .14878E-04
   8  Prefactor     .67944        2.3712        .41159E-06   -.12958E-04
   9  norm          7.3752        10.397        .91387E-06   -.40018E-04
  10  Prefactor     .10000E-03    2.0412        .44507E-07** at limit **
  11  Prefactor     25.295        45.222        .17319E-06   -.73171E-05
  12  Prefactor     .10000E-03    1.3403        .10443E-07** at limit **
  13  Prefactor     .10000E-03    54.637       -.86831E-06** at limit **
  14  Prefactor     .10000E-03    7.4442        .28948E-06** at limit **
  15  Prefactor     2.2090        2.9717        .42290E-06    .54740E-04
  16  Prefactor     .10000E-03    6.0157        .14853E-06** at limit **
  17  Prefactor     .10000E-03    6.3827       -.35210E-06** at limit **
  18  Prefactor     26.345        13.830        .32077E-06    .49335E-04
  19  Prefactor     .10000E-03    13.307        .11856E-06** at limit **
  20  Prefactor     .10000E-03    8.8928       -.14354E-05** at limit **
  21  Normalizat    .77980        .18833       -.28019E-05   -.20799E-03
  22  Prefactor     1.3311        .18777        .47148E-06   -.26566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7964
  Prefactor  = 1.67424
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 43.605
  Prefactor  = 4.93078
  Prefactor  = 2.42647
  Prefactor  = 0.679437
  norm       = 7.37517
  Prefactor  = 0.0001
  Prefactor  = 25.2953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.779801
  Prefactor  = 1.33107
 **********
 **   18 **HESSE 
 **********

 FCN=   5674.916     FROM HESSE     STATUS=OK           344 CALLS     2803 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.796        51.580        .78860E-04   -1.4692    
   2  Prefactor     1.6742        3.1492        .17886E-03   -1.5449    
   3  Prefactor     .10000E-03    8.4157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    336.71        .20853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.605        41.152        .60709E-04   -1.4386    
   6  Prefactor     4.9308        7.5185        .90542E-03   -1.5264    
   7  Prefactor     2.4265        6.1172        .13137E-02   -1.5396    
   8  Prefactor     .67944        2.3584        .20079E-03   -1.5543    
   9  norm          7.3752        10.383        .73848E-03   -1.5165    
  10  Prefactor     .10000E-03    2.1367        .21005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.295        45.156        .79655E-04   -1.4702    
  12  Prefactor     .10000E-03    1.3479        .85160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.627        .35938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2090        2.7814        .12951E-03   -1.5411    
  16  Prefactor     .10000E-03    6.0541        .18006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.345        13.782        .78050E-04   -1.4681    
  19  Prefactor     .10000E-03    13.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .77980        .21557        .26454E-03   -1.0082    
  22  Prefactor     1.3311        .22015        .22897E-03   -.82388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2951e-10
Minuit parameter uncertainties:
  1  51.669
  2  3.14952
  3  4.27587e-06
  4  0.001111
  5  41.1787
  6  7.51994
  7  6.11879
  8  2.35871
  9  10.3853
  10  1.35831e-06
  11  45.2171
  12  5.81625e-07
  13  1.99125e-05
  14  0.000161482
  15  2.78158
  16  4.04077e-06
  17  9.82739e-07
  18  13.784
  19  1.52596e-06
  20  5.42568e-06
  21  0.215808
  22  0.220307
Done.

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

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  7.375e+00  1.039e+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.331e+00  2.203e-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.798e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/714899/likelihoodResults_259286401_259545601_4FGL_J1012.7+2439_daily_bin77.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) = 5669.08368592
delta logL = 5.83234084182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5669.06313779
delta logL = 5.85288897511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5473       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5951       1.0000          .0000       5.0000    
     3 'Normalizat'    .52545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5000       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=   5669.063     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      259 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5480        11.812        .63962E-02    .14162E-02
   2  alpha         4.5953        4.7036        .25736        .33917E-04
   3  Normalizat    .52539        .92540E-01    .71307E-01    .85342E-04
   4  Prefactor     1.4999        .99919E-01    .49069E-01    .17909E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54798
  alpha      = 4.59527
  Normalizat = 0.525387
  Prefactor  = 1.49991
 **********
 **   18 **HESSE 
 **********

 FCN=   5669.063     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5480        5.0775        .38088E-04   -1.5389    
   2  alpha         4.5953        1.1077        .12105E-01    .99381    
   3  Normalizat    .52539        .21066        .31566E-03   -1.1125    
   4  Prefactor     1.4999        .22658        .21690E-03   -.77542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64274e-11
Minuit parameter uncertainties:
  1  5.07839
  2  1.29281
  3  0.210983
  4  0.226733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714899': 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) = 5669.06313642
delta logL = 5.85289033816

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.548e+00  5.078e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  4.595e+00  1.293e+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.500e+00  2.267e-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:  5.254e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.03
Ra Dec: 153.199 24.664
Photon Index (Free Index): 4.60 +/- 1.29
Photon Flux (Free Index): 2.21e-07 +/- 7.74e-08
Energy Flux (Free Index): 3.17e-05 +/- 1.23e-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/714899/cmap_HighResolution_259286401_259545601_4FGL_J1012.7+2439_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-05', comment='SUCCESS', energy_flux2='3.17e-05', dlogl='5.85e+00', photon_flux2='2.21e-07', job_status='DONE', time_completed='2021-09-01 13:09:18.960712', photon_index_error2='1.29', photon_index2='4.60', ts='0.71', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.23e-05', EG='0.78', time_epoch_completed='1630526958.96', return_code='0', job_id='714899', GAL2='1.50', EG2='0.53', return_code2='0', photon_flux_error2='7.74e-08', ts2='14.03', photon_index='2.17' WHERE bin_id='77' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 714899: <4FGL_J1012.7+2439_daily_bin77> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin77 153.199 24.6638 259286401 259545601 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 :                                   596.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

