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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1044
RA = 153.449, Dec = 34.7384
tmin = 509932801, tmax = 510192001
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='737790', job_status='RUN', time_executed='2021-09-01 14:08:17.964632', time_epoch_executed='1630530497.96' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737790/ft1_4FGL_J1013.7+3444_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737790/ft2_4FGL_J1013.7+3444_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737790/ft1_4FGL_J1013.7+3444_daily_bin1044.fits outfile=/scratch/kocevski/737790/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1044.fits ra=153.449 dec=34.7384 rad=12.0 tmin=509932801.0 tmax=510192001.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.57
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737790/ft2_4FGL_J1013.7+3444_daily_bin1044.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/737790/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/737790/ft1_filtered_4FGL_J1013.7+3444_daily_bin1044.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737790/ft1_filtered_4FGL_J1013.7+3444_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/737790/ft2_4FGL_J1013.7+3444_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/737790/ltcube_509932801_510192001_4FGL_J1013.7+3444_daily_bin1044.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/737790/ft2_4FGL_J1013.7+3444_daily_bin1044.fits
.....................!
real 17.19
user 16.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737790/ft1_filtered_4FGL_J1013.7+3444_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/737790/ft2_4FGL_J1013.7+3444_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/737790/ltcube_509932801_510192001_4FGL_J1013.7+3444_daily_bin1044.fits outfile=/scratch/kocevski/737790/expmap_509932801_510192001_4FGL_J1013.7+3444_daily_bin1044.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/737790/ltcube_509932801_510192001_4FGL_J1013.7+3444_daily_bin1044.fits
.....................!
real 193.11
user 187.61
sys 4.63

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/737790/ft1_filtered_4FGL_J1013.7+3444_daily_bin1044.fits scfile=/scratch/kocevski/737790/ft2_4FGL_J1013.7+3444_daily_bin1044.fits outfile=/scratch/kocevski/737790/cmap_509932801_510192001_4FGL_J1013.7+3444_daily_bin1044.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737790/ft1_filtered_4FGL_J1013.7+3444_daily_bin1044.fits scfile=/scratch/kocevski/737790/ft2_4FGL_J1013.7+3444_daily_bin1044.fits outfile=/scratch/kocevski/737790/cmap_HighResolution_509932801_510192001_4FGL_J1013.7+3444_daily_bin1044.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737790/ft1_filtered_4FGL_J1013.7+3444_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/737790/ft2_4FGL_J1013.7+3444_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737790/Model_4FGL_J1013.7+3444_daily_bin1044.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/737790/ft1_filtered_4FGL_J1013.7+3444_daily_bin1044.fits.....................!
real 51.02
user 49.49
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11637E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1354       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73214E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.848       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7773       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1959       1.0000         .10000E-03   10000.    
    14 'norm      '    22.236       1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.805       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.861       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .47784       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    213.36       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0593       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.932       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1759       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .74770       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=   5775.666     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3896 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6323        .36229E-07** at limit **
   2  Prefactor     6.1359        3.8501        .10652E-07   -.74397E-05
   3  norm          .10000E-03    5.7508       -.48490E-08** at limit **
   4  Prefactor     40.952        32.422       -.51819E-05   -.29115E-04
   5  Prefactor     .10000E-03    85.893        .11414E-05** at limit **
   6  Prefactor     .10006E-03    31.553       -.17965E-06** at limit **
   7  Prefactor     9.3483        7.0162        .21863E-05    .57399E-04
   8  Prefactor     14.851        10.905       -.75990E-06   -.15839E-04
   9  Prefactor     .10000E-03    1.7577        .47867E-08** at limit **
  10  norm          1.7773        2.7297        .55024E-06   -.12641E-02
  11  Prefactor     .10000E-03    1.5046        .17806E-07** at limit **
  12  Prefactor     .10000E-03    8.1274        .15859E-07** at limit **
  13  Prefactor     2.1964        3.2081        .21817E-07   -.52818E-04
  14  norm          22.235        10.572       -.84987E-07   -.28175E-04
  15  Prefactor     54.815        64.854       -.18585E-05   -.34357E-05
  16  Prefactor     11.860        20.465        .10129E-05    .16443E-05
  17  Prefactor     .47769        2.9754        .20615E-06   -.85608E-04
  18  Prefactor     .10000E-03    2.9955       -.33808E-07** at limit **
  19  Prefactor     .10000E-03    11.006        .95151E-07** at limit **
  20  Prefactor     .10000E-03    20.450       -.30126E-07** at limit **
  21  Prefactor     213.34        149.55       -.13288E-04   -.18339E-04
  22  Prefactor     .10000E-03    2.8292       -.38434E-08** at limit **
  23  norm          1.0593        .34486       -.10935E-06    .49178E-03
  24  Prefactor     18.939        19.031        .57935E-05    .34159E-04
  25  Prefactor     .10000E-03    13.220       -.22264E-06** at limit **
  26  Normalizat    1.1755        .18326        .15138E-06   -.36434E-04
  27  Prefactor     .74801        .19887       -.94659E-07   -.12326E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.13585
  norm       = 0.0001
  Prefactor  = 40.9521
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 9.34828
  Prefactor  = 14.8506
  Prefactor  = 0.0001
  norm       = 1.77727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19643
  norm       = 22.2354
  Prefactor  = 54.8146
  Prefactor  = 11.8597
  Prefactor  = 0.477687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 213.336
  Prefactor  = 0.0001
  norm       = 1.0593
  Prefactor  = 18.9386
  Prefactor  = 0.0001
  Normalizat = 1.17551
  Prefactor  = 0.748009
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.666     FROM HESSE     STATUS=OK           496 CALLS     4392 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    39.585        .37053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1359        3.7871        .11150E-03   -1.5213    
   3  norm          .10000E-03    5.7545        .17799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.952        32.504        .62641E-04   -1.4427    
   5  Prefactor     .10000E-03    88.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10006E-03    34.578        .11838       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3483        7.0426        .13108E-03   -1.5096    
   8  Prefactor     14.851        10.937        .10394E-03   -1.4937    
   9  Prefactor     .10000E-03    1.8297        .19645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7773        9.5821        .15700E-02   -1.5441    
  11  Prefactor     .10000E-03    1.5217        .90843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1964        3.1879        .15803E-03   -1.5412    
  14  norm          22.235        10.478        .84943E-04   -1.4765    
  15  Prefactor     54.815        64.913        .54183E-04   -1.4226    
  16  Prefactor     11.860        20.415        .11632E-03   -1.5019    
  17  Prefactor     .47769        5.4852        .24361E-02   -1.5570    
  18  Prefactor     .10000E-03    3.0280        .12814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     213.34        149.71        .13841E-03   -1.2776    
  22  Prefactor     .10000E-03    2.8297        .12485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0593        .34528        .23741E-04   -1.5502    
  24  Prefactor     18.939        19.100        .92050E-04   -1.4837    
  25  Prefactor     .10000E-03    13.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1755        .21113        .22293E-03   -.87363    
  27  Prefactor     .74801        .22872        .31236E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30428e-08
