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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1001
RA = 153.449, Dec = 34.7384
tmin = 498787201, tmax = 499046401
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='736257', job_status='RUN', time_executed='2021-09-01 14:03:51.125420', time_epoch_executed='1630530231.13' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736257

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736257/ft1_4FGL_J1013.7+3444_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736257/ft2_4FGL_J1013.7+3444_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736257/ft1_4FGL_J1013.7+3444_daily_bin1001.fits outfile=/scratch/kocevski/736257/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1001.fits ra=153.449 dec=34.7384 rad=12.0 tmin=498787201.0 tmax=499046401.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.09
user 4.84
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736257/ft1_filtered_4FGL_J1013.7+3444_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/736257/ft2_4FGL_J1013.7+3444_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/736257/ltcube_498787201_499046401_4FGL_J1013.7+3444_daily_bin1001.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/736257/ft2_4FGL_J1013.7+3444_daily_bin1001.fits
.....................!
real 13.79
user 13.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736257/ft1_filtered_4FGL_J1013.7+3444_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/736257/ft2_4FGL_J1013.7+3444_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/736257/ltcube_498787201_499046401_4FGL_J1013.7+3444_daily_bin1001.fits outfile=/scratch/kocevski/736257/expmap_498787201_499046401_4FGL_J1013.7+3444_daily_bin1001.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/736257/ltcube_498787201_499046401_4FGL_J1013.7+3444_daily_bin1001.fits
.....................!
real 191.73
user 185.78
sys 5.32

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/736257/ft1_filtered_4FGL_J1013.7+3444_daily_bin1001.fits scfile=/scratch/kocevski/736257/ft2_4FGL_J1013.7+3444_daily_bin1001.fits outfile=/scratch/kocevski/736257/cmap_498787201_499046401_4FGL_J1013.7+3444_daily_bin1001.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736257/ft1_filtered_4FGL_J1013.7+3444_daily_bin1001.fits scfile=/scratch/kocevski/736257/ft2_4FGL_J1013.7+3444_daily_bin1001.fits outfile=/scratch/kocevski/736257/cmap_HighResolution_498787201_499046401_4FGL_J1013.7+3444_daily_bin1001.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736257/ft1_filtered_4FGL_J1013.7+3444_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/736257/ft2_4FGL_J1013.7+3444_daily_bin1001.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736257/Model_4FGL_J1013.7+3444_daily_bin1001.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/736257/ft1_filtered_4FGL_J1013.7+3444_daily_bin1001.fits....................!
real 45.84
user 43.89
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .21705E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54493E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15865E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7998       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2999       1.0000         .10000E-03   10000.    
    10 'norm      '    12.372       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11819E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19742E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21551E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4866       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .94460       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6142       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12542E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16415E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    95.653       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13751E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5298       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.675       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.8748       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98069       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1569       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=   4869.888     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     2871 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8605        .11252E-07** at limit **
   2  Prefactor     .10000E-03    .86461        .47848E-08** at limit **
   3  norm          .10000E-03    7.6976       -.19893E-07** at limit **
   4  Prefactor     .10000E-03    21.506       -.45168E-05** at limit **
   5  Prefactor     .10000E-03    19.259       -.33349E-06** at limit **
   6  Prefactor     .10000E-03    7.3089        .17135E-07** at limit **
   7  Prefactor     11.194        10.020       -.28001E-05   -.45648E-04
   8  Prefactor     3.8456        10.165        .39753E-05   -.15887E-03
   9  Prefactor     2.2958        2.5453        .69701E-07   -.28445E-03
  10  norm          12.328        10.421       -.19709E-05   -.37442E-05
  11  Prefactor     .10000E-03    1.5024       -.34794E-07** at limit **
  12  Prefactor     .10000E-03    27.694        .14277E-04** at limit **
  13  Prefactor     .10000E-03    5.1938        .19403E-07** at limit **
  14  norm          .10000E-03    2.8665       -.23134E-08** at limit **
  15  Prefactor     .10000E-03    20.219       -.34874E-05** at limit **
  16  Prefactor     8.5850        97.477        .47236E-06   -.94006E-05
  17  Prefactor     .95138        3.1539       -.11168E-05   -.92915E-03
  18  Prefactor     3.5022        8.2510       -.70680E-06   -.30138E-03
  19  Prefactor     .10000E-03    13.282        .27694E-07** at limit **
  20  Prefactor     .10000E-03    15.179        .19978E-06** at limit **
  21  Prefactor     88.589        205.12        .98330E-06    .33176E-05
  22  Prefactor     .10000E-03    7.6452        .19048E-07** at limit **
  23  norm          1.5311        .43556        .39855E-08    .10237E-03
  24  Prefactor     15.727        23.824        .31520E-06   -.83161E-05
  25  Prefactor     7.7079        13.478       -.12532E-05   -.53765E-03
  26  Normalizat    .98194        .19000        .43381E-06   -.40918E-04
  27  Prefactor     1.1558        .22096        .19605E-06   -.21174E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1941
  Prefactor  = 3.84561
  Prefactor  = 2.29578
  norm       = 12.3284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.58504
  Prefactor  = 0.951376
  Prefactor  = 3.50225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.5886
  Prefactor  = 0.0001
  norm       = 1.53114
  Prefactor  = 15.7273
  Prefactor  = 7.70785
  Normalizat = 0.981939
  Prefactor  = 1.15584
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.888     FROM HESSE     STATUS=OK           484 CALLS     3355 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8999        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .86689        .63365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.7652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.482        .21114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.194        9.9984        .12020E-03   -1.5039    
   8  Prefactor     3.8456        9.9849        .20708E-03   -1.5316    
   9  Prefactor     2.2958        2.5314        .11190E-03   -1.5405    
  10  norm          12.328        10.402        .11389E-03   -1.5006    
  11  Prefactor     .10000E-03    1.5134        .83501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.118        .20649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4156        .31013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.8697        .11538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5850        94.637        .14657E-03   -1.5122    
  17  Prefactor     .95138        3.1670        .22220E-03   -1.5513    
  18  Prefactor     3.5022        8.1471        .18333E-03   -1.5334    
  19  Prefactor     .10000E-03    13.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     88.589        206.19        .41096E-04   -1.3823    
  22  Prefactor     .10000E-03    7.6739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5311        .43759        .22913E-04   -1.5460    
  24  Prefactor     15.727        23.919        .10116E-03   -1.4915    
  25  Prefactor     7.7079        13.748        .71444E-03   -1.5153    
  26  Normalizat    .98194        .22481        .24099E-03   -.93638    
  27  Prefactor     1.1558        .26136        .27146E-03   -.87701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85379e-09
