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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1220
RA = 153.449, Dec = 34.7384
tmin = 555552001, tmax = 555811201
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='738088', job_status='RUN', time_executed='2021-09-01 14:06:52.965992', time_epoch_executed='1630530412.97' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738088

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738088/ft1_4FGL_J1013.7+3444_daily_bin1220.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738088/ft2_4FGL_J1013.7+3444_daily_bin1220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738088/ft1_4FGL_J1013.7+3444_daily_bin1220.fits outfile=/scratch/kocevski/738088/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1220.fits ra=153.449 dec=34.7384 rad=12.0 tmin=555552001.0 tmax=555811201.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.67
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738088/ft2_4FGL_J1013.7+3444_daily_bin1220.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/738088/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1220.fits evtable="EVENTS" outfile="/scratch/kocevski/738088/ft1_filtered_4FGL_J1013.7+3444_daily_bin1220.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.69
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738088/ft1_filtered_4FGL_J1013.7+3444_daily_bin1220.fits" evtable="EVENTS" scfile=/scratch/kocevski/738088/ft2_4FGL_J1013.7+3444_daily_bin1220.fits sctable="SC_DATA" outfile=/scratch/kocevski/738088/ltcube_555552001_555811201_4FGL_J1013.7+3444_daily_bin1220.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/738088/ft2_4FGL_J1013.7+3444_daily_bin1220.fits
.....................!
real 12.57
user 12.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738088/ft1_filtered_4FGL_J1013.7+3444_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/738088/ft2_4FGL_J1013.7+3444_daily_bin1220.fits sctable="SC_DATA" expcube=/scratch/kocevski/738088/ltcube_555552001_555811201_4FGL_J1013.7+3444_daily_bin1220.fits outfile=/scratch/kocevski/738088/expmap_555552001_555811201_4FGL_J1013.7+3444_daily_bin1220.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/738088/ltcube_555552001_555811201_4FGL_J1013.7+3444_daily_bin1220.fits
.....................!
real 191.29
user 185.44
sys 5.40

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/738088/ft1_filtered_4FGL_J1013.7+3444_daily_bin1220.fits scfile=/scratch/kocevski/738088/ft2_4FGL_J1013.7+3444_daily_bin1220.fits outfile=/scratch/kocevski/738088/cmap_555552001_555811201_4FGL_J1013.7+3444_daily_bin1220.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.70
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738088/ft1_filtered_4FGL_J1013.7+3444_daily_bin1220.fits scfile=/scratch/kocevski/738088/ft2_4FGL_J1013.7+3444_daily_bin1220.fits outfile=/scratch/kocevski/738088/cmap_HighResolution_555552001_555811201_4FGL_J1013.7+3444_daily_bin1220.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.63
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738088/ft1_filtered_4FGL_J1013.7+3444_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/738088/ft2_4FGL_J1013.7+3444_daily_bin1220.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738088/Model_4FGL_J1013.7+3444_daily_bin1220.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/738088/ft1_filtered_4FGL_J1013.7+3444_daily_bin1220.fits.....................!
real 77.14
user 72.04
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7914       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3084       1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.640       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.420       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4499       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1569       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.310       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.440       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.765       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0231       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2178       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80658       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=   9324.599     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3238 TOTAL
                     EDM=   .90E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7916        4.9912        .30321E-05   -.61498E-05
   2  Prefactor     6.3083        2.8701       -.18400E-06   -.13594E-04
   3  norm          .10000E-03    6.3848       -.78953E-07** at limit **
   4  Prefactor     .10000E-03    12.131        .18246E-07** at limit **
   5  Prefactor     .10000E-03    6.1198       -.16112E-06** at limit **
   6  Prefactor     43.636        30.874        .45792E-06   -.31356E-05
   7  Prefactor     13.420        7.3303        .39930E-07   -.17901E-04
   8  Prefactor     .10000E-03    2.9081        .95595E-07** at limit **
   9  Prefactor     1.4498        1.9704        .92540E-07   -.46178E-04
  10  norm          3.1572        6.5686        .25865E-06   -.77688E-05
  11  Prefactor     3.8844        2.7626       -.49978E-07   -.95396E-04
  12  Prefactor     .10000E-03    5.8717       -.16486E-06** at limit **
  13  Prefactor     .10000E-03    1.9100       -.32895E-07** at limit **
  14  norm          .10000E-03    6.9622        .37937E-06** at limit **
  15  Prefactor     11.286        39.521        .72604E-05   -.36513E-05
  16  Prefactor     .10000E-03    12.500       -.21530E-06** at limit **
  17  Prefactor     5.4002        3.5951        .34870E-07   -.78385E-04
  18  Prefactor     .10000E-03    2.3293       -.19066E-07** at limit **
  19  Prefactor     33.439        27.899        .19622E-06   -.16590E-04
  20  Prefactor     .10000E-03    5.7571       -.19222E-06** at limit **
  21  Prefactor     63.762        58.385        .47112E-06   -.20157E-05
  22  Prefactor     .10000E-03    4.8380        .20228E-06** at limit **
  23  norm          1.0230        .23139        .71122E-08   -.24343E-03
  24  Prefactor     .10000E-03    16.958        .21416E-06** at limit **
  25  Prefactor     .10000E-03    3.2010       -.56328E-07** at limit **
  26  Normalizat    1.2179        .13993       -.24727E-07   -.12620E-04
  27  Prefactor     .80642        .15824       -.96405E-06   -.64807E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.79158
  Prefactor  = 6.30826
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6365
  Prefactor  = 13.4195
  Prefactor  = 0.0001
  Prefactor  = 1.44976
  norm       = 3.15722
  Prefactor  = 3.88438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2856
  Prefactor  = 0.0001
  Prefactor  = 5.40021
  Prefactor  = 0.0001
  Prefactor  = 33.4389
  Prefactor  = 0.0001
  Prefactor  = 63.7618
  Prefactor  = 0.0001
  norm       = 1.02303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21789
  Prefactor  = 0.806423
 **********
 **   18 **HESSE 
 **********

 FCN=   9324.599     FROM HESSE     STATUS=OK           486 CALLS     3724 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7916        5.0022        .12176E-02   -1.5374    
   2  Prefactor     6.3083        2.8706        .10550E-03   -1.5206    
   3  norm          .10000E-03    6.4052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.636        31.004        .60687E-04   -1.4386    
   7  Prefactor     13.420        7.3198        .10934E-03   -1.4975    
   8  Prefactor     .10000E-03    2.9217        .16081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4498        1.9450        .15029E-03   -1.5467    
  10  norm          3.1572        6.5584        .22812E-03   -1.5353    
  11  Prefactor     3.8844        2.7638        .12908E-03   -1.5314    
  12  Prefactor     .10000E-03    5.8752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9360        .12998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.1899        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.286        39.535        .11913E-03   -1.5036    
  16  Prefactor     .10000E-03    12.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4002        3.5998        .13809E-03   -1.5243    
  18  Prefactor     .10000E-03    2.3641        .14377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.439        27.873        .69295E-04   -1.4551    
  20  Prefactor     .10000E-03    5.7613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.762        58.398        .50254E-04   -1.4109    
  22  Prefactor     .10000E-03    4.8621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0230        .23169        .21370E-04   -1.5506    
  24  Prefactor     .10000E-03    17.389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.2028        .16872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2179        .16614        .22253E-03   -.86052    
  27  Prefactor     .80642        .18582        .31438E-03   -.99492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08456e-10
