/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 10 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7430
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1307
RA = 153.449, Dec = 34.7384
tmin = 578102401, tmax = 578361601
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='738204', job_status='RUN', time_executed='2021-09-01 14:07:38.280449', time_epoch_executed='1630530458.28' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738204/ft1_4FGL_J1013.7+3444_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738204/ft2_4FGL_J1013.7+3444_daily_bin1307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738204/ft1_4FGL_J1013.7+3444_daily_bin1307.fits outfile=/scratch/kocevski/738204/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1307.fits ra=153.449 dec=34.7384 rad=12.0 tmin=578102401.0 tmax=578361601.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.09
user 4.82
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738204/ft1_filtered_4FGL_J1013.7+3444_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/738204/ft2_4FGL_J1013.7+3444_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/738204/ltcube_578102401_578361601_4FGL_J1013.7+3444_daily_bin1307.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/738204/ft2_4FGL_J1013.7+3444_daily_bin1307.fits
.....................!
real 17.59
user 17.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738204/ft1_filtered_4FGL_J1013.7+3444_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/738204/ft2_4FGL_J1013.7+3444_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/738204/ltcube_578102401_578361601_4FGL_J1013.7+3444_daily_bin1307.fits outfile=/scratch/kocevski/738204/expmap_578102401_578361601_4FGL_J1013.7+3444_daily_bin1307.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/738204/ltcube_578102401_578361601_4FGL_J1013.7+3444_daily_bin1307.fits
.....................!
real 193.05
user 187.74
sys 4.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/738204/ft1_filtered_4FGL_J1013.7+3444_daily_bin1307.fits scfile=/scratch/kocevski/738204/ft2_4FGL_J1013.7+3444_daily_bin1307.fits outfile=/scratch/kocevski/738204/cmap_578102401_578361601_4FGL_J1013.7+3444_daily_bin1307.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.56
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738204/ft1_filtered_4FGL_J1013.7+3444_daily_bin1307.fits scfile=/scratch/kocevski/738204/ft2_4FGL_J1013.7+3444_daily_bin1307.fits outfile=/scratch/kocevski/738204/cmap_HighResolution_578102401_578361601_4FGL_J1013.7+3444_daily_bin1307.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/738204/ft1_filtered_4FGL_J1013.7+3444_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/738204/ft2_4FGL_J1013.7+3444_daily_bin1307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738204/Model_4FGL_J1013.7+3444_daily_bin1307.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/738204/ft1_filtered_4FGL_J1013.7+3444_daily_bin1307.fits.....................!
real 49.28
user 47.93
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8877       1.0000         .10000E-03   10000.    
     3 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.073       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11557E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20380E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.625       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75619E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.104       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.529       1.0000         .10000E-03   10000.    
    14 'norm      '    14.591       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7648       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3540       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8855       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.7263       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1632       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0123       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=   5617.808     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3346 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6444        .55569E-07** at limit **
   2  Prefactor     7.8864        4.7515       -.15738E-06    .11207E-05
   3  norm          .10000E-03    5.9139        .39955E-07** at limit **
   4  Prefactor     26.060        43.819       -.23625E-05    .34744E-04
   5  Prefactor     .10000E-03    51.833       -.86848E-05** at limit **
   6  Prefactor     .10000E-03    131.65       -.13856E-06** at limit **
   7  Prefactor     11.617        11.186       -.77270E-07   -.21450E-04
   8  Prefactor     .10000E-03    25.407        .98862E-06** at limit **
   9  Prefactor     .10000E-03    1.8980       -.90873E-07** at limit **
  10  norm          12.102        11.444       -.12704E-05   -.90713E-03
  11  Prefactor     .10060E-03    5.0833        .90174E-06** at limit **
  12  Prefactor     .10000E-03    36.628       -.19593E-05** at limit **
  13  Prefactor     17.634        10.574       -.12957E-05   -.58843E-03
  14  norm          14.583        10.643        .40476E-06   -.10667E-03
  15  Prefactor     .10000E-03    16.380       -.47407E-06** at limit **
  16  Prefactor     .10000E-03    14.941        .13531E-05** at limit **
  17  Prefactor     5.7654        4.9600       -.23274E-06   -.21127E-03
  18  Prefactor     7.3498        5.7544        .23419E-06   -.14027E-03
  19  Prefactor     .10000E-03    13.699       -.35491E-06** at limit **
  20  Prefactor     .10000E-03    9.6813       -.57184E-08** at limit **
  21  Prefactor     .10000E-03    48.704        .79642E-05** at limit **
  22  Prefactor     .10000E-03    4.4381        .41128E-07** at limit **
  23  norm          1.8857        .44794        .60058E-07    .22978E-03
  24  Prefactor     3.6951        32.857       -.10045E-04    .51655E-04
  25  Prefactor     .10000E-03    16.173       -.73682E-06** at limit **
  26  Normalizat    1.1633        .21211        .18463E-05   -.18430E-03
  27  Prefactor     1.0122        .22675       -.13054E-07   -.29973E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.88641
  norm       = 0.0001
  Prefactor  = 26.0598
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 11.6172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1023
  Prefactor  = 0.000100601
  Prefactor  = 0.0001
  Prefactor  = 17.6339
  norm       = 14.583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.76542
  Prefactor  = 7.34981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.88567
  Prefactor  = 3.6951
  Prefactor  = 0.0001
  Normalizat = 1.16327
  Prefactor  = 1.01222
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.808     FROM HESSE     STATUS=OK           494 CALLS     3840 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8864        4.7536        .12200E-03   -1.5146    
   3  norm          .10000E-03    5.9154        .17802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.060        43.724        .78454E-04   -1.4687    
   5  Prefactor     .10000E-03    50.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    133.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.617        11.103        .11749E-03   -1.5026    
   8  Prefactor     .10000E-03    25.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.573        .19183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.102        12.323        .57571E-03   -1.5012    
  11  Prefactor     .10060E-03    23.133        .39071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.634        12.183        .95663E-04   -1.4868    
  14  norm          14.583        10.639        .10486E-03   -1.4944    
  15  Prefactor     .10000E-03    16.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7654        4.9699        .14711E-03   -1.5228    
  18  Prefactor     7.3498        5.7562        .14790E-03   -1.5166    
  19  Prefactor     .10000E-03    13.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.6847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    47.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.4408        .15421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8857        .44811        .22960E-04   -1.5433    
  24  Prefactor     3.6951        32.278        .20918E-03   -1.5323    
  25  Prefactor     .10000E-03    16.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1633        .25587        .25897E-03   -.87745    
  27  Prefactor     1.0122        .27419        .31395E-03   -.92323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75329e-09
