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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1410
RA = 153.449, Dec = 34.7384
tmin = 604800001, tmax = 605059201
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='739915', job_status='RUN', time_executed='2021-09-01 14:14:30.286212', time_epoch_executed='1630530870.29' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739915/ft1_4FGL_J1013.7+3444_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739915/ft2_4FGL_J1013.7+3444_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739915/ft1_4FGL_J1013.7+3444_daily_bin1410.fits outfile=/scratch/kocevski/739915/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1410.fits ra=153.449 dec=34.7384 rad=12.0 tmin=604800001.0 tmax=605059201.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.22
user 4.87
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739915/ft1_filtered_4FGL_J1013.7+3444_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/739915/ft2_4FGL_J1013.7+3444_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/739915/ltcube_604800001_605059201_4FGL_J1013.7+3444_daily_bin1410.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/739915/ft2_4FGL_J1013.7+3444_daily_bin1410.fits
.....................!
real 17.03
user 16.52
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739915/ft1_filtered_4FGL_J1013.7+3444_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/739915/ft2_4FGL_J1013.7+3444_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/739915/ltcube_604800001_605059201_4FGL_J1013.7+3444_daily_bin1410.fits outfile=/scratch/kocevski/739915/expmap_604800001_605059201_4FGL_J1013.7+3444_daily_bin1410.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/739915/ltcube_604800001_605059201_4FGL_J1013.7+3444_daily_bin1410.fits
.....................!
real 194.64
user 188.08
sys 6.03

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/739915/ft1_filtered_4FGL_J1013.7+3444_daily_bin1410.fits scfile=/scratch/kocevski/739915/ft2_4FGL_J1013.7+3444_daily_bin1410.fits outfile=/scratch/kocevski/739915/cmap_604800001_605059201_4FGL_J1013.7+3444_daily_bin1410.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739915/ft1_filtered_4FGL_J1013.7+3444_daily_bin1410.fits scfile=/scratch/kocevski/739915/ft2_4FGL_J1013.7+3444_daily_bin1410.fits outfile=/scratch/kocevski/739915/cmap_HighResolution_604800001_605059201_4FGL_J1013.7+3444_daily_bin1410.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739915/ft1_filtered_4FGL_J1013.7+3444_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/739915/ft2_4FGL_J1013.7+3444_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739915/Model_4FGL_J1013.7+3444_daily_bin1410.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/739915/ft1_filtered_4FGL_J1013.7+3444_daily_bin1410.fits.....................!
real 46.57
user 45.23
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74198       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10988E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8726       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9293       1.0000         .10000E-03   10000.    
    10 'norm      '    11.652       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0608       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0038       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    70.560       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.242       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .81920       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.440       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .19646E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1714       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79622       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=   5027.744     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3329 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74462        5.1323        .85581E-07   -.13917E-04
   2  Prefactor     .10000E-03    1.4445       -.44210E-07** at limit **
   3  norm          .10000E-03    50.412       -.45817E-06** at limit **
   4  Prefactor     .10000E-03    87.843        .38028E-06** at limit **
   5  Prefactor     9.4833        29.952        .19657E-05   -.43595E-07
   6  Prefactor     .10000E-03    21.382       -.10010E-05** at limit **
   7  Prefactor     2.8691        10.632        .31384E-05   -.32870E-05
   8  Prefactor     .10000E-03    3.6435       -.23933E-07** at limit **
   9  Prefactor     2.9294        4.2106        .11505E-07   -.15946E-04
  10  norm          11.653        12.234       -.75312E-07   -.69226E-05
  11  Prefactor     4.0625        6.6320        .24322E-06   -.33726E-04
  12  Prefactor     .10000E-03    10.520        .19089E-06** at limit **
  13  Prefactor     9.0042        7.2873        .17945E-06   -.47624E-04
  14  norm          .10000E-03    3.4693        .12363E-07** at limit **
  15  Prefactor     70.474        71.131        .60634E-05    .11520E-04
  16  Prefactor     14.284        28.469       -.93112E-06   -.29695E-04
  17  Prefactor     .10000E-03    2.6317        .64966E-06** at limit **
  18  Prefactor     .10000E-03    4.4855        .34814E-06** at limit **
  19  Prefactor     .10000E-03    14.565        .47637E-06** at limit **
  20  Prefactor     .10000E-03    10.539        .14560E-06** at limit **
  21  Prefactor     .10000E-03    57.675       -.97535E-06** at limit **
  22  Prefactor     .10000E-03    11.256       -.55432E-06** at limit **
  23  norm          .81936        .31467       -.32956E-09   -.18969E-03
  24  Prefactor     43.430        24.830        .17356E-06   -.26672E-04
  25  Prefactor     .10000E-03    26.621        .74424E-06** at limit **
  26  Normalizat    1.1715        .19867       -.63838E-06   -.72464E-04
  27  Prefactor     .79621        .21952       -.62889E-06   -.63760E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.744625
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.4833
  Prefactor  = 0.0001
  Prefactor  = 2.86906
  Prefactor  = 0.0001
  Prefactor  = 2.92944
  norm       = 11.6532
  Prefactor  = 4.06251
  Prefactor  = 0.0001
  Prefactor  = 9.00423
  norm       = 0.0001
  Prefactor  = 70.4741
  Prefactor  = 14.2838
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.819364
  Prefactor  = 43.4298
  Prefactor  = 0.0001
  Normalizat = 1.17147
  Prefactor  = 0.796213
 **********
 **   18 **HESSE 
 **********

 FCN=   5027.744     FROM HESSE     STATUS=OK           488 CALLS     3817 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74462        18.264        .30640E-02   -1.5535    
   2  Prefactor     .10000E-03    1.4584        .83155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    50.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    88.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4833        29.865        .12987E-03   -1.5092    
   6  Prefactor     .10000E-03    21.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8691        10.719        .11991E-02   -1.5369    
   8  Prefactor     .10000E-03    3.6485        .13217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9294        4.1900        .15703E-03   -1.5366    
  10  norm          11.653        12.239        .11736E-03   -1.5025    
  11  Prefactor     4.0625        6.5481        .18526E-03   -1.5305    
  12  Prefactor     .10000E-03    10.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0042        7.2197        .13357E-03   -1.5108    
  14  norm          .10000E-03    3.4760        .12897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     70.474        71.169        .23895E-03   -1.4027    
  16  Prefactor     14.284        28.246        .10613E-03   -1.4952    
  17  Prefactor     .10000E-03    9.6766        .21412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5102        .14535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .81936        .31596        .23238E-04   -1.5527    
  24  Prefactor     43.430        24.878        .60826E-04   -1.4389    
  25  Prefactor     .10000E-03    26.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1715        .23762        .22640E-03   -.87489    
  27  Prefactor     .79621        .26296        .30993E-03   -.99868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54589e-08
