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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin956
RA = 153.449, Dec = 34.7384
tmin = 487123201, tmax = 487382401
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='736175', job_status='RUN', time_executed='2021-09-01 14:00:41.869133', time_epoch_executed='1630530041.87' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='956'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736175

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736175/ft1_4FGL_J1013.7+3444_daily_bin956.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736175/ft2_4FGL_J1013.7+3444_daily_bin956.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736175/ft1_4FGL_J1013.7+3444_daily_bin956.fits outfile=/scratch/kocevski/736175/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin956.fits ra=153.449 dec=34.7384 rad=12.0 tmin=487123201.0 tmax=487382401.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.53
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736175/ft1_filtered_4FGL_J1013.7+3444_daily_bin956.fits" evtable="EVENTS" scfile=/scratch/kocevski/736175/ft2_4FGL_J1013.7+3444_daily_bin956.fits sctable="SC_DATA" outfile=/scratch/kocevski/736175/ltcube_487123201_487382401_4FGL_J1013.7+3444_daily_bin956.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/736175/ft2_4FGL_J1013.7+3444_daily_bin956.fits
.....................!
real 15.97
user 15.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736175/ft1_filtered_4FGL_J1013.7+3444_daily_bin956.fits evtable="EVENTS" scfile=/scratch/kocevski/736175/ft2_4FGL_J1013.7+3444_daily_bin956.fits sctable="SC_DATA" expcube=/scratch/kocevski/736175/ltcube_487123201_487382401_4FGL_J1013.7+3444_daily_bin956.fits outfile=/scratch/kocevski/736175/expmap_487123201_487382401_4FGL_J1013.7+3444_daily_bin956.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/736175/ltcube_487123201_487382401_4FGL_J1013.7+3444_daily_bin956.fits
.....................!
real 200.04
user 195.34
sys 3.94

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/736175/ft1_filtered_4FGL_J1013.7+3444_daily_bin956.fits scfile=/scratch/kocevski/736175/ft2_4FGL_J1013.7+3444_daily_bin956.fits outfile=/scratch/kocevski/736175/cmap_487123201_487382401_4FGL_J1013.7+3444_daily_bin956.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736175/ft1_filtered_4FGL_J1013.7+3444_daily_bin956.fits scfile=/scratch/kocevski/736175/ft2_4FGL_J1013.7+3444_daily_bin956.fits outfile=/scratch/kocevski/736175/cmap_HighResolution_487123201_487382401_4FGL_J1013.7+3444_daily_bin956.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736175/ft1_filtered_4FGL_J1013.7+3444_daily_bin956.fits evtable="EVENTS" scfile=/scratch/kocevski/736175/ft2_4FGL_J1013.7+3444_daily_bin956.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736175/Model_4FGL_J1013.7+3444_daily_bin956.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/736175/ft1_filtered_4FGL_J1013.7+3444_daily_bin956.fits.....................!
real 51.80
user 50.41
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .68917E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.840       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6979       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46588       1.0000         .10000E-03   10000.    
    10 'norm      '    12.666       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9881       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12078E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5468       1.0000         .10000E-03   10000.    
    14 'norm      '    18.369       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13433       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.935       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.878       1.0000         .10000E-03   10000.    
    23 'norm      '    2.9366       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2663       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .50264       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=   5831.828     FROM MIGRAD    STATUS=CONVERGED   1158 CALLS     3824 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6900        .14289E-02** at limit **
   2  Prefactor     .10000E-03    .88160        .69937E-03** at limit **
   3  norm          .10002E-03    13.097        .81705E-01** at limit **
   4  Prefactor     11.979        31.828        .11574E-03    .17681E-05
   5  Prefactor     25.820        21.069        .78805E-04    .13416E-04
   6  Prefactor     .10000E-03    12.438        .18142E-02** at limit **
   7  Prefactor     4.6970        8.1136        .18566E-03   -.42864E-06
   8  Prefactor     .10000E-03    3.0320        .12976E-02** at limit **
   9  Prefactor     .46565        1.6834        .18388E-03    .34624E-04
  10  norm          12.665        7.8360        .11255E-03    .38382E-05
  11  Prefactor     5.9882        6.1228        .13429E-03   -.11090E-04
  12  Prefactor     .10000E-03    79.290        .18142E-02** at limit **
  13  Prefactor     3.5454        6.5183        .18653E-03   -.11154E-04
  14  norm          18.364        12.529        .93450E-04   -.23844E-04
  15  Prefactor     .10000E-03    26.207        .18142E-02** at limit **
  16  Prefactor     .10000E-03    31.304        .18142E-02** at limit **
  17  Prefactor     .14327        39.968        .22597E-02    .20371E-03
  18  Prefactor     10.442        5.9678        .12400E-03    .25213E-04
  19  Prefactor     15.910        40.574        .10033E-03   -.24928E-05
  20  Prefactor     .10000E-03    7.7141        .18142E-02** at limit **
  21  Prefactor     .10000E-03    51.253        .18142E-02** at limit **
  22  Prefactor     12.877        12.577        .11162E-03   -.39722E-05
  23  norm          2.9367        .46773        .20158E-04   -.12464E-03
  24  Prefactor     .10000E-03    19.592        .18142E-02** at limit **
  25  Prefactor     .10000E-03    17.339        .18142E-02** at limit **
  26  Normalizat    1.2665        .20688        .21298E-03    .40461E-05
  27  Prefactor     .50253        .22015        .36451E-03   -.18932E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 11.9792
  Prefactor  = 25.8203
  Prefactor  = 0.0001
  Prefactor  = 4.697
  Prefactor  = 0.0001
  Prefactor  = 0.465646
  norm       = 12.6652
  Prefactor  = 5.98823
  Prefactor  = 0.0001
  Prefactor  = 3.5454
  norm       = 18.364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.143267
  Prefactor  = 10.4424
  Prefactor  = 15.9096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8774
  norm       = 2.93674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26648
  Prefactor  = 0.502527
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.828     FROM HESSE     STATUS=OK           472 CALLS     4296 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6904        .28578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .88161        .13987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    12.556        .84604E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.979        31.823        .46294E-05   -1.5016    
   5  Prefactor     25.820        21.045        .31522E-05   -1.4691    
   6  Prefactor     .10000E-03    12.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6970        8.1106        .74263E-05   -1.5274    
   8  Prefactor     .10000E-03    3.0321        .25953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .46565        1.6831        .73550E-05   -1.5572    
  10  norm          12.665        7.8358        .45022E-05   -1.4996    
  11  Prefactor     5.9882        6.1189        .53716E-05   -1.5219    
  12  Prefactor     .10000E-03    79.318        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5454        6.5143        .74611E-05   -1.5331    
  14  norm          18.364        12.437        .37380E-05   -1.4851    
  15  Prefactor     .10000E-03    26.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .14327        38.242        .90387E-04   -1.5632    
  18  Prefactor     10.442        5.9671        .49599E-05   -1.5062    
  19  Prefactor     15.910        40.083        .40134E-05   -1.4910    
  20  Prefactor     .10000E-03    7.7142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.877        12.577        .44648E-05   -1.4990    
  23  norm          2.9367        .46770        .80630E-06   -1.5365    
  24  Prefactor     .10000E-03    19.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2665        .20605        .42597E-04   -.84573    
  27  Prefactor     .50253        .22001        .14580E-04   -1.1186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14164e-10
