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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1289
RA = 153.449, Dec = 34.7384
tmin = 573436801, tmax = 573696001
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='738186', job_status='RUN', time_executed='2021-09-01 14:07:15.871370', time_epoch_executed='1630530435.87' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738186/ft1_4FGL_J1013.7+3444_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738186/ft2_4FGL_J1013.7+3444_daily_bin1289.fits


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

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

Done.
real 5.40
user 5.11
sys 0.26

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738186/ft1_filtered_4FGL_J1013.7+3444_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/738186/ft2_4FGL_J1013.7+3444_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/738186/ltcube_573436801_573696001_4FGL_J1013.7+3444_daily_bin1289.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/738186/ft2_4FGL_J1013.7+3444_daily_bin1289.fits
.....................!
real 16.65
user 16.27
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738186/ft1_filtered_4FGL_J1013.7+3444_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/738186/ft2_4FGL_J1013.7+3444_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/738186/ltcube_573436801_573696001_4FGL_J1013.7+3444_daily_bin1289.fits outfile=/scratch/kocevski/738186/expmap_573436801_573696001_4FGL_J1013.7+3444_daily_bin1289.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/738186/ltcube_573436801_573696001_4FGL_J1013.7+3444_daily_bin1289.fits
.....................!
real 194.13
user 188.41
sys 5.09

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/738186/ft1_filtered_4FGL_J1013.7+3444_daily_bin1289.fits scfile=/scratch/kocevski/738186/ft2_4FGL_J1013.7+3444_daily_bin1289.fits outfile=/scratch/kocevski/738186/cmap_573436801_573696001_4FGL_J1013.7+3444_daily_bin1289.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.76
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738186/ft1_filtered_4FGL_J1013.7+3444_daily_bin1289.fits scfile=/scratch/kocevski/738186/ft2_4FGL_J1013.7+3444_daily_bin1289.fits outfile=/scratch/kocevski/738186/cmap_HighResolution_573436801_573696001_4FGL_J1013.7+3444_daily_bin1289.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.64
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738186/ft1_filtered_4FGL_J1013.7+3444_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/738186/ft2_4FGL_J1013.7+3444_daily_bin1289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738186/Model_4FGL_J1013.7+3444_daily_bin1289.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/738186/ft1_filtered_4FGL_J1013.7+3444_daily_bin1289.fits.....................!
real 46.87
user 45.01
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5942       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7805       1.0000         .10000E-03   10000.    
    10 'norm      '    26.481       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.213       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.557       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10286E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45870E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0668       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.723       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    209.44       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8749       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0269       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85203       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=   4769.329     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3937 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.965        .18139E-05** at limit **
   2  Prefactor     .10000E-03    1.6652        .14676E-06** at limit **
   3  norm          .10000E-03    24.792        .17459E-05** at limit **
   4  Prefactor     .10000E-03    29.982       -.94172E-05** at limit **
   5  Prefactor     9.5758        30.394       -.16396E-04   -.97095E-04
   6  Prefactor     .10000E-03    41.287        .18938E-04** at limit **
   7  Prefactor     .10013E-03    6.3976       -.14044E-05** at limit **
   8  Prefactor     .10000E-03    4.9044        .38600E-07** at limit **
   9  Prefactor     3.7799        4.3229        .33946E-06    .60776E-04
  10  norm          26.473        13.026        .11851E-06    .18560E-03
  11  Prefactor     12.212        5.8255        .11587E-05   -.18256E-03
  12  Prefactor     61.571        44.977        .10528E-04   -.18314E-03
  13  Prefactor     .10000E-03    2.6229       -.78626E-07** at limit **
  14  norm          .10000E-03    19.173        .11515E-04** at limit **
  15  Prefactor     .10000E-03    15.485       -.79475E-05** at limit **
  16  Prefactor     .10001E-03    102.24        .80763E-05** at limit **
  17  Prefactor     .10000E-03    2.4184       -.10590E-07** at limit **
  18  Prefactor     1.0655        3.8367       -.45185E-06   -.92072E-03
  19  Prefactor     12.710        43.501       -.23581E-04   -.76252E-04
  20  Prefactor     .10000E-03    84.698       -.43756E-05** at limit **
  21  Prefactor     209.51        209.68        .50842E-04   -.96704E-05
  22  Prefactor     .10000E-03    5.4766        .54765E-07** at limit **
  23  norm          1.8749        .42410       -.50124E-07   -.11818E-03
  24  Prefactor     .10000E-03    8.7585       -.36978E-07** at limit **
  25  Prefactor     .10000E-03    12.356       -.31475E-06** at limit **
  26  Normalizat    1.0270        .20877       -.44068E-05    .14057E-03
  27  Prefactor     .85190        .22083        .31368E-05   -.18370E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 9.57581
  Prefactor  = 0.000100001
  Prefactor  = 0.000100129
  Prefactor  = 0.0001
  Prefactor  = 3.77991
  norm       = 26.4729
  Prefactor  = 12.2122
  Prefactor  = 61.5709
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 1.06552
  Prefactor  = 12.7099
  Prefactor  = 0.0001
  Prefactor  = 209.511
  Prefactor  = 0.0001
  norm       = 1.87488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02697
  Prefactor  = 0.851897
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.329     FROM HESSE     STATUS=OK           480 CALLS     4417 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6872        .87008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    24.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5758        30.571        .12938E-03   -1.5089    
   6  Prefactor     .10000E-03    41.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10013E-03    28.676        .31945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9120        .14935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7799        4.2106        .13619E-03   -1.5319    
  10  norm          26.473        12.930        .77848E-04   -1.4678    
  11  Prefactor     12.212        5.8254        .10869E-03   -1.5009    
  12  Prefactor     61.571        44.834        .51142E-04   -1.4137    
  13  Prefactor     .10000E-03    2.6304        .10902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    19.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    103.15        .42399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4283        .10472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0655        3.6872        .23995E-03   -1.5502    
  19  Prefactor     12.710        43.179        .11230E-03   -1.4995    
  20  Prefactor     .10000E-03    85.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     209.51        209.12        .13967E-03   -1.2803    
  22  Prefactor     .10000E-03    5.4795        .15785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8749        .42462        .20697E-04   -1.5434    
  24  Prefactor     .10000E-03    8.7765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0270        .24845        .24016E-03   -.92132    
  27  Prefactor     .85190        .26149        .29595E-03   -.97843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98134e-09