Minuit parameter uncertainties:
  1  7.37753
  2  1.43187e-06
  3  0.000203359
  4  4.44837e-05
  5  29.9116
  6  2.10974e-05
  7  10.7263
  8  1.44678e-06
  9  4.19044
  10  12.2416
  11  6.54925
  12  4.17529e-07
  13  7.22043
  14  4.84008e-09
  15  71.2552
  16  28.2722
  17  0.000345206
  18  2.04167e-05
  19  8.03339e-06
  20  5.68628e-07
  21  1.15855e-05
  22  1.13149e-06
  23  0.315966
  24  24.8835
  25  5.91494e-08
  26  0.23784
  27  0.263377
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  4.063e+00  6.549e+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:  7.962e-01  2.634e-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.171e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/739915/likelihoodResults_604800001_605059201_4FGL_J1013.7+3444_daily_bin1410.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) = 5027.63428776
delta logL = 0.110027472924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5027.62880589
delta logL = 0.115509338415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6530       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2513       1.0000          .0000       10.000    
     3 'Normalizat'    1.1797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78572       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=   5027.629     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      281 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6506        6.9689        .16895E-03    .13384E-03
   2  Index         2.2519        .64258        .84063E-02    .70534E-04
   3  Normalizat    1.1797        .22588        .22568E-03   -.70193E-04
   4  Prefactor     .78582        .25994        .31162E-03   -.89965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.65058
  Index      = 2.25186
  Normalizat = 1.17966
  Prefactor  = 0.785822
 **********
 **   18 **HESSE 
 **********

 FCN=   5027.629     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6506        6.9087        .67581E-05   -1.5233    
   2  Index         2.2519        .63702        .33625E-03   -.58192    
   3  Normalizat    1.1797        .22608        .45136E-04   -.87234    
   4  Prefactor     .78582        .26012        .12465E-04   -1.0025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38496e-10
Minuit parameter uncertainties:
  1  6.90969
  2  0.639518
  3  0.226268
  4  0.260529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739915': 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) = 5027.62880548
delta logL = 0.115509751759

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  5.651e+00  6.910e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.252e+00  6.395e-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:  7.858e-01  2.605e-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.180e+00  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
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/739915/cmap_HighResolution_604800001_605059201_4FGL_J1013.7+3444_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-01 14:26:34.274725', job_id='739915', GAL2='0.79', fit_tolerance='1e-08', EG2='1.18', EG='1.17', time_epoch_completed='1630531594.27', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.16e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1410' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 739915: <4FGL_J1013.7+3444_daily_bin1410> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1410> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:10:50 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:11:10 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:11:10 2021
Terminated at Wed Sep  1 14:26:35 2021
Results reported at Wed Sep  1 14:26:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1410 153.449 34.7384 604800001 605059201 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 :                                   719.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            945 sec.

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

