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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1349
RA = 153.449, Dec = 34.7384
tmin = 588988801, tmax = 589248001
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='738308', job_status='RUN', time_executed='2021-09-01 14:11:36.737159', time_epoch_executed='1630530696.74' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738308

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738308/ft1_4FGL_J1013.7+3444_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738308/ft2_4FGL_J1013.7+3444_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738308/ft1_4FGL_J1013.7+3444_daily_bin1349.fits outfile=/scratch/kocevski/738308/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1349.fits ra=153.449 dec=34.7384 rad=12.0 tmin=588988801.0 tmax=589248001.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.14
user 2.93
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738308/ft2_4FGL_J1013.7+3444_daily_bin1349.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/738308/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1349.fits evtable="EVENTS" outfile="/scratch/kocevski/738308/ft1_filtered_4FGL_J1013.7+3444_daily_bin1349.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/738308/ft1_filtered_4FGL_J1013.7+3444_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/738308/ft2_4FGL_J1013.7+3444_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/738308/ltcube_588988801_589248001_4FGL_J1013.7+3444_daily_bin1349.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/738308/ft2_4FGL_J1013.7+3444_daily_bin1349.fits
.....................!
real 14.52
user 14.17
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738308/ft1_filtered_4FGL_J1013.7+3444_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/738308/ft2_4FGL_J1013.7+3444_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/738308/ltcube_588988801_589248001_4FGL_J1013.7+3444_daily_bin1349.fits outfile=/scratch/kocevski/738308/expmap_588988801_589248001_4FGL_J1013.7+3444_daily_bin1349.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/738308/ltcube_588988801_589248001_4FGL_J1013.7+3444_daily_bin1349.fits
.....................!
real 193.23
user 186.00
sys 6.43

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/738308/ft1_filtered_4FGL_J1013.7+3444_daily_bin1349.fits scfile=/scratch/kocevski/738308/ft2_4FGL_J1013.7+3444_daily_bin1349.fits outfile=/scratch/kocevski/738308/cmap_588988801_589248001_4FGL_J1013.7+3444_daily_bin1349.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738308/ft1_filtered_4FGL_J1013.7+3444_daily_bin1349.fits scfile=/scratch/kocevski/738308/ft2_4FGL_J1013.7+3444_daily_bin1349.fits outfile=/scratch/kocevski/738308/cmap_HighResolution_588988801_589248001_4FGL_J1013.7+3444_daily_bin1349.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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738308/ft1_filtered_4FGL_J1013.7+3444_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/738308/ft2_4FGL_J1013.7+3444_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738308/Model_4FGL_J1013.7+3444_daily_bin1349.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/738308/ft1_filtered_4FGL_J1013.7+3444_daily_bin1349.fits............................!
real 17.86
user 16.25
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1545       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12348E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    156.91       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    277.87       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.9330       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23127E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27494E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11182E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18162E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14337E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14314E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3039       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .13777E-01   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=   605.3084     FROM MIGRAD    STATUS=CONVERGED   1113 CALLS     3907 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1564        62.521        .13428E-02    .94969E-05
   2  Prefactor     .10000E-03    4.2551        .49223E-03** at limit **
   3  norm          .10000E-03    22.255        .11339E-02** at limit **
   4  Prefactor     .10000E-03    114.52        .18142E-02** at limit **
   5  Prefactor     156.85        82.589        .16093E-03    .27665E-04
   6  Prefactor     .10000E-03    48.379        .16728E-02** at limit **
   7  Prefactor     13.772        61.389        .10779E-03    .21794E-04
   8  Prefactor     .10000E-03    31.115        .13391E-02** at limit **
   9  Prefactor     .10000E-03    8.9261        .71718E-03** at limit **
  10  norm          .10000E-03    90.893        .18142E-02** at limit **
  11  Prefactor     .10000E-03    12.747        .85790E-03** at limit **
  12  Prefactor     277.85        211.25        .12168E-03   -.30456E-04
  13  Prefactor     .10000E-03    11.862        .82800E-03** at limit **
  14  norm          9.1003        281.54        .13410E-03    .35712E-05
  15  Prefactor     .10000E-03    2074.3        .18142E-02** at limit **
  16  Prefactor     .10000E-03    690.52        .21426E-02** at limit **
  17  Prefactor     .10000E-03    29.050        .12959E-02** at limit **
  18  Prefactor     .10000E-03    94.266        .18142E-02** at limit **
  19  Prefactor     .10000E-03    7039.2        .20687E-02** at limit **
  20  Prefactor    10000.0        7055.3        .20103E-02** at limit **
  21  Prefactor    10000.0        8349.4        .21220E-02** at limit **
  22  Prefactor     .10000E-03    7365.7        .18227E-02** at limit **
  23  norm          .10000E-03    22.564        .11422E-02** at limit **
  24  Prefactor     .10000E-03    347.89        .18142E-02** at limit **
  25  Prefactor     .10000E-03    467.98        .18142E-02** at limit **
  26  Normalizat    1.3049        1.4131        .19339E-03    .82816E-04
  27  Prefactor     .12990E-01    9.5777        .12013E-01    .20027E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15642
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 156.852
  Prefactor  = 0.0001
  Prefactor  = 13.7716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 277.85
  Prefactor  = 0.0001
  norm       = 9.10031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30491
  Prefactor  = 0.0129902
 **********
 **   18 **HESSE 
 **********

 FCN=   605.3084     FROM HESSE     STATUS=OK           464 CALLS     4371 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1564        45.272        .53714E-04   -1.5414    
   2  Prefactor     .10000E-03    4.2552        .98447E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.255        .22679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    114.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     156.85        79.956        .64373E-05   -1.3197    
   6  Prefactor     .10000E-03    48.379        .33456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.772        51.488        .43114E-05   -1.4966    
   8  Prefactor     .10000E-03    31.117        .26783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.9262        .14344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    90.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.747        .17158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     277.85        199.10        .24336E-04   -1.2359    
  13  Prefactor     .10000E-03    11.862        .16560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.1003        266.32        .53641E-05   -1.5105    
  15  Prefactor     .10000E-03    2074.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    690.52        .42852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.051        .25918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    94.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7039.2        .41375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        7055.3        .40207E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        8349.4        .42441E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7365.7        .36454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    22.564        .22844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    347.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    467.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3049        .75376        .38678E-04   -.83420    
  27  Prefactor     .12990E-01    8.2494        .48054E-03   -1.4987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2725e-10
