/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 9 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1058
RA = 153.449, Dec = 34.7384
tmin = 513561601, tmax = 513820801
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='737812', job_status='RUN', time_executed='2021-09-01 14:06:02.919125', time_epoch_executed='1630530362.92' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737812

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737812/ft1_4FGL_J1013.7+3444_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737812/ft1_4FGL_J1013.7+3444_daily_bin1058.fits outfile=/scratch/kocevski/737812/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1058.fits ra=153.449 dec=34.7384 rad=12.0 tmin=513561601.0 tmax=513820801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.67
user 3.43
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.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/737812/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1058.fits evtable="EVENTS" outfile="/scratch/kocevski/737812/ft1_filtered_4FGL_J1013.7+3444_daily_bin1058.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737812/ft1_filtered_4FGL_J1013.7+3444_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/737812/ltcube_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.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/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits
.....................!
real 13.68
user 13.27
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737812/ft1_filtered_4FGL_J1013.7+3444_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/737812/ltcube_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.fits outfile=/scratch/kocevski/737812/expmap_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.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/737812/ltcube_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.fits
.....................!
real 190.49
user 186.08
sys 3.99

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1013.7+3444 @ 153.449 34.7384

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/737812/ft1_filtered_4FGL_J1013.7+3444_daily_bin1058.fits scfile=/scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits outfile=/scratch/kocevski/737812/cmap_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.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.449 yref=34.7384 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737812/ft1_filtered_4FGL_J1013.7+3444_daily_bin1058.fits scfile=/scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits outfile=/scratch/kocevski/737812/cmap_HighResolution_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.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.449 yref=34.7384 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737812/ft1_filtered_4FGL_J1013.7+3444_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737812/Model_4FGL_J1013.7+3444_daily_bin1058.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/737812/ft1_filtered_4FGL_J1013.7+3444_daily_bin1058.fits.....................!
real 49.25
user 47.50
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/737812/ft1_filtered_4FGL_J1013.7+3444_daily_bin1058.fits', '/scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits', expMap='/scratch/kocevski/737812/expmap_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.fits', expCube='/scratch/kocevski/737812/ltcube_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/737812/Model_4FGL_J1013.7+3444_daily_bin1058.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1013.7+3444'

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.162e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/737812/ft1_filtered_4FGL_J1013.7+3444_daily_bin1058.fits
Spacecraft file(s): /scratch/kocevski/737812/ft2_4FGL_J1013.7+3444_daily_bin1058.fits
Exposure map: /scratch/kocevski/737812/expmap_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.fits
Exposure cube: /scratch/kocevski/737812/ltcube_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/737812/Model_4FGL_J1013.7+3444_daily_bin1058.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) = 5574.301121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16786E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3804       1.0000         .10000E-03   10000.    
     3 'norm      '    .10230E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .57024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.322       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8238       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1974       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3056       1.0000         .10000E-03   10000.    
    14 'norm      '    24.150       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12858E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11325E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52151       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9899       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93936       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0491       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5574.296     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3400 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.485        .16136E-06** at limit **
   2  Prefactor     1.3789        3.5939        .11595E-05   -.16613E-03
   3  norm          .10000E-03    23.428        .34751E-05** at limit **
   4  Prefactor     .10000E-03    11.514       -.24754E-06** at limit **
   5  Prefactor     .10045E-03    35.053       -.14521E-05** at limit **
   6  Prefactor     49.286        44.942        .13105E-05   -.13507E-03
   7  Prefactor     1.8242        4.8839        .51035E-06   -.10081E-03
   8  Prefactor     7.1982        7.9074        .13536E-06   -.48559E-04
   9  Prefactor     .10000E-03    1.2001       -.19855E-09** at limit **
  10  norm          .10000E-03    4.1307       -.14621E-07** at limit **
  11  Prefactor     .10000E-03    3.1246        .13062E-07** at limit **
  12  Prefactor     8.6843        28.049       -.33561E-06   -.54897E-05
  13  Prefactor     8.3018        6.2127        .18037E-07    .73153E-04
  14  norm          24.141        14.104        .49322E-07    .70803E-04
  15  Prefactor     .10000E-03    94.762        .93850E-06** at limit **
  16  Prefactor     .10000E-03    22.628       -.35729E-05** at limit **
  17  Prefactor     .10000E-03    5.7892        .43682E-08** at limit **
  18  Prefactor     .52710        3.5509       -.12002E-06   -.46291E-05
  19  Prefactor     .10000E-03    40.319       -.58319E-06** at limit **
  20  Prefactor     .10000E-03    13.051       -.15259E-06** at limit **
  21  Prefactor     .10000E-03    243.20       -.14466E-05** at limit **
  22  Prefactor     .10000E-03    9.2343        .64421E-07** at limit **
  23  norm          1.9899        .40394       -.71993E-08    .14314E-03
  24  Prefactor     .10000E-03    6.3722        .14956E-07** at limit **
  25  Prefactor     .10000E-03    7.3899       -.16993E-07** at limit **
  26  Normalizat    .93913        .18250        .77381E-06   -.31031E-04
  27  Prefactor     1.0493        .20300       -.39934E-06    .25418E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.37886
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100454
  Prefactor  = 49.2856
  Prefactor  = 1.82421
  Prefactor  = 7.19822
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68428
  Prefactor  = 8.30178
  norm       = 24.1411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.527102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.939133
  Prefactor  = 1.04933
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.296     FROM HESSE     STATUS=OK           486 CALLS     3886 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3789        3.5634        .21795E-03   -1.5473    
   3  norm          .10000E-03    23.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10045E-03    259.11        .76722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.286        44.536        .57100E-04   -1.4303    
   7  Prefactor     1.8242        4.8560        .25961E-03   -1.5438    
   8  Prefactor     7.1982        7.9128        .74758E-03   -1.5171    
   9  Prefactor     .10000E-03    1.2192        .79805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.1559        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1550        .12828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6843        28.022        .13611E-03   -1.5118    
  13  Prefactor     8.3018        6.1450        .13911E-03   -1.5132    
  14  norm          24.141        14.028        .81512E-04   -1.4725    
  15  Prefactor     .10000E-03    95.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0055        .34982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .52710        11.484        .25649E-02   -1.5563    
  19  Prefactor     .10000E-03    40.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    243.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.2707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9899        .40439        .20745E-04   -1.5426    
  24  Prefactor     .10000E-03    6.3891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.3980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93913        .21752        .24349E-03   -.95098    
  27  Prefactor     1.0493        .24307        .27129E-03   -.91103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86281e-08
