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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1395
RA = 153.449, Dec = 34.7384
tmin = 600912001, tmax = 601171201
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='739892', job_status='RUN', time_executed='2021-09-01 14:13:44.920722', time_epoch_executed='1630530824.92' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739892/ft1_4FGL_J1013.7+3444_daily_bin1395.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739892/ft2_4FGL_J1013.7+3444_daily_bin1395.fits


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

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

Done.
real 3.69
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739892/ft2_4FGL_J1013.7+3444_daily_bin1395.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/739892/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1395.fits evtable="EVENTS" outfile="/scratch/kocevski/739892/ft1_filtered_4FGL_J1013.7+3444_daily_bin1395.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.59
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739892/ft1_filtered_4FGL_J1013.7+3444_daily_bin1395.fits" evtable="EVENTS" scfile=/scratch/kocevski/739892/ft2_4FGL_J1013.7+3444_daily_bin1395.fits sctable="SC_DATA" outfile=/scratch/kocevski/739892/ltcube_600912001_601171201_4FGL_J1013.7+3444_daily_bin1395.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/739892/ft2_4FGL_J1013.7+3444_daily_bin1395.fits
.....................!
real 17.05
user 16.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739892/ft1_filtered_4FGL_J1013.7+3444_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/739892/ft2_4FGL_J1013.7+3444_daily_bin1395.fits sctable="SC_DATA" expcube=/scratch/kocevski/739892/ltcube_600912001_601171201_4FGL_J1013.7+3444_daily_bin1395.fits outfile=/scratch/kocevski/739892/expmap_600912001_601171201_4FGL_J1013.7+3444_daily_bin1395.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/739892/ltcube_600912001_601171201_4FGL_J1013.7+3444_daily_bin1395.fits
.....................!
real 193.40
user 188.85
sys 3.91

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/739892/ft1_filtered_4FGL_J1013.7+3444_daily_bin1395.fits scfile=/scratch/kocevski/739892/ft2_4FGL_J1013.7+3444_daily_bin1395.fits outfile=/scratch/kocevski/739892/cmap_600912001_601171201_4FGL_J1013.7+3444_daily_bin1395.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739892/ft1_filtered_4FGL_J1013.7+3444_daily_bin1395.fits scfile=/scratch/kocevski/739892/ft2_4FGL_J1013.7+3444_daily_bin1395.fits outfile=/scratch/kocevski/739892/cmap_HighResolution_600912001_601171201_4FGL_J1013.7+3444_daily_bin1395.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.58
user 0.43
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739892/ft1_filtered_4FGL_J1013.7+3444_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/739892/ft2_4FGL_J1013.7+3444_daily_bin1395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739892/Model_4FGL_J1013.7+3444_daily_bin1395.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/739892/ft1_filtered_4FGL_J1013.7+3444_daily_bin1395.fits.....................!
real 52.79
user 51.43
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6249       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0894       1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4047       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0554       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92249       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3312       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11164E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.980       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.261       1.0000         .10000E-03   10000.    
    21 'Prefactor '    276.44       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.835       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4599       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .75892       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2599       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=   6212.547     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3738 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6240        6.8095       -.10476E-07   -.43966E-04
   2  Prefactor     1.0898        3.3087        .10477E-05   -.10746E-04
   3  norm          .10000E-03    15.446       -.35520E-06** at limit **
   4  Prefactor     .10000E-03    10.008        .35381E-08** at limit **
   5  Prefactor     3.4018        43.470        .35961E-06   -.11769E-04
   6  Prefactor     .10000E-03    11.610       -.42142E-07** at limit **
   7  Prefactor     7.0547        6.6639        .62970E-07   -.44554E-04
   8  Prefactor     .10000E-03    2.4896        .13956E-07** at limit **
   9  Prefactor     .92280        1.9728        .54571E-06    .20346E-04
  10  norm          3.3315        6.9148        .57620E-06   -.19698E-04
  11  Prefactor     6.9794        4.3825        .11286E-06   -.21858E-03
  12  Prefactor     7.4208        23.310       -.38332E-06   -.18509E-04
  13  Prefactor     .10000E-03    5.1476        .74823E-06** at limit **
  14  norm          .10000E-03    9.6293        .12649E-05** at limit **
  15  Prefactor     .10000E-03    11.246        .19810E-07** at limit **
  16  Prefactor     .10000E-03    15.744        .13651E-05** at limit **
  17  Prefactor     6.8530        6.4595        .72350E-06   -.10837E-03
  18  Prefactor     .10000E-03    3.0589        .17976E-05** at limit **
  19  Prefactor     14.065        67.615       -.53483E-05   -.17011E-04
  20  Prefactor     17.260        17.993        .56599E-07   -.11013E-04
  21  Prefactor     276.20        178.50       -.33943E-08   -.26851E-04
  22  Prefactor     15.821        18.278        .17830E-06   -.24477E-04
  23  norm          1.4598        .35253        .12974E-07   -.19142E-03
  24  Prefactor     4.6942        14.815        .57921E-06   -.89173E-05
  25  Prefactor     .10000E-03    4.6727       -.32751E-07** at limit **
  26  Normalizat    .75908        .17449        .34330E-06   -.18739E-03
  27  Prefactor     1.2597        .19909       -.11592E-05   -.83661E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.62403
  Prefactor  = 1.08979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40182
  Prefactor  = 0.0001
  Prefactor  = 7.05468
  Prefactor  = 0.0001
  Prefactor  = 0.922798
  norm       = 3.33147
  Prefactor  = 6.97943
  Prefactor  = 7.42078
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.85298
  Prefactor  = 0.0001
  Prefactor  = 14.0651
  Prefactor  = 17.26
  Prefactor  = 276.201
  Prefactor  = 15.8206
  norm       = 1.4598
  Prefactor  = 4.69419
  Prefactor  = 0.0001
  Normalizat = 0.759079
  Prefactor  = 1.25973
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.547     FROM HESSE     STATUS=OK           488 CALLS     4226 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6240        6.7654        .18715E-03   -1.5278    
   2  Prefactor     1.0898        3.2639        .23390E-03   -1.5499    
   3  norm          .10000E-03    15.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4018        42.878        .21925E-03   -1.5339    
   6  Prefactor     .10000E-03    11.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0547        6.6519        .15103E-03   -1.5177    
   8  Prefactor     .10000E-03    2.4916        .12145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .92280        1.9276        .15400E-03   -1.5516    
  10  norm          3.3315        6.9080        .22177E-03   -1.5343    
  11  Prefactor     6.9794        4.3580        .12247E-03   -1.5180    
  12  Prefactor     7.4208        23.321        .14722E-03   -1.5163    
  13  Prefactor     .10000E-03    5.2862        .34633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.8065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8530        6.4225        .15320E-03   -1.5184    
  18  Prefactor     .10000E-03    3.0883        .13458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.065        67.062        .10712E-03   -1.4958    
  20  Prefactor     17.260        17.992        .96402E-04   -1.4877    
  21  Prefactor     276.20        178.07        .12199E-03   -1.2369    
  22  Prefactor     15.821        18.283        .10065E-03   -1.4912    
  23  norm          1.4598        .35280        .21907E-04   -1.5466    
  24  Prefactor     4.6942        14.804        .18568E-03   -1.5275    
  25  Prefactor     .10000E-03    4.6733        .16639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .75908        .20095        .27119E-03   -1.0161    
  27  Prefactor     1.2597        .22969        .25847E-03   -.84512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91814e-11
