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


Performing analysis on: 4FGL_J1012.7+2439_daily_bin19
RA = 153.199, Dec = 24.6638
tmin = 244252801, tmax = 244512001
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='714828', job_status='RUN', time_executed='2021-09-01 12:57:59.424868', time_epoch_executed='1630526279.42' WHERE source_name='4FGL J1012.7+2439' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714828

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714828/ft1_4FGL_J1012.7+2439_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714828/ft2_4FGL_J1012.7+2439_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714828/ft1_4FGL_J1012.7+2439_daily_bin19.fits outfile=/scratch/kocevski/714828/ft1_filteredMKT_4FGL_J1012.7+2439_daily_bin19.fits ra=153.199 dec=24.6638 rad=12.0 tmin=244252801.0 tmax=244512001.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.43
user 2.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714828/ft1_filtered_4FGL_J1012.7+2439_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/714828/ft2_4FGL_J1012.7+2439_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/714828/ltcube_244252801_244512001_4FGL_J1012.7+2439_daily_bin19.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/714828/ft2_4FGL_J1012.7+2439_daily_bin19.fits
.....................!
real 18.78
user 18.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714828/ft1_filtered_4FGL_J1012.7+2439_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/714828/ft2_4FGL_J1012.7+2439_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/714828/ltcube_244252801_244512001_4FGL_J1012.7+2439_daily_bin19.fits outfile=/scratch/kocevski/714828/expmap_244252801_244512001_4FGL_J1012.7+2439_daily_bin19.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/714828/ltcube_244252801_244512001_4FGL_J1012.7+2439_daily_bin19.fits
.....................!
real 192.42
user 187.49
sys 4.44

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/714828/ft1_filtered_4FGL_J1012.7+2439_daily_bin19.fits scfile=/scratch/kocevski/714828/ft2_4FGL_J1012.7+2439_daily_bin19.fits outfile=/scratch/kocevski/714828/cmap_244252801_244512001_4FGL_J1012.7+2439_daily_bin19.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9090       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.821       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.786       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0803       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.954       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .91996       1.0000         .10000E-03   10000.    
     9 'norm      '    21.889       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .63367E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.333       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79327       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0989       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=   5558.141     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     3048 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.195        .18142E-02** at limit **
   2  Prefactor     2.9096        3.2125        .13591E-03   -.23372E-03
   3  Prefactor     50.988        29.922        .56165E-04   -.43074E-04
   4  Prefactor     12.808        35.013        .11187E-03    .73781E-04
   5  Prefactor     47.792        36.920        .58006E-04   -.55231E-04
   6  Prefactor     5.0804        5.8200        .17839E-03   -.45395E-03
   7  Prefactor     12.954        9.1800        .11129E-03   -.13484E-04
   8  Prefactor     .92235        1.1883        .10459E-02    .10326E-02
   9  norm          21.889        8.8115        .85613E-04    .22575E-05
  10  Prefactor     .10000E-03    1.0945        .75937E-03** at limit **
  11  Prefactor     .10000E-03    45.279        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1.6114        .92103E-03** at limit **
  13  Prefactor     .10123E-03    60.866        .15727    ** at limit **
  14  Prefactor     .10000E-03    3.8975        .14285E-02** at limit **
  15  Prefactor     .10000E-03    1.1294        .76590E-03** at limit **
  16  Prefactor     .10000E-03    10.981        .18142E-02** at limit **
  17  Prefactor     .10000E-03    26.484        .18142E-02** at limit **
  18  Prefactor     34.344        15.027        .68391E-04   -.48041E-04
  19  Prefactor     .10003E-03    34.404        .36285E-03** at limit **
  20  Prefactor     .10000E-03    18.204        .18142E-02** at limit **
  21  Normalizat    .79306        .19723        .25104E-03    .19057E-03
  22  Prefactor     1.0989        .20165        .23224E-03   -.15927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.9096
  Prefactor  = 50.9879
  Prefactor  = 12.8075
  Prefactor  = 47.7923
  Prefactor  = 5.08036
  Prefactor  = 12.9543
  Prefactor  = 0.922348
  norm       = 21.889
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000101231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.3439
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Normalizat = 0.793056
  Prefactor  = 1.09895
 **********
 **   18 **HESSE 
 **********

 FCN=   5558.141     FROM HESSE     STATUS=OK           330 CALLS     3378 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9096        3.2124        .54363E-05   -1.5367    
   3  Prefactor     50.988        29.922        .11233E-04   -1.4279    
   4  Prefactor     12.808        35.013        .44747E-05   -1.4992    
   5  Prefactor     47.792        36.920        .11601E-04   -1.4324    
   6  Prefactor     5.0804        5.8196        .71355E-05   -1.5257    
   7  Prefactor     12.954        9.1801        .44517E-05   -1.4988    
   8  Prefactor     .92235        1.1879        .41837E-04   -1.5516    
   9  norm          21.889        8.8114        .34245E-05   -1.4772    
  10  Prefactor     .10000E-03    1.0945        .15187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6115        .18421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10123E-03    64.067        .15218       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8986        .28570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1295        .15318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.344        15.025        .27356E-05   -1.4535    
  19  Prefactor     .10003E-03    34.406        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .79306        .19741        .10041E-04   -1.0033    
  22  Prefactor     1.0989        .20183        .46447E-04   -.89500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02348e-09
