/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 46 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 = 7461
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1003
RA = 153.449, Dec = 34.7384
tmin = 499305601, tmax = 499564801
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='736260', job_status='RUN', time_executed='2021-09-01 14:02:06.703086', time_epoch_executed='1630530126.7' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736260

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736260/ft1_4FGL_J1013.7+3444_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736260/ft2_4FGL_J1013.7+3444_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736260/ft1_4FGL_J1013.7+3444_daily_bin1003.fits outfile=/scratch/kocevski/736260/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1003.fits ra=153.449 dec=34.7384 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.46
user 5.21
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736260/ft1_filtered_4FGL_J1013.7+3444_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/736260/ft2_4FGL_J1013.7+3444_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/736260/ltcube_499305601_499564801_4FGL_J1013.7+3444_daily_bin1003.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/736260/ft2_4FGL_J1013.7+3444_daily_bin1003.fits
.....................!
real 13.20
user 12.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736260/ft1_filtered_4FGL_J1013.7+3444_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/736260/ft2_4FGL_J1013.7+3444_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/736260/ltcube_499305601_499564801_4FGL_J1013.7+3444_daily_bin1003.fits outfile=/scratch/kocevski/736260/expmap_499305601_499564801_4FGL_J1013.7+3444_daily_bin1003.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/736260/ltcube_499305601_499564801_4FGL_J1013.7+3444_daily_bin1003.fits
.....................!
real 190.63
user 185.72
sys 4.47

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/736260/ft1_filtered_4FGL_J1013.7+3444_daily_bin1003.fits scfile=/scratch/kocevski/736260/ft2_4FGL_J1013.7+3444_daily_bin1003.fits outfile=/scratch/kocevski/736260/cmap_499305601_499564801_4FGL_J1013.7+3444_daily_bin1003.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736260/ft1_filtered_4FGL_J1013.7+3444_daily_bin1003.fits scfile=/scratch/kocevski/736260/ft2_4FGL_J1013.7+3444_daily_bin1003.fits outfile=/scratch/kocevski/736260/cmap_HighResolution_499305601_499564801_4FGL_J1013.7+3444_daily_bin1003.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736260/ft1_filtered_4FGL_J1013.7+3444_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/736260/ft2_4FGL_J1013.7+3444_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736260/Model_4FGL_J1013.7+3444_daily_bin1003.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/736260/ft1_filtered_4FGL_J1013.7+3444_daily_bin1003.fits.....................!
real 38.92
user 37.49
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6716       1.0000         .10000E-03   10000.    
     3 'norm      '    7.5585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.628       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.315       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7371       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16172       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8066       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.791       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.881       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.807       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.641       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0110       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81905       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3878.015     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     2731 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8565        .13496E-05** at limit **
   2  Prefactor     7.6701        4.0646       -.63963E-07   -.33756E-03
   3  norm          7.5593        1.1410       -.89984E-07   -.45561E-03
   4  Prefactor     .10000E-03    16.691       -.66080E-06** at limit **
   5  Prefactor     15.623        3.0306        .39118E-06    .30319E-02
   6  Prefactor     .10000E-03    8.9315       -.13273E-05** at limit **
   7  Prefactor     15.314        2.1894        .22148E-06    .64453E-02
   8  Prefactor     .10000E-03    3.5463       -.20349E-05** at limit **
   9  Prefactor     .10000E-03    1.3248        .49295E-06** at limit **
  10  norm          15.185        4.1756       -.24619E-06   -.95859E-02
  11  Prefactor     3.7961        6.0358       -.21064E-05   -.69958E-03
  12  Prefactor     36.557        2.2021       -.75047E-07   -.79483E-03
  13  Prefactor     .26135E-01    544.76        .39957E-04   -.19559E-03
  14  norm          3.8228        4.1111       -.16393E-05   -.21919E-02
  15  Prefactor     25.808        6.8228        .30776E-06   -.37999E-02
  16  Prefactor     26.954        27.745        .10589E-05   -.18380E-03
  17  Prefactor     .10000E-03    2.6540       -.37306E-06** at limit **
  18  Prefactor     .10010E-03    4.7324        .75010E-06** at limit **
  19  Prefactor     .10000E-03    14.140       -.34309E-05** at limit **
  20  Prefactor     30.783        6.8673       -.14166E-06    .23424E-02
  21  Prefactor     46.672        9.9018        .24454E-06   -.85584E-02
  22  Prefactor     .10000E-03    5.2851       -.70629E-06** at limit **
  23  norm          1.0110        .34556       -.18572E-08    .81709E-04
  24  Prefactor     .10001E-03    2.4137       -.18488E-05** at limit **
  25  Prefactor     .10012E-03    3.7592        .68913E-06** at limit **
  26  Normalizat    .81987        .22934        .10014E-05    .11409E-03
  27  Prefactor     .94024        .27275       -.39771E-06    .63124E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.6701
  norm       = 7.55929
  Prefactor  = 0.000100002
  Prefactor  = 15.6229
  Prefactor  = 0.000100002
  Prefactor  = 15.314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.1853
  Prefactor  = 3.79614
  Prefactor  = 36.5569
  Prefactor  = 0.0261346
  norm       = 3.82278
  Prefactor  = 25.8083
  Prefactor  = 26.9536
  Prefactor  = 0.0001
  Prefactor  = 0.000100104
  Prefactor  = 0.0001
  Prefactor  = 30.7827
  Prefactor  = 46.6725
  Prefactor  = 0.000100002
  norm       = 1.01096
  Prefactor  = 0.000100008
  Prefactor  = 0.000100123
  Normalizat = 0.81987
  Prefactor  = 0.94024
 **********
 **   18 **HESSE 
 **********

 FCN=   3878.015     FROM HESSE     STATUS=OK           550 CALLS     3281 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8619        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6701        4.0783        .36195E-02   -1.5154    
   3  norm          7.5593        10.744        .36468E-02   -1.5158    
   4  Prefactor     .10000E-03    16.743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.623        17.280        .25329E-02   -1.4917    
   6  Prefactor     .10000E-03    9.1492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.314        9.7916        .25586E-02   -1.4925    
   8  Prefactor     .10000E-03    5.6720        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.185        13.036        .25693E-02   -1.4928    
  11  Prefactor     3.7961        5.3391        .52217E-02   -1.5318    
  12  Prefactor     36.557        34.872        .16570E-02   -1.4498    
  13  Prefactor     .26135E-01    4.4369        .78325E-01   -1.5676    
  14  norm          3.8228        13.197        .51721E-02   -1.5317    
  15  Prefactor     25.808        74.166        .19720E-02   -1.4691    
  16  Prefactor     26.954        31.424        .19317E-02   -1.4669    
  17  Prefactor     .10000E-03    2.6325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10010E-03    7.6421        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.283        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.783        41.297        .18047E-02   -1.4598    
  21  Prefactor     46.672        166.21        .14678E-02   -1.4341    
  22  Prefactor     .10000E-03    5.4073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0110        .34524        .47137E-02   -1.5507    
  24  Prefactor     .10001E-03    5.6403        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10012E-03    7.9586        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .81987        .20517        .43858E-01   -.99336    
  27  Prefactor     .94024        .23588        .45525E-01   -.94749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10097e-06
