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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1454
RA = 153.449, Dec = 34.7384
tmin = 616204801, tmax = 616464001
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='739972', job_status='RUN', time_executed='2021-09-01 14:14:26.529240', time_epoch_executed='1630530866.53' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739972/ft1_4FGL_J1013.7+3444_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739972/ft2_4FGL_J1013.7+3444_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739972/ft1_4FGL_J1013.7+3444_daily_bin1454.fits outfile=/scratch/kocevski/739972/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1454.fits ra=153.449 dec=34.7384 rad=12.0 tmin=616204801.0 tmax=616464001.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.03
user 3.72
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739972/ft1_filtered_4FGL_J1013.7+3444_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/739972/ft2_4FGL_J1013.7+3444_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/739972/ltcube_616204801_616464001_4FGL_J1013.7+3444_daily_bin1454.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/739972/ft2_4FGL_J1013.7+3444_daily_bin1454.fits
.....................!
real 15.72
user 15.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739972/ft1_filtered_4FGL_J1013.7+3444_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/739972/ft2_4FGL_J1013.7+3444_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/739972/ltcube_616204801_616464001_4FGL_J1013.7+3444_daily_bin1454.fits outfile=/scratch/kocevski/739972/expmap_616204801_616464001_4FGL_J1013.7+3444_daily_bin1454.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/739972/ltcube_616204801_616464001_4FGL_J1013.7+3444_daily_bin1454.fits
.....................!
real 191.48
user 185.28
sys 5.26

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/739972/ft1_filtered_4FGL_J1013.7+3444_daily_bin1454.fits scfile=/scratch/kocevski/739972/ft2_4FGL_J1013.7+3444_daily_bin1454.fits outfile=/scratch/kocevski/739972/cmap_616204801_616464001_4FGL_J1013.7+3444_daily_bin1454.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739972/ft1_filtered_4FGL_J1013.7+3444_daily_bin1454.fits scfile=/scratch/kocevski/739972/ft2_4FGL_J1013.7+3444_daily_bin1454.fits outfile=/scratch/kocevski/739972/cmap_HighResolution_616204801_616464001_4FGL_J1013.7+3444_daily_bin1454.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7864       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5042       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.314       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18855E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    28.720       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .63382       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4883       1.0000         .10000E-03   10000.    
    14 'norm      '    21.972       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11681E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13293       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7095       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87315       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0967       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=   4080.297     FROM MIGRAD    STATUS=CONVERGED   1153 CALLS     3320 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.1462        .15430E-02** at limit **
   2  Prefactor     4.7842        5.3948        .74455E-03   -.15708E-03
   3  norm          1.4961        46.404        .34900E-03   -.10929E-04
   4  Prefactor     15.313        33.600        .10235E-03   -.47208E-05
   5  Prefactor     .10000E-03    130.66        .18142E-02** at limit **
   6  Prefactor     .10000E-03    15.220        .18142E-02** at limit **
   7  Prefactor     .10000E-03    4.9102        .13766E-02** at limit **
   8  Prefactor     .10000E-03    3.4258        .11540E-02** at limit **
   9  Prefactor     .10000E-03    .93635        .60185E-03** at limit **
  10  norm          28.727        12.753        .74758E-04   -.13687E-04
  11  Prefactor     .64394        6.6567        .26704E-03   -.23308E-04
  12  Prefactor     .10000E-03    18.647        .18142E-02** at limit **
  13  Prefactor     7.4738        6.8567        .64889E-03   -.21175E-03
  14  norm          21.980        14.390        .85450E-04   -.10657E-03
  15  Prefactor     .10000E-03    34.179        .18142E-02** at limit **
  16  Prefactor     18.829        35.520        .92368E-04    .26955E-04
  17  Prefactor     .10000E-03    9.0905        .36285E-03** at limit **
  18  Prefactor     .10000E-03    5.1507        .14064E-02** at limit **
  19  Prefactor     .10000E-03    17.191        .18142E-02** at limit **
  20  Prefactor     .10000E-03    11.969        .18142E-02** at limit **
  21  Prefactor     .10002E-03    194.81        .25714    ** at limit **
  22  Prefactor     .10000E-03    3.0179        .10837E-02** at limit **
  23  norm          1.7095        .42049        .19884E-04   -.83476E-04
  24  Prefactor     .10000E-03    10.041        .18142E-02** at limit **
  25  Prefactor     .10000E-03    12.274        .18142E-02** at limit **
  26  Normalizat    .87302        .23799        .24121E-03   -.61178E-04
  27  Prefactor     1.0968        .27724        .26727E-03   -.89392E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.78423
  norm       = 1.49607
  Prefactor  = 15.3129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.7266
  Prefactor  = 0.643937
  Prefactor  = 0.0001
  Prefactor  = 7.47378
  norm       = 21.9799
  Prefactor  = 0.0001
  Prefactor  = 18.8294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 1.7095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.87302
  Prefactor  = 1.09679
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.297     FROM HESSE     STATUS=OK           472 CALLS     3792 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1469        .30861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7842        5.3937        .29782E-04   -1.5270    
   3  norm          1.4961        46.384        .13960E-04   -1.5463    
   4  Prefactor     15.313        33.592        .40940E-05   -1.4925    
   5  Prefactor     .10000E-03    130.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9110        .27532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4259        .23080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .93637        .12037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          28.727        12.753        .29903E-05   -1.4636    
  11  Prefactor     .64394        6.6306        .10682E-04   -1.5547    
  12  Prefactor     .10000E-03    18.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4738        6.8443        .25956E-04   -1.5161    
  14  norm          21.980        14.389        .34180E-05   -1.4770    
  15  Prefactor     .10000E-03    34.180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.829        35.511        .36947E-05   -1.4840    
  17  Prefactor     .10000E-03    9.0910        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1515        .28128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    194.81        .25714       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0179        .21673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7095        .42048        .79535E-06   -1.5446    
  24  Prefactor     .10000E-03    10.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87302        .23818        .96483E-05   -.97415    
  27  Prefactor     1.0968        .27750        .10691E-04   -.89569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05897e-10