Minuit parameter uncertainties:
  1  1.76798e-06
  2  3.2229e-07
  3  0.000914224
  4  31.8676
  5  21.0514
  6  1.741e-06
  7  8.11253
  8  2.02521e-06
  9  1.68326
  10  7.83639
  11  6.11956
  12  4.78525e-05
  13  6.51562
  14  12.4387
  15  4.14114e-07
  16  1.18211e-05
  17  4.68277
  18  5.96748
  19  40.1511
  20  7.24392e-07
  21  3.33527e-05
  22  12.58
  23  0.467705
  24  1.33513e-05
  25  1.62861e-05
  26  0.206187
  27  0.220381
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  5.988e+00  6.120e+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:  5.025e-01  2.204e-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.266e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.35
Ra Dec: 153.449 34.738
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 5.84e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.55e-05

TS (Fixed Index): 2.35
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736175/likelihoodResults_487123201_487382401_4FGL_J1013.7+3444_daily_bin956.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5831.58467819
delta logL = 0.242941806786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5831.57620366
delta logL = 0.251416333095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5923       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1354       1.0000          .0000       10.000    
     3 'Normalizat'    1.2460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52066       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=   5831.576     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5932        48.620        .53301E-02    .37948E-03
   2  Index         3.1354        3.5125        .16032        .10240E-03
   3  Normalizat    1.2460        .56761E-01    .48495E-01   -.19937E-04
   4  Prefactor     .52063        .64167E-01    .80966E-01    .26451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59324
  Index      = 3.13537
  Normalizat = 1.24603
  Prefactor  = 0.520635
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.576     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5932        5.8484        .94625E-04   -1.5329    
   2  Index         3.1354        1.0668        .58203E-02   -.38216    
   3  Normalizat    1.2460        .19753        .21438E-03   -.85192    
   4  Prefactor     .52063        .21892        .35867E-03   -1.1104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43211e-11
Minuit parameter uncertainties:
  1  5.84934
  2  1.07648
  3  0.197644
  4  0.219278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736175': 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) = 5831.5762034
delta logL = 0.25141659567

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  3.593e+00  5.849e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  3.135e+00  1.076e+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:  5.206e-01  2.193e-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.246e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 153.449 34.738
Photon Index (Free Index): 3.14 +/- 1.08
Photon Flux (Free Index): 7.35e-08 +/- 5.15e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.06e-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/736175/cmap_HighResolution_487123201_487382401_4FGL_J1013.7+3444_daily_bin956.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='1.38e-05', photon_flux_error='5.84e-08', dlogl='2.51e-01', energy_flux='1.51e-05', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-09-01 14:14:31.965203', photon_index_error2='1.08', photon_index2='3.14', ts='2.35', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.06e-05', EG='1.27', time_epoch_completed='1630530871.97', return_code='0', job_id='736175', GAL2='0.52', EG2='1.25', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='5.15e-08', ts2='2.90', photon_index='2.59' WHERE bin_id='956' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:14:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 736175: <4FGL_J1013.7+3444_daily_bin956> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin956> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 14:00:19 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:00:28 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:00:28 2021
Terminated at Wed Sep  1 14:14:32 2021
Results reported at Wed Sep  1 14:14:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin956 153.449 34.7384 487123201 487382401 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 :                                   824.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            853 sec.

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