Minuit parameter uncertainties:
  1  19.7778
  2  2.37543e-05
  3  4.01495e-05
  4  0.000144858
  5  80.0112
  6  5.29907e-05
  7  51.6553
  8  4.61994e-06
  9  1.2284e-05
  10  3.42768e-06
  11  6.20078e-06
  12  199.593
  13  7.95282e-06
  14  98.9477
  15  0.00187412
  16  0.000546631
  17  4.6682e-05
  18  0.000100335
  19  0.00621197
  20  0.00149821
  21  0.00124041
  22  0.00513035
  23  2.93353e-06
  24  9.13367e-05
  25  6.38317e-05
  26  0.760251
  27  0.702384
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  6.201e-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.299e-02  7.024e-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.305e+00  7.603e-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: 5.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738308/likelihoodResults_588988801_589248001_4FGL_J1013.7+3444_daily_bin1349.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) = 605.308762349
delta logL = -0.000325679464595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 605.308438598
delta logL = -1.92868219528e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8636       1.0000          .0000       10.000    
     3 'Normalizat'    1.3050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .12933E-01   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=   605.2233     FROM MIGRAD    STATUS=CONVERGED    202 CALLS      407 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3029        17.728        .71835E-02   -.10384E-03
   2  Index         1.2920        .84621        .14796       -.73273E-05
   3  Normalizat    1.2980        .27249        .19338E-03   -.34979E-05
   4  Prefactor     .16598E-12    2.2220        .12024E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30293
  Index      = 1.29198
  Normalizat = 1.29802
  Prefactor  = 1.65978e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   605.2233     FROM HESSE     STATUS=OK            29 CALLS      436 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3029        18.784        .16702E-03   -1.5206    
   2  Index         1.2920        .96694        .60645E-02   -.83546    
   3  Normalizat    1.2980        .27130        .77354E-05   -.83625    
   4  Prefactor     .16598E-12    2.2257        .24048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59086e-10
Minuit parameter uncertainties:
  1  18.8019
  2  0.980859
  3  0.271595
  4  1.26639e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738308': 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) = 605.223293829
delta logL = 0.0851428406887

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  6.303e+00  1.880e+01  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  1.292e+00  9.809e-01  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.660e-13  1.266e-06  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.298e+00  2.716e-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/738308/cmap_HighResolution_588988801_589248001_4FGL_J1013.7+3444_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-02', job_status='DONE', photon_flux_upper_limit='5.74e-07', time_completed='2021-09-01 14:18:06.381546', job_id='738308', GAL2='0.00', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630531086.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.01', dlogl='8.51e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1349' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:18:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 738308: <4FGL_J1013.7+3444_daily_bin1349> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1349> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:06:14 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:07:31 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:07:31 2021
Terminated at Wed Sep  1 14:18:07 2021
Results reported at Wed Sep  1 14:18:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1349 153.449 34.7384 588988801 589248001 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 :                                   384.00 sec.
    Max Memory :                                 1208 MB
    Average Memory :                             259.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            713 sec.

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

