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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1029
RA = 153.449, Dec = 34.7384
tmin = 506044801, tmax = 506304001
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='736297', job_status='RUN', time_executed='2021-09-01 14:04:54.378739', time_epoch_executed='1630530294.38' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736297/ft1_4FGL_J1013.7+3444_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736297/ft2_4FGL_J1013.7+3444_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736297/ft1_4FGL_J1013.7+3444_daily_bin1029.fits outfile=/scratch/kocevski/736297/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1029.fits ra=153.449 dec=34.7384 rad=12.0 tmin=506044801.0 tmax=506304001.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.36
user 4.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/736297/ft2_4FGL_J1013.7+3444_daily_bin1029.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/736297/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/736297/ft1_filtered_4FGL_J1013.7+3444_daily_bin1029.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.57
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736297/ft1_filtered_4FGL_J1013.7+3444_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/736297/ft2_4FGL_J1013.7+3444_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/736297/ltcube_506044801_506304001_4FGL_J1013.7+3444_daily_bin1029.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/736297/ft2_4FGL_J1013.7+3444_daily_bin1029.fits
.....................!
real 16.61
user 16.28
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736297/ft1_filtered_4FGL_J1013.7+3444_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/736297/ft2_4FGL_J1013.7+3444_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/736297/ltcube_506044801_506304001_4FGL_J1013.7+3444_daily_bin1029.fits outfile=/scratch/kocevski/736297/expmap_506044801_506304001_4FGL_J1013.7+3444_daily_bin1029.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/736297/ltcube_506044801_506304001_4FGL_J1013.7+3444_daily_bin1029.fits
.....................!
real 192.10
user 187.58
sys 3.72

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/736297/ft1_filtered_4FGL_J1013.7+3444_daily_bin1029.fits scfile=/scratch/kocevski/736297/ft2_4FGL_J1013.7+3444_daily_bin1029.fits outfile=/scratch/kocevski/736297/cmap_506044801_506304001_4FGL_J1013.7+3444_daily_bin1029.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736297/ft1_filtered_4FGL_J1013.7+3444_daily_bin1029.fits scfile=/scratch/kocevski/736297/ft2_4FGL_J1013.7+3444_daily_bin1029.fits outfile=/scratch/kocevski/736297/cmap_HighResolution_506044801_506304001_4FGL_J1013.7+3444_daily_bin1029.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736297/ft1_filtered_4FGL_J1013.7+3444_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/736297/ft2_4FGL_J1013.7+3444_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736297/Model_4FGL_J1013.7+3444_daily_bin1029.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/736297/ft1_filtered_4FGL_J1013.7+3444_daily_bin1029.fits.....................!
real 44.39
user 43.16
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .57724       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.524       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.481       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .98495E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0843       1.0000         .10000E-03   10000.    
    14 'norm      '    16.442       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9587       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9614       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1121       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73145       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0027       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=   4849.024     FROM MIGRAD    STATUS=CONVERGED   1182 CALLS     3395 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.227        .36285E-03** at limit **
   2  Prefactor     .57696        1.7637        .16006E-03   -.14582E-03
   3  norm          .10000E-03    4.6961        .14734E-02** at limit **
   4  Prefactor     16.858        29.064        .97546E-04   -.24708E-04
   5  Prefactor     .10000E-03    7.1308        .18142E-02** at limit **
   6  Prefactor     70.520        34.010        .47801E-04    .13904E-03
   7  Prefactor     10.481        7.7970        .12376E-03    .67977E-05
   8  Prefactor     .10000E-03    3.4908        .12684E-02** at limit **
   9  Prefactor     .10000E-03    1.0353        .68540E-03** at limit **
  10  norm          10.694        7.0704        .12252E-03   -.75162E-05
  11  Prefactor     .10004E-03    8.3638        .17569E-02** at limit **
  12  Prefactor     .13876        30.460        .95261E-01    .96271E-04
  13  Prefactor     1.0806        3.2873        .20775E-03   -.32746E-03
  14  norm          16.438        10.395        .98774E-04    .77691E-04
  15  Prefactor     .10000E-03    46.164        .18142E-02** at limit **
  16  Prefactor     .10000E-03    15.640        .18142E-02** at limit **
  17  Prefactor     3.9584        3.4971        .11622E-03    .11338E-03
  18  Prefactor     3.9616        4.6871        .15589E-03   -.14899E-03
  19  Prefactor     .10000E-03    11.246        .18142E-02** at limit **
  20  Prefactor     .10000E-03    10.358        .18142E-02** at limit **
  21  Prefactor     .10003E-03    280.22        .18142E-02** at limit **
  22  Prefactor     .10000E-03    3.7331        .13133E-02** at limit **
  23  norm          1.1121        .31385        .20072E-04    .16482E-03
  24  Prefactor     .10000E-03    4.1365        .13824E-02** at limit **
  25  Prefactor     .10000E-03    25.012        .18142E-02** at limit **
  26  Normalizat    .73150        .19852        .22966E-03   -.14989E-03
  27  Prefactor     1.0026        .23372        .24578E-03    .75350E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.576956
  norm       = 0.0001
  Prefactor  = 16.8582
  Prefactor  = 0.0001
  Prefactor  = 70.52
  Prefactor  = 10.4814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6944
  Prefactor  = 0.000100039
  Prefactor  = 0.138765
  Prefactor  = 1.08059
  norm       = 16.4383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95842
  Prefactor  = 3.96156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 1.11215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.731501
  Prefactor  = 1.0026
 **********
 **   18 **HESSE 
 **********

 FCN=   4849.024     FROM HESSE     STATUS=OK           470 CALLS     3865 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.228        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .57696        1.7636        .64025E-05   -1.5556    
   3  norm          .10000E-03    4.6961        .29468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.858        29.056        .39018E-05   -1.4887    
   5  Prefactor     .10000E-03    7.1310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     70.520        34.010        .95603E-05   -1.4026    
   7  Prefactor     10.481        7.7966        .49504E-05   -1.5060    
   8  Prefactor     .10000E-03    3.4911        .25367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0354        .13708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.694        7.0702        .49007E-05   -1.5054    
  11  Prefactor     .10004E-03    8.4046        .35139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13876        28.293        .10006       -1.5633    
  13  Prefactor     1.0806        3.2804        .83100E-05   -1.5500    
  14  norm          16.438        10.389        .39509E-05   -1.4897    
  15  Prefactor     .10000E-03    46.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9584        3.4970        .46487E-05   -1.5310    
  18  Prefactor     3.9616        4.6865        .62356E-05   -1.5310    
  19  Prefactor     .10000E-03    11.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    280.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7332        .26266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1121        .31383        .80288E-06   -1.5497    
  24  Prefactor     .10000E-03    4.1366        .27648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .73150        .19867        .91864E-05   -1.0266    
  27  Prefactor     1.0026        .23395        .98312E-05   -.92643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22841e-09