Minuit parameter uncertainties:
  1  1.99687e-05
  2  5.39424
  3  16.6742
  4  33.6335
  5  5.7433e-05
  6  9.83436e-06
  7  5.66959e-06
  8  1.15719e-06
  9  1.06568e-06
  10  12.7538
  11  4.13293
  12  1.51914e-05
  13  6.84501
  14  14.3915
  15  6.03242e-05
  16  35.5504
  17  1.49835e-05
  18  2.65964e-05
  19  4.22809e-05
  20  2.09352e-05
  21  0.00347615
  22  4.95322e-07
  23  0.420483
  24  7.27823e-05
  25  3.77058e-05
  26  0.23847
  27  0.277869
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  6.439e-01  4.133e+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:  1.097e+00  2.779e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  8.730e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/739972/likelihoodResults_616204801_616464001_4FGL_J1013.7+3444_daily_bin1454.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) = 4080.27970935
delta logL = 0.0176270677698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4080.27651724
delta logL = 0.0208191781712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40555       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3757       1.0000          .0000       10.000    
     3 'Normalizat'    .86572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1026       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=   4080.277     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      234 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40392        14.583        .10879E-01   -.15650E-03
   2  Index         3.3798        1.5057        .50000       -.63238E-04
   3  Normalizat    .86576        .16358E-01    .44462E-01   -.23496E-03
   4  Prefactor     1.1025        .20188E-01    .60297E-01   -.16124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.403917
  Index      = 3.37977
  Normalizat = 0.865756
  Prefactor  = 1.10251
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.277     FROM HESSE     STATUS=OK            29 CALLS      263 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40392        11.955        .14289E-03   -1.5581    
   2  Index         3.3798        6.5715        .60591E-02   -.33000    
   3  Normalizat    .86576        .22713        .24208E-03   -.97674    
   4  Prefactor     1.1025        .27572        .26666E-03   -.89386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20684e-09
Minuit parameter uncertainties:
  1  4.39537
  2  7.3307
  3  0.227381
  4  0.276079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739972': 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) = 4080.27651677
delta logL = 0.0208196531094

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  4.039e-01  4.395e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  3.380e+00  7.331e+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.103e+00  2.761e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  8.658e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/739972/cmap_HighResolution_616204801_616464001_4FGL_J1013.7+3444_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-01 14:25:09.194616', job_id='739972', GAL2='1.10', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630531509.19', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.08e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1454' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:25:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 739972: <4FGL_J1013.7+3444_daily_bin1454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1454 153.449 34.7384 616204801 616464001 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            852 sec.

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

