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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1447
RA = 153.449, Dec = 34.7384
tmin = 614390401, tmax = 614649601
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='739965', job_status='RUN', time_executed='2021-09-01 14:14:16.711697', time_epoch_executed='1630530856.71' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739965

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739965/ft1_4FGL_J1013.7+3444_daily_bin1447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739965/ft2_4FGL_J1013.7+3444_daily_bin1447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739965/ft1_4FGL_J1013.7+3444_daily_bin1447.fits outfile=/scratch/kocevski/739965/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1447.fits ra=153.449 dec=34.7384 rad=12.0 tmin=614390401.0 tmax=614649601.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 4.02
user 3.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739965/ft1_filtered_4FGL_J1013.7+3444_daily_bin1447.fits" evtable="EVENTS" scfile=/scratch/kocevski/739965/ft2_4FGL_J1013.7+3444_daily_bin1447.fits sctable="SC_DATA" outfile=/scratch/kocevski/739965/ltcube_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.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/739965/ft2_4FGL_J1013.7+3444_daily_bin1447.fits
.....................!
real 16.00
user 15.65
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739965/ft1_filtered_4FGL_J1013.7+3444_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/739965/ft2_4FGL_J1013.7+3444_daily_bin1447.fits sctable="SC_DATA" expcube=/scratch/kocevski/739965/ltcube_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.fits outfile=/scratch/kocevski/739965/expmap_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.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/739965/ltcube_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.fits
.....................!
real 193.55
user 188.48
sys 4.56

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/739965/ft1_filtered_4FGL_J1013.7+3444_daily_bin1447.fits scfile=/scratch/kocevski/739965/ft2_4FGL_J1013.7+3444_daily_bin1447.fits outfile=/scratch/kocevski/739965/cmap_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739965/ft1_filtered_4FGL_J1013.7+3444_daily_bin1447.fits scfile=/scratch/kocevski/739965/ft2_4FGL_J1013.7+3444_daily_bin1447.fits outfile=/scratch/kocevski/739965/cmap_HighResolution_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739965/ft1_filtered_4FGL_J1013.7+3444_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/739965/ft2_4FGL_J1013.7+3444_daily_bin1447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739965/Model_4FGL_J1013.7+3444_daily_bin1447.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/739965/ft1_filtered_4FGL_J1013.7+3444_daily_bin1447.fits.....................!
real 51.73
user 50.23
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/739965/ft1_filtered_4FGL_J1013.7+3444_daily_bin1447.fits', '/scratch/kocevski/739965/ft2_4FGL_J1013.7+3444_daily_bin1447.fits', expMap='/scratch/kocevski/739965/expmap_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.fits', expCube='/scratch/kocevski/739965/ltcube_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/739965/Model_4FGL_J1013.7+3444_daily_bin1447.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/739965/ft1_filtered_4FGL_J1013.7+3444_daily_bin1447.fits
Spacecraft file(s): /scratch/kocevski/739965/ft2_4FGL_J1013.7+3444_daily_bin1447.fits
Exposure map: /scratch/kocevski/739965/expmap_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.fits
Exposure cube: /scratch/kocevski/739965/ltcube_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/739965/Model_4FGL_J1013.7+3444_daily_bin1447.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) = 5706.8083138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18171E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0136       1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.658       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.696       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.859       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3596       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.1065       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9373       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4035       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.3842       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6702       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3553       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .48572       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=   5706.807     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3264 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5752        .19066E-05** at limit **
   2  Prefactor     3.0126        2.9098        .42966E-07   -.32855E-04
   3  norm          .10000E-03    6.7108        .18698E-06** at limit **
   4  Prefactor     45.667        38.563       -.12986E-06    .80253E-04
   5  Prefactor     .10000E-03    18.896        .55883E-06** at limit **
   6  Prefactor     34.701        43.408       -.17502E-06   -.10772E-04
   7  Prefactor     24.861        10.577        .10856E-06    .93945E-04
   8  Prefactor     7.3631        12.902        .22574E-06    .37060E-04
   9  Prefactor     .10000E-03    1.5797        .11423E-06** at limit **
  10  norm          6.1068        6.1746       -.19618E-07    .30111E-04
  11  Prefactor     .10000E-03    3.1332       -.52477E-06** at limit **
  12  Prefactor     .10000E-03    23.561        .14765E-06** at limit **
  13  Prefactor     9.9396        5.4064        .17127E-06    .26216E-03
  14  norm          .10000E-03    3.1152       -.14074E-06** at limit **
  15  Prefactor     .10000E-03    25.575       -.51062E-08** at limit **
  16  Prefactor     44.514        30.043        .11583E-05    .14444E-03
  17  Prefactor     2.4045        4.4859        .22000E-06    .97211E-04
  18  Prefactor     .10000E-03    2.4557       -.17735E-05** at limit **
  19  Prefactor     .10000E-03    36.722       -.19718E-05** at limit **
  20  Prefactor     .10000E-03    13.360        .30197E-07** at limit **
  21  Prefactor     .10000E-03    48.206        .40352E-06** at limit **
  22  Prefactor     .10000E-03    15.894       -.53734E-07** at limit **
  23  norm          2.3843        .42606       -.40108E-07    .45145E-03
  24  Prefactor     1.6718        14.183        .88508E-05   -.26591E-03
  25  Prefactor     .10000E-03    5.2387        .18281E-08** at limit **
  26  Normalizat    1.3550        .18962       -.11037E-05    .16841E-03
  27  Prefactor     .48588        .20099        .16080E-05    .15769E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.01259
  norm       = 0.0001
  Prefactor  = 45.6672
  Prefactor  = 0.0001
  Prefactor  = 34.7006
  Prefactor  = 24.8614
  Prefactor  = 7.36313
  Prefactor  = 0.0001
  norm       = 6.10675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.9396
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5137
  Prefactor  = 2.40453
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38429
  Prefactor  = 1.67176
  Prefactor  = 0.0001
  Normalizat = 1.35502
  Prefactor  = 0.485876
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.807     FROM HESSE     STATUS=OK           482 CALLS     3746 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.480        .32998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0126        2.8945        .12227E-03   -1.5361    
   3  norm          .10000E-03    6.7167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.667        38.579        .59336E-04   -1.4355    
   5  Prefactor     .10000E-03    18.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.701        43.669        .68033E-04   -1.4529    
   7  Prefactor     24.861        10.581        .80343E-04   -1.4710    
   8  Prefactor     7.3631        12.905        .14784E-03   -1.5165    
   9  Prefactor     .10000E-03    1.6239        .18522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.1068        6.1741        .16247E-03   -1.5214    
  11  Prefactor     .10000E-03    3.1956        .13029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9396        5.4015        .12272E-03   -1.5077    
  14  norm          .10000E-03    3.1207        .13023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.514        30.234        .30040E-03   -1.4373    
  17  Prefactor     2.4045        4.4772        .20696E-03   -1.5398    
  18  Prefactor     .10000E-03    2.7295        .12113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    48.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.3843        .42730        .20107E-04   -1.5399    
  24  Prefactor     1.6718        15.078        .16310E-02   -1.5449    
  25  Prefactor     .10000E-03    5.2402        .16887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3550        .21805        .21564E-03   -.81938    
  27  Prefactor     .48588        .22630        .37925E-03   -1.1263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02696e-09