Minuit parameter uncertainties:
  1  6.76648
  2  3.26445
  3  7.9964e-06
  4  2.65398e-06
  5  24.1759
  6  2.70173e-06
  7  6.65258
  8  1.34314e-07
  9  1.92771
  10  6.9097
  11  4.35816
  12  23.3501
  13  1.35369e-05
  14  1.14847e-05
  15  3.83007e-06
  16  3.12749e-06
  17  6.42312
  18  1.12848e-06
  19  61.5365
  20  17.9977
  21  178.427
  22  18.2894
  23  0.3528
  24  14.8154
  25  9.29083e-07
  26  0.201144
  27  0.229872
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  6.979e+00  4.358e+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.260e+00  2.299e-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:  7.591e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 153.449 34.738
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.10e-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) = 6212.15875769
delta logL = 0.38799012553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6212.11987346
delta logL = 0.426874351232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9852       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1031       1.0000          .0000       10.000    
     3 'Normalizat'    .78477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2376       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=   6212.120     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      270 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9854        5.6755        .13371E-03   -.49399E-03
   2  Index         2.1031        .48983        .73824E-02   -.79119E-04
   3  Normalizat    .78479        .18989        .26703E-03    .53772E-04
   4  Prefactor     1.2376        .22537        .26032E-03    .59656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.98538
  Index      = 2.10312
  Normalizat = 0.784785
  Prefactor  = 1.23757
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.120     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9854        5.6754        .53485E-05   -1.5108    
   2  Index         2.1031        .48967        .29530E-03   -.61796    
   3  Normalizat    .78479        .19006        .10681E-04   -1.0064    
   4  Prefactor     1.2376        .22554        .10413E-04   -.85183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98068e-10
Minuit parameter uncertainties:
  1  5.67575
  2  0.490857
  3  0.190224
  4  0.225717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739892': 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) = 6212.11987346
delta logL = 0.426874354667

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  8.985e+00  5.676e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.103e+00  4.909e-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:  1.238e+00  2.257e-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:  7.848e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 153.449 34.738
Photon Index (Free Index): 2.10 +/- 0.49
Photon Flux (Free Index): 4.80e-08 +/- 3.92e-08
Energy Flux (Free Index): 2.62e-05 +/- 2.17e-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/739892/cmap_HighResolution_600912001_601171201_4FGL_J1013.7+3444_daily_bin1395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='2.62e-05', photon_flux_error='4.16e-08', dlogl='4.27e-01', energy_flux='1.76e-05', photon_flux2='4.80e-08', job_status='DONE', time_completed='2021-09-01 14:25:57.256434', photon_index_error2='0.49', photon_index2='2.10', ts='4.36', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='0.76', time_epoch_completed='1630531557.26', return_code='0', job_id='739892', GAL2='1.24', EG2='0.78', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='3.92e-08', ts2='5.14', photon_index='2.59' WHERE bin_id='1395' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:25:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 739892: <4FGL_J1013.7+3444_daily_bin1395> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1395 153.449 34.7384 600912001 601171201 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 :                                   727.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            910 sec.

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