Minuit parameter uncertainties:
  1  6.23881e-05
  2  3.5639
  3  0.000152618
  4  1.38059e-05
  5  0.0217887
  6  44.5662
  7  4.85704
  8  7.91398
  9  2.26198e-06
  10  3.36691e-06
  11  6.32023e-06
  12  28.0648
  13  6.14549
  14  14.0302
  15  3.47426e-05
  16  0.00019356
  17  9.99742e-06
  18  4.92135
  19  5.13074e-05
  20  1.03144e-05
  21  0.000315649
  22  3.39112e-06
  23  0.404393
  24  9.15041e-07
  25  9.41924e-07
  26  0.217722
  27  0.243322
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  6.320e-06  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.049e+00  2.433e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.391e-01  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 8.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737812/likelihoodResults_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.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) = 5574.29736838
delta logL = -0.00151167066451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5574.29585696
delta logL = -2.43133399636e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5729       1.0000          .0000       10.000    
     3 'Normalizat'    .93908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   5574.296     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      240 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    3.6817        .13016E-02** at limit **
   2  Index         2.5541        6.2770        .50000        .51708E-04
   3  Normalizat    .93913        .20336        .24349E-03    .19843E-04
   4  Prefactor     1.0493        .23913        .27129E-03    .19235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.55409
  Normalizat = 0.939134
  Prefactor  = 1.04933
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.296     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.2610        .26032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5541        6.2730        .50000       -.51115    
   3  Normalizat    .93913        .20358        .97396E-05   -.95098    
   4  Prefactor     1.0493        .23940        .10852E-04   -.91103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8494e-09
Minuit parameter uncertainties:
  1  0.000341052
  2  4.37293
  3  0.203751
  4  0.239639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737812': 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) = 5574.29585627
delta logL = 4.46315425506e-07

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  3.411e-04  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.554e+00  4.373e+00  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.049e+00  2.396e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.391e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 153.449 34.738

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/737812/cmap_HighResolution_513561601_513820801_4FGL_J1013.7+3444_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', job_status='DONE', photon_flux_upper_limit='8.87e-08', time_completed='2021-09-01 14:18:39.120468', job_id='737812', GAL2='1.05', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630531119.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1058' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:18:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 737812: <4FGL_J1013.7+3444_daily_bin1058> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1058> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:05:31 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:05:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 14:05:41 2021
Terminated at Wed Sep  1 14:18:39 2021
Results reported at Wed Sep  1 14:18:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1058 153.449 34.7384 513561601 513820801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1013.7+3444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            788 sec.

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

