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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1046
RA = 153.449, Dec = 34.7384
tmin = 510451201, tmax = 510710401
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='737793', job_status='RUN', time_executed='2021-09-01 14:05:43.688797', time_epoch_executed='1630530343.69' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737793/ft1_4FGL_J1013.7+3444_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737793/ft2_4FGL_J1013.7+3444_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737793/ft1_4FGL_J1013.7+3444_daily_bin1046.fits outfile=/scratch/kocevski/737793/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1046.fits ra=153.449 dec=34.7384 rad=12.0 tmin=510451201.0 tmax=510710401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.07
user 3.82
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737793/ft1_filtered_4FGL_J1013.7+3444_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/737793/ft2_4FGL_J1013.7+3444_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/737793/ltcube_510451201_510710401_4FGL_J1013.7+3444_daily_bin1046.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/737793/ft2_4FGL_J1013.7+3444_daily_bin1046.fits
.....................!
real 14.13
user 13.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737793/ft1_filtered_4FGL_J1013.7+3444_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/737793/ft2_4FGL_J1013.7+3444_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/737793/ltcube_510451201_510710401_4FGL_J1013.7+3444_daily_bin1046.fits outfile=/scratch/kocevski/737793/expmap_510451201_510710401_4FGL_J1013.7+3444_daily_bin1046.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/737793/ltcube_510451201_510710401_4FGL_J1013.7+3444_daily_bin1046.fits
.....................!
real 190.62
user 185.23
sys 4.49

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/737793/ft1_filtered_4FGL_J1013.7+3444_daily_bin1046.fits scfile=/scratch/kocevski/737793/ft2_4FGL_J1013.7+3444_daily_bin1046.fits outfile=/scratch/kocevski/737793/cmap_510451201_510710401_4FGL_J1013.7+3444_daily_bin1046.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737793/ft1_filtered_4FGL_J1013.7+3444_daily_bin1046.fits scfile=/scratch/kocevski/737793/ft2_4FGL_J1013.7+3444_daily_bin1046.fits outfile=/scratch/kocevski/737793/cmap_HighResolution_510451201_510710401_4FGL_J1013.7+3444_daily_bin1046.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.60
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737793/ft1_filtered_4FGL_J1013.7+3444_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/737793/ft2_4FGL_J1013.7+3444_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737793/Model_4FGL_J1013.7+3444_daily_bin1046.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/737793/ft1_filtered_4FGL_J1013.7+3444_daily_bin1046.fits.....................!
real 57.77
user 52.27
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2202       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.299       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.830       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13820E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16537E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10871E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.094       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68539E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1843       1.0000         .10000E-03   10000.    
    14 'norm      '    18.835       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2314       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    120.14       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .88596       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3229       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0694       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97706       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=   6475.631     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3349 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0082        .34788E-06** at limit **
   2  Prefactor     .10000E-03    1.5749        .92904E-07** at limit **
   3  norm          5.2210        8.3384       -.35091E-06    .35619E-04
   4  Prefactor     11.283        25.481       -.43500E-06   -.17816E-04
   5  Prefactor     14.824        23.607        .24518E-06   -.96354E-05
   6  Prefactor     .10000E-03    56.742        .98834E-06** at limit **
   7  Prefactor     .10000E-03    5.8360       -.18432E-05** at limit **
   8  Prefactor     .10000E-03    2.5268       -.25008E-08** at limit **
   9  Prefactor     .10000E-03    1.1352        .74830E-07** at limit **
  10  norm          12.089        9.6229       -.40836E-06   -.29356E-03
  11  Prefactor     2.2014        3.5981        .39978E-06    .13298E-03
  12  Prefactor     .10001E-03    111.95       -.25739E-04** at limit **
  13  Prefactor     3.1822        4.5498       -.51141E-06   -.44618E-03
  14  norm          18.843        11.680       -.11475E-06   -.13535E-03
  15  Prefactor     2.6427        149.57        .31715E-05   -.41019E-04
  16  Prefactor     .10000E-03    54.459        .15840E-05** at limit **
  17  Prefactor     .10000E-03    1.6630       -.43215E-07** at limit **
  18  Prefactor     5.2295        5.5172       -.32239E-06   -.50286E-03
  19  Prefactor     .10000E-03    8.9089        .29110E-07** at limit **
  20  Prefactor     .10000E-03    7.0121       -.46287E-07** at limit **
  21  Prefactor     120.14        98.637        .30840E-06   -.13592E-04
  22  Prefactor     .10000E-03    3.2402       -.24119E-07** at limit **
  23  norm          .88592        .26635        .21451E-07   -.25735E-03
  24  Prefactor     3.3228        6.9849       -.17126E-05    .14796E-03
  25  Prefactor     .10000E-03    5.0655       -.11830E-07** at limit **
  26  Normalizat    1.0692        .16512       -.10322E-05   -.83166E-03
  27  Prefactor     .97731        .19029        .52259E-07   -.61986E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.22096
  Prefactor  = 11.2829
  Prefactor  = 14.8238
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0891
  Prefactor  = 2.20135
  Prefactor  = 0.000100011
  Prefactor  = 3.18221
  norm       = 18.8432
  Prefactor  = 2.64266
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.22946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 120.14
  Prefactor  = 0.0001
  norm       = 0.885918
  Prefactor  = 3.32285
  Prefactor  = 0.0001
  Normalizat = 1.06916
  Prefactor  = 0.977311
 **********
 **   18 **HESSE 
 **********

 FCN=   6475.631     FROM HESSE     STATUS=OK           490 CALLS     3839 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.165        .34665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6119        .98552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2210        8.3275        .87968E-03   -1.5251    
   4  Prefactor     11.283        25.394        .11918E-03   -1.5036    
   5  Prefactor     14.824        23.617        .10401E-03   -1.4938    
   6  Prefactor     .10000E-03    57.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.701        .34607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5304        .12491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0261        .16559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.089        9.5629        .57595E-03   -1.5012    
  11  Prefactor     2.2014        3.5328        .16734E-03   -1.5411    
  12  Prefactor     .10001E-03    111.78        .56803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1822        4.4715        .17367E-03   -1.5351    
  14  norm          18.843        11.365        .92288E-04   -1.4840    
  15  Prefactor     2.6427        148.78        .25204E-03   -1.5383    
  16  Prefactor     .10000E-03    54.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.6788        .10124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2295        5.4899        .17574E-03   -1.5251    
  19  Prefactor     .10000E-03    8.9117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     120.14        98.670        .36716E-04   -1.3511    
  22  Prefactor     .10000E-03    3.2426        .14147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .88592        .26671        .21994E-04   -1.5520    
  24  Prefactor     3.3228        6.9835        .11103E-02   -1.5343    
  25  Prefactor     .10000E-03    5.0711        .17688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0692        .18755        .22489E-03   -.90748    
  27  Prefactor     .97731        .21719        .28221E-03   -.93490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12173e-09