Minuit parameter uncertainties:
  1  5.21199e-05
  2  1.36093e-05
  3  0.000551596
  4  6.7873e-05
  5  30.6211
  6  0.000389467
  7  0.0038545
  8  3.12443e-06
  9  4.21097
  10  12.9319
  11  5.82569
  12  44.8587
  13  1.81102e-05
  14  0.00025391
  15  1.28853e-06
  16  0.00169756
  17  3.50029e-06
  18  3.688
  19  43.2855
  20  0.000206702
  21  209.875
  22  4.16315e-06
  23  0.424623
  24  1.04149e-06
  25  5.47507e-06
  26  0.248728
  27  0.261875
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.221e+01  5.826e+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.519e-01  2.619e-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.027e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.22
Ra Dec: 153.449 34.738
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 5.56e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.47e-05

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) = 4769.32921832
delta logL = 9.30790674829e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4769.32914389
delta logL = 0.000167506068465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.128       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6018       1.0000          .0000       10.000    
     3 'Normalizat'    1.0261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85252       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=   4769.329     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.121        114.24        .28757E-02    .84564E-04
   2  Index         2.6010        6.2995        .12987        .69772E-04
   3  Normalizat    1.0262        .11864        .42572E-01    .48382E-05
   4  Prefactor     .85261        .12776        .66874E-01    .10805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1205
  Index      = 2.60101
  Normalizat = 1.02622
  Prefactor  = 0.852611
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.329     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.121        7.8736        .10819E-03   -1.5012    
   2  Index         2.6010        .53080        .52403E-02   -.50042    
   3  Normalizat    1.0262        .23320        .24024E-03   -.92157    
   4  Prefactor     .85261        .26094        .29583E-03   -.97817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86689e-12
Minuit parameter uncertainties:
  1  7.87424
  2  0.532101
  3  0.233432
  4  0.261319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738186': 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) = 4769.32913863
delta logL = 0.000172767955519

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.212e+01  7.874e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.601e+00  5.321e-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:  8.526e-01  2.613e-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.026e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.13
Ra Dec: 153.449 34.738
Photon Index (Free Index): 2.60 +/- 0.53
Photon Flux (Free Index): 1.17e-07 +/- 6.32e-08
Energy Flux (Free Index): 3.07e-05 +/- 1.63e-05

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/738186/cmap_HighResolution_573436801_573696001_4FGL_J1013.7+3444_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='3.07e-05', photon_flux_error='5.56e-08', dlogl='1.73e-04', energy_flux='3.08e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-01 14:18:37.114178', photon_index_error2='0.53', photon_index2='2.60', ts='8.22', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='1.03', time_epoch_completed='1630531117.11', return_code='0', job_id='738186', GAL2='0.85', EG2='1.03', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='6.32e-08', ts2='8.13', photon_index='2.59' WHERE bin_id='1289' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:18:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 738186: <4FGL_J1013.7+3444_daily_bin1289> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1289 153.449 34.7384 573436801 573696001 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 :                                   673.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            757 sec.

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