Minuit parameter uncertainties:
  1  5.00294
  2  2.87063
  3  5.74256e-06
  4  8.25848e-06
  5  4.36485e-06
  6  31.0158
  7  7.32025
  8  2.38712e-06
  9  1.94504
  10  6.55985
  11  2.7639
  12  5.74074e-07
  13  1.9858e-06
  14  2.31747e-06
  15  39.6268
  16  6.66979e-07
  17  3.59991
  18  8.79217e-07
  19  27.8839
  20  1.9542e-06
  21  58.4504
  22  8.98731e-07
  23  0.231693
  24  1.53131e-05
  25  1.17219e-07
  26  0.166215
  27  0.185966
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  3.884e+00  2.764e+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:  8.064e-01  1.860e-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.218e+00  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 153.449 34.738
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.71e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 9.81e-06 +/- 6.98e-06

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) = 9323.91869894
delta logL = 0.680182036149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9323.91152038
delta logL = 0.687360592783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0490       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8195       1.0000          .0000       10.000    
     3 'Normalizat'    1.2485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78269       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9323.912     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0490        3.3463        .50097E-02   -.23601E-02
   2  Index         1.8196        .42133        .26943       -.29847E-04
   3  Normalizat    1.2486        .13393        .49782E-01    .16935E-03
   4  Prefactor     .78265        .15750        .71977E-01   -.20361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.04896
  Index      = 1.81963
  Normalizat = 1.24856
  Prefactor  = 0.782654
 **********
 **   18 **HESSE 
 **********

 FCN=   9323.912     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0490        3.3668        .71551E-03   -1.5306    
   2  Index         1.8196        .54703        .93782E-02   -.68940    
   3  Normalizat    1.2486        .15644        .22008E-03   -.85115    
   4  Prefactor     .78265        .18368        .31853E-03   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9989e-09
Minuit parameter uncertainties:
  1  3.36693
  2  0.548879
  3  0.156504
  4  0.183819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738088': 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) = 9323.9115203
delta logL = 0.687360671005

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  4.049e+00  3.367e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  1.820e+00  5.489e-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:  7.827e-01  1.838e-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.249e+00  1.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 153.449 34.738
Photon Index (Free Index): 1.82 +/- 0.55
Photon Flux (Free Index): 1.68e-08 +/- 1.78e-08
Energy Flux (Free Index): 1.89e-05 +/- 2.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/738088/cmap_HighResolution_555552001_555811201_4FGL_J1013.7+3444_daily_bin1220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.71e-08', energy_flux2='1.89e-05', photon_flux_error='2.64e-08', dlogl='6.87e-01', energy_flux='9.81e-06', photon_flux2='1.68e-08', job_status='DONE', time_completed='2021-09-01 14:21:38.306995', photon_index_error2='0.55', photon_index2='1.82', ts='4.90', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='1.22', time_epoch_completed='1630531298.31', return_code='0', job_id='738088', GAL2='0.78', EG2='1.25', return_code2='0', energy_flux_error='6.98e-06', photon_flux_error2='1.78e-08', ts2='6.27', photon_index='2.59' WHERE bin_id='1220' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 738088: <4FGL_J1013.7+3444_daily_bin1220> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1220> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:05:52 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:06:38 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:06:38 2021
Terminated at Wed Sep  1 14:21:40 2021
Results reported at Wed Sep  1 14:21:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1220 153.449 34.7384 555552001 555811201 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 :                                   878.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            948 sec.

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

