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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1019
RA = 153.449, Dec = 34.7384
tmin = 503452801, tmax = 503712001
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='736283', job_status='RUN', time_executed='2021-09-01 14:03:38.523754', time_epoch_executed='1630530218.52' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736283/ft1_4FGL_J1013.7+3444_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736283/ft2_4FGL_J1013.7+3444_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736283/ft1_4FGL_J1013.7+3444_daily_bin1019.fits outfile=/scratch/kocevski/736283/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1019.fits ra=153.449 dec=34.7384 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.92
user 7.58
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/736283/ft2_4FGL_J1013.7+3444_daily_bin1019.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/736283/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/736283/ft1_filtered_4FGL_J1013.7+3444_daily_bin1019.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736283/ft1_filtered_4FGL_J1013.7+3444_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/736283/ft2_4FGL_J1013.7+3444_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/736283/ltcube_503452801_503712001_4FGL_J1013.7+3444_daily_bin1019.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/736283/ft2_4FGL_J1013.7+3444_daily_bin1019.fits
.....................!
real 15.11
user 14.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736283/ft1_filtered_4FGL_J1013.7+3444_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/736283/ft2_4FGL_J1013.7+3444_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/736283/ltcube_503452801_503712001_4FGL_J1013.7+3444_daily_bin1019.fits outfile=/scratch/kocevski/736283/expmap_503452801_503712001_4FGL_J1013.7+3444_daily_bin1019.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/736283/ltcube_503452801_503712001_4FGL_J1013.7+3444_daily_bin1019.fits
.....................!
real 191.13
user 186.18
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/736283/ft1_filtered_4FGL_J1013.7+3444_daily_bin1019.fits scfile=/scratch/kocevski/736283/ft2_4FGL_J1013.7+3444_daily_bin1019.fits outfile=/scratch/kocevski/736283/cmap_503452801_503712001_4FGL_J1013.7+3444_daily_bin1019.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/736283/ft1_filtered_4FGL_J1013.7+3444_daily_bin1019.fits scfile=/scratch/kocevski/736283/ft2_4FGL_J1013.7+3444_daily_bin1019.fits outfile=/scratch/kocevski/736283/cmap_HighResolution_503452801_503712001_4FGL_J1013.7+3444_daily_bin1019.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/736283/ft1_filtered_4FGL_J1013.7+3444_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/736283/ft2_4FGL_J1013.7+3444_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736283/Model_4FGL_J1013.7+3444_daily_bin1019.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/736283/ft1_filtered_4FGL_J1013.7+3444_daily_bin1019.fits.....................!
real 44.38
user 41.94
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7976       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.925       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33399E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4476       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1345       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12288E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11953E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3718       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.752       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4076       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.4918       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85970       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96251       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=   4877.646     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3316 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7982        6.6603        .19850E-06   -.24301E-04
   2  Prefactor     .10000E-03    1.3760        .99349E-07** at limit **
   3  norm          .10000E-03    5.3934        .14915E-06** at limit **
   4  Prefactor     .10000E-03    45.113       -.39859E-07** at limit **
   5  Prefactor     55.902        28.499        .32632E-06    .12709E-03
   6  Prefactor     .10000E-03    61.438        .15921E-05** at limit **
   7  Prefactor     6.4516        8.4806        .26513E-06   -.67493E-04
   8  Prefactor     .10000E-03    3.8484       -.87473E-10** at limit **
   9  Prefactor     .10000E-03    1.5657        .80797E-08** at limit **
  10  norm          5.1347        5.8417        .96427E-06   -.11118E-03
  11  Prefactor     1.5139        3.8144        .63237E-06   -.10090E-04
  12  Prefactor     .10000E-03    11.296        .10081E-06** at limit **
  13  Prefactor     .10000E-03    4.8949       -.39890E-06** at limit **
  14  norm          .10000E-03    2.5027       -.29157E-07** at limit **
  15  Prefactor     .10002E-03    396.90       -.59735E-05** at limit **
  16  Prefactor     .10000E-03    23.521       -.40075E-06** at limit **
  17  Prefactor     .10001E-03    1.9023       -.34851E-06** at limit **
  18  Prefactor     1.3695        5.9643        .17808E-05   -.21654E-04
  19  Prefactor     12.767        27.042       -.45614E-06   -.59188E-04
  20  Prefactor     .10000E-03    8.5916        .41657E-08** at limit **
  21  Prefactor     .10000E-03    247.31        .83414E-07** at limit **
  22  Prefactor     .10000E-03    6.8915       -.77590E-08** at limit **
  23  norm          1.4076        .36392        .50862E-09   -.23223E-04
  24  Prefactor     6.4936        13.074        .27772E-06    .67460E-05
  25  Prefactor     .10000E-03    7.2994        .35210E-07** at limit **
  26  Normalizat    .85951        .17060       -.87258E-06    .43651E-04
  27  Prefactor     .96265        .19618       -.16578E-06   -.75487E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.7982
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.9024
  Prefactor  = 0.0001
  Prefactor  = 6.45159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.13466
  Prefactor  = 1.51385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 1.36948
  Prefactor  = 12.7665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40761
  Prefactor  = 6.49359
  Prefactor  = 0.0001
  Normalizat = 0.859511
  Prefactor  = 0.962648
 **********
 **   18 **HESSE 
 **********

 FCN=   4877.646     FROM HESSE     STATUS=OK           484 CALLS     3800 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7982        6.6510        .16680E-03   -1.5226    
   2  Prefactor     .10000E-03    1.4033        .79963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.3937        .15837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.902        28.571        .53640E-04   -1.4211    
   6  Prefactor     .10000E-03    62.235        .21344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4516        8.3853        .15806E-03   -1.5200    
   8  Prefactor     .10000E-03    3.8571        .13378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7378        .16364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1347        5.8256        .87154E-03   -1.5255    
  11  Prefactor     1.5139        3.7881        .19692E-03   -1.5462    
  12  Prefactor     .10000E-03    11.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0765        .30019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5074        .10790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    413.18        .41242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    11.123        .18036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3695        5.9194        .31248E-03   -1.5474    
  19  Prefactor     12.767        26.870        .11217E-03   -1.4993    
  20  Prefactor     .10000E-03    8.5980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    248.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9094        .17906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4076        .36469        .20369E-04   -1.5471    
  24  Prefactor     6.4936        13.081        .15751E-03   -1.5198    
  25  Prefactor     .10000E-03    7.3020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .85951        .19564        .21982E-03   -.97898    
  27  Prefactor     .96265        .22947        .25650E-03   -.93985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16713e-09