Minuit parameter uncertainties:
  1  2.80974e-06
  2  4.65442e-07
  3  1.72181e-06
  4  5.57698e-05
  5  1.16436e-05
  6  2.11179e-06
  7  9.99992
  8  9.98924
  9  2.53147
  10  10.4037
  11  3.57786e-06
  12  5.06314e-05
  13  9.78841e-06
  14  6.2782e-07
  15  2.46111e-07
  16  57.1223
  17  3.16756
  18  8.1497
  19  5.35555e-06
  20  3.0386e-06
  21  207.89
  22  1.65767e-06
  23  0.437594
  24  23.9335
  25  13.7535
  26  0.225026
  27  0.261655
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  3.578e-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:  1.156e+00  2.617e-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:  9.819e-01  2.250e-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: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736257/likelihoodResults_498787201_499046401_4FGL_J1013.7+3444_daily_bin1001.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) = 4869.89081833
delta logL = -0.00311449787569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4869.8877038
delta logL = 2.85535861622e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5701       1.0000          .0000       10.000    
     3 'Normalizat'    .98195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1559       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=   4869.888     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      255 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.192        .85100E-02** at limit **
   2  Index         1.9930        5.8157        .50000       -.87084E-07
   3  Normalizat    .98194        .11965E-01    .24099E-03    .72725E-03
   4  Prefactor     1.1558        .14550E-01    .27146E-03    .66199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.993
  Normalizat = 0.981941
  Prefactor  = 1.15585
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.888     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.14        .97369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9930        5.1984        .50000       -.64525    
   3  Normalizat    .98194        .36943E-01    .48199E-04   -.93638    
   4  Prefactor     1.1558        .44925E-01    .54292E-04   -.87701    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21238e-10
Minuit parameter uncertainties:
  1  6.44206e-06
  2  527.508
  3  0.0369439
  4  0.0449261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736257': 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) = 4869.88769521
delta logL = 8.61859916768e-06

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  6.442e-06  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  1.993e+00  5.275e+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:  1.156e+00  4.493e-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:  9.819e-01  3.694e-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/736257/cmap_HighResolution_498787201_499046401_4FGL_J1013.7+3444_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-01 14:15:16.386273', job_id='736257', GAL2='1.16', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630530916.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='8.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1001' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:15:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 736257: <4FGL_J1013.7+3444_daily_bin1001> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1001 153.449 34.7384 498787201 499046401 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 :                                   681.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            894 sec.

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