Minuit parameter uncertainties:
  1  0.000135698
  2  2.89463
  3  3.23121e-05
  4  38.5997
  5  9.60357e-05
  6  43.7091
  7  10.5822
  8  12.9103
  9  1.28817e-05
  10  6.17475
  11  6.10968e-05
  12  9.6089e-05
  13  5.40177
  14  1.46965e-05
  15  4.41594e-05
  16  30.2444
  17  4.4778
  18  0.000196189
  19  0.000196445
  20  3.77264e-05
  21  0.000198543
  22  0.000108883
  23  0.427305
  24  10.0445
  25  1.12314e-06
  26  0.2182
  27  0.226718
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  6.110e-05  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:  4.859e-01  2.267e-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:  1.355e+00  2.182e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/739965/likelihoodResults_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5706.80818095
delta logL = -0.00148870918838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5706.80669234
delta logL = -9.98579707812e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5907       1.0000          .0000       10.000    
     3 'Normalizat'    1.3550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48591       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.

 FCN=   5706.807     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3881        .90712E-02** at limit **
   2  Index         2.5899        6.6161        .50000        .21159E-05
   3  Normalizat    1.3550        .68721E-02    .48781E-01   -.37363E-04
   4  Prefactor     .48587        .76202E-02    .85584E-01    .27703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58991
  Normalizat = 1.35503
  Prefactor  = 0.485874
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.807     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      239 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.245        .13030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5899        6.0504        .50000       -.50296    
   3  Normalizat    1.3550        .21867E-01    .21564E-03   -.81938    
   4  Prefactor     .48587        .24177E-01    .37924E-03   -1.1263    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.66777e-08
Minuit parameter uncertainties:
  1  7.11211e-05
  2  419.513
  3  0.0218671
  4  0.0241775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739965': 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): 102
logL (Free Index) = 5706.80669224
delta logL = 8.29459168017e-10

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  7.112e-05  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.590e+00  4.195e+02  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:  4.859e-01  2.418e-02  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:  1.355e+00  2.187e-02  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/739965/cmap_HighResolution_614390401_614649601_4FGL_J1013.7+3444_daily_bin1447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-01 14:26:57.100097', job_id='739965', GAL2='0.49', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630531617.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='8.29e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1447' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:26:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 739965: <4FGL_J1013.7+3444_daily_bin1447> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1447> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:10:56 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:13:58 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:13:58 2021
Terminated at Wed Sep  1 14:26:57 2021
Results reported at Wed Sep  1 14:26:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1447 153.449 34.7384 614390401 614649601 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 :                                   756.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            961 sec.

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