Minuit parameter uncertainties:
  1  0.00018517
  2  9.0053e-06
  3  8.32932
  4  25.4181
  5  23.6319
  6  0.000587976
  7  0.000202403
  8  1.10296e-06
  9  1.25746e-05
  10  9.56412
  11  3.53318
  12  0.00225631
  13  4.47196
  14  11.3663
  15  39.7612
  16  0.000504498
  17  7.36385e-07
  18  5.49046
  19  5.59048e-06
  20  5.83626e-06
  21  98.8049
  22  2.66066e-06
  23  0.266707
  24  6.98522
  25  4.7711e-07
  26  0.187665
  27  0.217387
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  2.201e+00  3.533e+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.773e-01  2.174e-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.069e+00  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 9.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737793/likelihoodResults_510451201_510710401_4FGL_J1013.7+3444_daily_bin1046.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) = 6475.62146417
delta logL = 0.00951919386898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6475.61867331
delta logL = 0.0123100553601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4698       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4345       1.0000          .0000       10.000    
     3 'Normalizat'    1.0716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97515       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=   6475.619     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4721        144.24        .65047E-02    .55890E-03
   2  Index         2.4330        5.6812        .23773        .39568E-04
   3  Normalizat    1.0718        .52018E-01    .39295E-01    .96132E-05
   4  Prefactor     .97491        .61650E-01    .45956E-01    .14320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.47209
  Index      = 2.43297
  Normalizat = 1.07179
  Prefactor  = 0.974907
 **********
 **   18 **HESSE 
 **********

 FCN=   6475.619     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4721        3.9207        .17623E-03   -1.5393    
   2  Index         2.4330        1.0033        .12420E-01   -.53915    
   3  Normalizat    1.0718        .17935        .22465E-03   -.90663    
   4  Prefactor     .97491        .21536        .28251E-03   -.93571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38475e-09
Minuit parameter uncertainties:
  1  3.92114
  2  1.01265
  3  0.179453
  4  0.215554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737793': 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) = 6475.61867157
delta logL = 0.0123117966486

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  2.472e+00  3.921e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.433e+00  1.013e+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:  9.749e-01  2.156e-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.072e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
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/737793/cmap_HighResolution_510451201_510710401_4FGL_J1013.7+3444_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.36e-08', time_completed='2021-09-01 14:19:45.528250', job_id='737793', GAL2='0.97', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630531185.53', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.23e-02', ts2='0.63', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1046' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:19:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 737793: <4FGL_J1013.7+3444_daily_bin1046> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1046> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:05:29 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:05:33 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:05:33 2021
Terminated at Wed Sep  1 14:19:46 2021
Results reported at Wed Sep  1 14:19:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1046 153.449 34.7384 510451201 510710401 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 :                                   830.00 sec.
    Max Memory :                                 1129 MB
    Average Memory :                             318.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            857 sec.

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