Minuit parameter uncertainties:
  1  4.46116e-05
  2  4.07849
  3  10.7468
  4  0.000402248
  5  17.286
  6  0.00026532
  7  9.79267
  8  3.83446e-05
  9  1.08725e-05
  10  13.0383
  11  5.33973
  12  34.891
  13  0.679796
  14  13.2068
  15  74.433
  16  31.4434
  17  1.22485e-05
  18  0.00177992
  19  9.32865e-05
  20  41.335
  21  167.901
  22  0.000185059
  23  0.345239
  24  0.000416386
  25  0.00198092
  26  0.205365
  27  0.236139
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  3.796e+00  5.340e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.402e-01  2.361e-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:  8.199e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736260/likelihoodResults_499305601_499564801_4FGL_J1013.7+3444_daily_bin1003.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) = 3877.94249472
delta logL = 0.0723045182331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3877.93888294
delta logL = 0.0759163040252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6731       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2156       1.0000          .0000       10.000    
     3 'Normalizat'    .83576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92531       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=   3877.939     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      262 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6736        5.7397        .15680E-03   -.14388E-02
   2  Index         2.2157        .88574        .94029E-02   -.21701E-03
   3  Normalizat    .83546        .22644        .22960E-03    .20350E-03
   4  Prefactor     .92551        .27206        .26512E-03    .21890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.67358
  Index      = 2.21568
  Normalizat = 0.835464
  Prefactor  = 0.925514
 **********
 **   18 **HESSE 
 **********

 FCN=   3877.939     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6736        5.7150        .62719E-05   -1.5276    
   2  Index         2.2157        .88133        .37612E-03   -.59061    
   3  Normalizat    .83546        .22655        .45920E-04   -.98766    
   4  Prefactor     .92551        .27218        .53024E-04   -.95255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58957e-09
Minuit parameter uncertainties:
  1  5.71562
  2  0.88808
  3  0.226811
  4  0.272584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736260': 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) = 3877.93888167
delta logL = 0.0759175706512

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  4.674e+00  5.716e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.216e+00  8.881e-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:  9.255e-01  2.726e-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:  8.355e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 153.449 34.738
Photon Index (Free Index): 2.22 +/- 0.89
Photon Flux (Free Index): 2.82e-08 +/- 4.25e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.74e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/736260/cmap_HighResolution_499305601_499564801_4FGL_J1013.7+3444_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='7.59e-02', photon_flux2='2.82e-08', job_status='DONE', time_completed='2021-09-01 14:12:16.507507', photon_index_error2='0.89', photon_index2='2.22', ts='0.89', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.74e-05', EG='0.82', time_epoch_completed='1630530736.51', return_code='0', job_id='736260', GAL2='0.93', EG2='0.84', return_code2='0', photon_flux_error2='4.25e-08', ts2='1.03', photon_index='2.59' WHERE bin_id='1003' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:12:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 736260: <4FGL_J1013.7+3444_daily_bin1003> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1003 153.449 34.7384 499305601 499564801 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 :                                   607.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            714 sec.

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