Minuit parameter uncertainties:
  1  6.00106e-05
  2  3.78723
  3  2.18087e-07
  4  32.5178
  5  1.4134e-05
  6  0.0028108
  7  7.04318
  8  10.938
  9  8.94358e-07
  10  8.25531
  11  1.14925e-06
  12  6.07511e-07
  13  3.18815
  14  10.4786
  15  64.9966
  16  20.4266
  17  3.23744
  18  9.2164e-06
  19  7.21504e-07
  20  2.60663e-05
  21  149.979
  22  5.32401e-07
  23  0.345285
  24  19.1057
  25  6.84113e-05
  26  0.211281
  27  0.229008
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.149e-06  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.480e-01  2.290e-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.176e+00  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/737790/likelihoodResults_509932801_510192001_4FGL_J1013.7+3444_daily_bin1044.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) = 5775.66914734
delta logL = -0.00309865678537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5775.66604891
delta logL = -2.23995812121e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5668       1.0000          .0000       10.000    
     3 'Normalizat'    1.1755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74805       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=   5775.666     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      254 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.167        .93165E-02** at limit **
   2  Index         2.0325        5.7127        .50000       -.24056E-07
   3  Normalizat    1.1755        .99964E-02    .22293E-03    .12703E-02
   4  Prefactor     .74801        .11469E-01    .31236E-03    .92138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03254
  Normalizat = 1.17551
  Prefactor  = 0.748012
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.666     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.462        .10736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0325        8.9837        .50000       -.63539    
   3  Normalizat    1.1755        .30423E-01    .44587E-04   -.87363    
   4  Prefactor     .74801        .34905E-01    .62471E-04   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.0239e-10
Minuit parameter uncertainties:
  1  1.34054e-05
  2  446.27
  3  0.0304234
  4  0.0349056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737790': 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): 102
logL (Free Index) = 5775.6660394
delta logL = 9.2884638434e-06

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.341e-05  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.033e+00  4.463e+02  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.480e-01  3.491e-02  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.176e+00  3.042e-02  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/737790/cmap_HighResolution_509932801_510192001_4FGL_J1013.7+3444_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-01 14:22:01.675807', job_id='737790', GAL2='0.75', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630531321.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='9.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1044' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:22:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 737790: <4FGL_J1013.7+3444_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1044> 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) <bullet0079>, 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:22:02 2021
Results reported at Wed Sep  1 14:22:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1044 153.449 34.7384 509932801 510192001 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 :                                   820.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            993 sec.

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