Minuit parameter uncertainties:
  1  1.17422e-05
  2  4.75386
  3  2.52666e-06
  4  43.7774
  5  0.000781344
  6  0.00024441
  7  11.1052
  8  0.000142599
  9  1.67127e-06
  10  12.3255
  11  0.00745793
  12  0.000118617
  13  12.1852
  14  10.6405
  15  2.55352e-05
  16  6.98591e-05
  17  4.97022
  18  5.75661
  19  1.66697e-05
  20  2.04083e-06
  21  0.000734964
  22  2.48692e-06
  23  0.448111
  24  21.8578
  25  8.86988e-05
  26  0.256146
  27  0.27457
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.006e-04  7.458e-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.012e+00  2.746e-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.163e+00  2.561e-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: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738204/likelihoodResults_578102401_578361601_4FGL_J1013.7+3444_daily_bin1307.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) = 5617.80782572
delta logL = -8.06445041235e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5617.8078254
delta logL = -7.74207182985e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96339E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5919       1.0000          .0000       10.000    
     3 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0124       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=   5617.792     FROM MIGRAD    STATUS=CONVERGED    180 CALLS      367 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71459        8.2023        .32225E-03   -.58563E-05
   2  Index         3.1084        2.3761        .81248E-02    .25626E-04
   3  Normalizat    1.1508        .24709        .26010E-03    .13287E-04
   4  Prefactor     1.0188        .27344        .31297E-03   -.61752E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.714593
  Index      = 3.10841
  Normalizat = 1.15075
  Prefactor  = 1.01876
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.792     FROM HESSE     STATUS=OK            25 CALLS      392 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71459        7.3112        .12890E-04   -1.5539    
   2  Index         3.1084        2.2567        .16250E-02   -.38798    
   3  Normalizat    1.1508        .24743        .10404E-04   -.88139    
   4  Prefactor     1.0188        .27385        .12519E-04   -.92107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94289e-12
Minuit parameter uncertainties:
  1  4.57184
  2  2.35731
  3  0.247684
  4  0.274227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738204': 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) = 5617.79227976
delta logL = 0.0155379029075

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  7.146e-01  4.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  3.108e+00  2.357e+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.019e+00  2.742e-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.151e+00  2.477e-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/738204/cmap_HighResolution_578102401_578361601_4FGL_J1013.7+3444_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-01 14:20:35.713264', job_id='738204', GAL2='1.02', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1630531235.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.55e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1307' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:20:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 738204: <4FGL_J1013.7+3444_daily_bin1307> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1307 153.449 34.7384 578102401 578361601 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            874 sec.

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