Minuit parameter uncertainties:
  1  9.96356e-05
  2  1.76376
  3  3.15571e-06
  4  29.0801
  5  4.34203e-06
  6  34.0199
  7  7.79731
  8  5.65175e-06
  9  1.78625e-06
  10  7.07073
  11  0.00113957
  12  3.96334
  13  3.28098
  14  10.39
  15  3.34114e-05
  16  6.50237e-05
  17  3.49714
  18  4.68695
  19  3.7003e-06
  20  2.19777e-05
  21  0.0055394
  22  1.35382e-06
  23  0.313827
  24  3.31171e-07
  25  1.52282e-05
  26  0.198866
  27  0.23419
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.140e-03  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.003e+00  2.342e-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:  7.315e-01  1.989e-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: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736297/likelihoodResults_506044801_506304001_4FGL_J1013.7+3444_daily_bin1029.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) = 4849.0248072
delta logL = -0.000573323132812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4849.02423498
delta logL = -1.10392011266e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11700E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6697       1.0000          .0000       10.000    
     3 'Normalizat'    .73187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0022       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4849.024     FROM MIGRAD    STATUS=FAILED       152 CALLS      323 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53891E-03    .19426        .16992E-01** at limit **
   2  Index         3.9242        6.6137        .50000        .61422E-05
   3  Normalizat    .73148        .22317E-02    .22966E-03   -.22635E-02
   4  Prefactor     1.0026        .27745E-02    .24578E-03   -.45469E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4849.017     FROM SIMPLEX   STATUS=PROGRESS     100 CALLS      423 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10925        .19426        .15319E-03    .36005    
   2  Index         3.5412        6.6137        .54005E-02    .61422E-05
   3  Normalizat    .72990        .22317E-02    .11143E-03   -.22635E-02
   4  Prefactor     1.0013        .27745E-02    .13406E-03   -.45469E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4849.017     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      505 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10911        21.293        .10477E-02    .21222E-03
   2  Index         3.5494        2.5013        .50000        .95038E-05
   3  Normalizat    .72590        .13582E-01    .45933E-04    .99497E-05
   4  Prefactor     1.0064        .16884E-01    .49156E-04    .34692E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.109113
  Index      = 3.54938
  Normalizat = 0.725898
  Prefactor  = 1.00641
 **********
 **   18 **HESSE 
 **********

 FCN=   4849.017     FROM HESSE     STATUS=OK            29 CALLS      534 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10911        3.6326        .41910E-04   -1.5642    
   2  Index         3.5494        6.7099        .10873E-01   -.29436    
   3  Normalizat    .72590        .19154        .91866E-05   -1.0288    
   4  Prefactor     1.0064        .23309        .98312E-05   -.92516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63546e-11
Minuit parameter uncertainties:
  1  1.25866
  2  5.01567
  3  0.191721
  4  0.233323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736297': 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) = 4849.01702932
delta logL = 0.00720455404553

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.091e-01  1.259e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  3.549e+00  5.016e+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.006e+00  2.333e-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:  7.259e-01  1.917e-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/736297/cmap_HighResolution_506044801_506304001_4FGL_J1013.7+3444_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-01 14:17:04.469889', job_id='736297', GAL2='1.01', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630531024.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.20e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1029' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:17:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 736297: <4FGL_J1013.7+3444_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1029> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 14:00:26 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:01:25 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:01:25 2021
Terminated at Wed Sep  1 14:17:05 2021
Results reported at Wed Sep  1 14:17:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1029 153.449 34.7384 506044801 506304001 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 :                                   728.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            999 sec.

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