Minuit parameter uncertainties:
  1  6.65184
  2  2.00505e-07
  3  2.74365e-06
  4  3.33052e-05
  5  28.5785
  6  0.000110604
  7  8.38686
  8  5.04446e-07
  9  6.06732e-05
  10  5.82624
  11  3.78875
  12  2.33105e-05
  13  3.81082e-05
  14  1.38997e-08
  15  0.00545184
  16  7.05964e-05
  17  0.000717965
  18  5.69512
  19  26.8956
  20  1.49882e-06
  21  0.000269915
  22  2.76181e-06
  23  0.364695
  24  13.0866
  25  5.47637e-06
  26  0.195797
  27  0.229701
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.514e+00  3.789e+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.626e-01  2.297e-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.595e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/736283/likelihoodResults_503452801_503712001_4FGL_J1013.7+3444_daily_bin1019.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) = 4874.18043571
delta logL = 3.46556287951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4873.80745476
delta logL = 3.83854382948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59870E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.5163       1.0000          .0000       10.000    
     3 'Normalizat'    .69968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0988       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=   4873.807     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      308 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59077E-03    .49432E-02    .21474E-03** at limit **
   2  Index         8.5243        2.5064        .10434        .77726E-04
   3  Normalizat    .69932        .59032E-01    .42286E-01    .20386E-04
   4  Prefactor     1.0994        .73172E-01    .54746E-01    .45934E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000590768
  Index      = 8.52427
  Normalizat = 0.699323
  Prefactor  = 1.09936
 **********
 **   18 **HESSE 
 **********

 FCN=   4873.807     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      339 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59077E-03    .74694E-02    .81761E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.5243        2.9796        .45628E-03    .78222    
   3  Normalizat    .69932        .19138        .24049E-03   -1.0392    
   4  Prefactor     1.0994        .23246        .24206E-03   -.89487    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.67158e-11
Minuit parameter uncertainties:
  1  0.00382922
  2  3.53765
  3  0.191566
  4  0.232679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736283': 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) = 4873.8074464
delta logL = 3.83855218944

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  5.908e-04  3.829e-03  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  8.524e+00  3.538e+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.099e+00  2.327e-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:  6.993e-01  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.63
Ra Dec: 153.449 34.738
Photon Index (Free Index): 8.52 +/- 3.54
Photon Flux (Free Index): 1.21e-07 +/- 5.48e-08
Energy Flux (Free Index): 1.38e-05 +/- 6.56e-06

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/736283/cmap_HighResolution_503452801_503712001_4FGL_J1013.7+3444_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', comment='SUCCESS', energy_flux2='1.38e-05', dlogl='3.84e+00', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-01 14:15:46.305777', photon_index_error2='3.54', photon_index2='8.52', ts='0.19', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='9.52e-08', energy_flux_error2='6.56e-06', EG='0.86', time_epoch_completed='1630530946.31', return_code='0', job_id='736283', GAL2='1.10', EG2='0.70', return_code2='102', photon_flux_error2='5.48e-08', ts2='8.63', photon_index='2.59' WHERE bin_id='1019' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:15:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 736283: <4FGL_J1013.7+3444_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1019> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 14:00:24 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:01:20 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:01:20 2021
Terminated at Wed Sep  1 14:15:47 2021
Results reported at Wed Sep  1 14:15:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1019 153.449 34.7384 503452801 503712001 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 :                                   723.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            923 sec.

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