Minuit parameter uncertainties:
  1  0.000129431
  2  3.21262
  3  29.9306
  4  35.0695
  5  36.938
  6  5.82025
  7  9.18107
  8  1.18788
  9  8.81193
  10  8.36003e-06
  11  0.000619097
  12  1.11885e-05
  13  0.0177775
  14  4.43549e-05
  15  1.62632e-05
  16  4.83975e-06
  17  0.000281157
  18  15.0263
  19  0.00198386
  20  9.57297e-05
  21  0.197592
  22  0.201966
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.099e+00  2.020e-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.931e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.81
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 7.89e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.25e-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) = 5557.8604681
delta logL = 0.280727319623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5557.85608149
delta logL = 0.285113932389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.173       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8574       1.0000          .0000       5.0000    
     3 'Normalizat'    .81044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0890       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=   5557.856     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.175        9.4355        .86413E-06   -.68911E-04
   2  alpha         1.8573        .41026        .15426E-04   -.43041E-05
   3  Normalizat    .81046        .16474       -.98039E-06   -.16072E-03
   4  Prefactor     1.0892        .17616        .16982E-06   -.16227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.1752
  alpha      = 1.85728
  Normalizat = 0.810461
  Prefactor  = 1.0892
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.856     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.175        9.3986        .42531E-03   -1.4766    
   2  alpha         1.8573        .40887        .11275E-01   -.26001    
   3  Normalizat    .81046        .18712        .24872E-03   -.99682    
   4  Prefactor     1.0892        .20047        .23322E-03   -.89813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14057e-11
Minuit parameter uncertainties:
  1  9.39923
  2  0.41085
  3  0.18727
  4  0.20061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714828': 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) = 5557.85607843
delta logL = 0.285116988464

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  2.218e+01  9.399e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.857e+00  4.109e-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:  1.089e+00  2.006e-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.105e-01  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.37
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.86 +/- 0.41
Photon Flux (Free Index): 6.21e-08 +/- 3.38e-08
Energy Flux (Free Index): 3.72e-05 +/- 1.91e-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/714828/cmap_HighResolution_244252801_244512001_4FGL_J1012.7+2439_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.89e-08', energy_flux2='3.72e-05', photon_flux_error='3.17e-08', dlogl='2.85e-01', energy_flux='3.11e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-01 13:07:36.460308', photon_index_error2='0.41', photon_index2='1.86', ts='17.81', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='0.79', time_epoch_completed='1630526856.46', return_code='0', job_id='714828', GAL2='1.09', EG2='0.81', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.38e-08', ts2='18.37', photon_index='2.17' WHERE bin_id='19' AND source_name='4FGL J1012.7+2439' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:07:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 714828: <4FGL_J1012.7+2439_daily_bin19> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_daily_bin19 153.199 24.6638 244252801 244512001 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 :                                   576.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            704 sec.

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

