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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1006
RA = 153.449, Dec = 34.7384
tmin = 500083201, tmax = 500342401
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='736264', job_status='RUN', time_executed='2021-09-01 14:01:40.984416', time_epoch_executed='1630530100.98' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736264/ft1_4FGL_J1013.7+3444_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736264/ft2_4FGL_J1013.7+3444_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736264/ft1_4FGL_J1013.7+3444_daily_bin1006.fits outfile=/scratch/kocevski/736264/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1006.fits ra=153.449 dec=34.7384 rad=12.0 tmin=500083201.0 tmax=500342401.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.76
user 5.49
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736264/ft1_filtered_4FGL_J1013.7+3444_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/736264/ft2_4FGL_J1013.7+3444_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/736264/ltcube_500083201_500342401_4FGL_J1013.7+3444_daily_bin1006.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/736264/ft2_4FGL_J1013.7+3444_daily_bin1006.fits
.....................!
real 14.73
user 14.39
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736264/ft1_filtered_4FGL_J1013.7+3444_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/736264/ft2_4FGL_J1013.7+3444_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/736264/ltcube_500083201_500342401_4FGL_J1013.7+3444_daily_bin1006.fits outfile=/scratch/kocevski/736264/expmap_500083201_500342401_4FGL_J1013.7+3444_daily_bin1006.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/736264/ltcube_500083201_500342401_4FGL_J1013.7+3444_daily_bin1006.fits
.....................!
real 190.96
user 186.60
sys 3.95

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/736264/ft1_filtered_4FGL_J1013.7+3444_daily_bin1006.fits scfile=/scratch/kocevski/736264/ft2_4FGL_J1013.7+3444_daily_bin1006.fits outfile=/scratch/kocevski/736264/cmap_500083201_500342401_4FGL_J1013.7+3444_daily_bin1006.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=153.449 yref=34.7384 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736264/ft1_filtered_4FGL_J1013.7+3444_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/736264/ft2_4FGL_J1013.7+3444_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736264/Model_4FGL_J1013.7+3444_daily_bin1006.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/736264/ft1_filtered_4FGL_J1013.7+3444_daily_bin1006.fits.....................!
real 46.07
user 44.73
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.288       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21473E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.035       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.206       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19607E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    128.67       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.714       1.0000         .10000E-03   10000.    
    23 'norm      '    .54535       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.915       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .69318       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3577       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=   5148.914     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3338 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.090        .49262E-05** at limit **
   2  Prefactor     .10000E-03    1.6348        .35520E-07** at limit **
   3  norm          .10000E-03    7.5721       -.20729E-05** at limit **
   4  Prefactor     .10000E-03    44.667       -.14106E-05** at limit **
   5  Prefactor     9.4978        17.780        .23195E-05   -.15158E-04
   6  Prefactor     .10000E-03    15.615        .61550E-05** at limit **
   7  Prefactor     13.283        10.088        .38785E-06   -.15011E-03
   8  Prefactor     .10000E-03    5.3298        .66480E-06** at limit **
   9  Prefactor     .10000E-03    1.7495        .37539E-06** at limit **
  10  norm          18.925        12.130        .24110E-06   -.67276E-04
  11  Prefactor     2.0477        3.0194       -.23543E-06   -.39425E-03
  12  Prefactor     .10000E-03    12.300       -.42655E-05** at limit **
  13  Prefactor     .10000E-03    1.2556       -.84295E-07** at limit **
  14  norm          10.292        8.9751       -.97255E-07    .16927E-03
  15  Prefactor     53.030        56.234       -.64610E-05   -.73079E-05
  16  Prefactor     22.210        25.230        .28652E-05    .32330E-04
  17  Prefactor     .10003E-03    2.6016       -.11236E-05** at limit **
  18  Prefactor     .10000E-03    1.6776        .18494E-06** at limit **
  19  Prefactor     .10000E-03    11.283       -.27678E-06** at limit **
  20  Prefactor     .10000E-03    7.8572        .17393E-06** at limit **
  21  Prefactor     128.69        174.17        .20271E-04    .16664E-04
  22  Prefactor     14.714        14.283        .20314E-06   -.18205E-04
  23  norm          .54536        .25507       -.55737E-08   -.62051E-05
  24  Prefactor     10.915        10.705       -.26747E-07   -.16888E-05
  25  Prefactor     .10000E-03    11.125        .31964E-06** at limit **
  26  Normalizat    .69311        .17931        .60764E-06   -.39614E-04
  27  Prefactor     1.3578        .21293       -.73074E-06    .42214E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.49775
  Prefactor  = 0.0001
  Prefactor  = 13.2831
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 18.9248
  Prefactor  = 2.04771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2916
  Prefactor  = 53.0299
  Prefactor  = 22.2095
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.689
  Prefactor  = 14.7139
  norm       = 0.545363
  Prefactor  = 10.9155
  Prefactor  = 0.0001
  Normalizat = 0.693113
  Prefactor  = 1.35785
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.914     FROM HESSE     STATUS=OK           486 CALLS     3824 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6608        .17839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.5951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4978        17.744        .13007E-03   -1.5092    
   6  Prefactor     .10000E-03    15.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.283        10.020        .10988E-03   -1.4979    
   8  Prefactor     .10000E-03    5.3509        .16176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1820        .17829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.925        12.119        .92064E-04   -1.4838    
  11  Prefactor     2.0477        3.0039        .14556E-03   -1.5422    
  12  Prefactor     .10000E-03    12.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2590        .78486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.292        8.9191        .12492E-03   -1.5066    
  15  Prefactor     53.030        56.230        .55075E-04   -1.4250    
  16  Prefactor     22.210        25.225        .84999E-04   -1.4765    
  17  Prefactor     .10003E-03    13.569        .21843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6805        .90706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.8612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     128.69        174.45        .35493E-04   -1.3434    
  22  Prefactor     14.714        14.275        .10441E-03   -1.4941    
  23  norm          .54536        .25571        .23936E-04   -1.5560    
  24  Prefactor     10.915        10.702        .12127E-03   -1.5047    
  25  Prefactor     .10000E-03    11.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .69311        .21074        .27214E-03   -1.0417    
  27  Prefactor     1.3578        .25334        .24496E-03   -.81603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37988e-09
Minuit parameter uncertainties:
  1  3.22011e-05
  2  2.35789e-05
  3  2.41541e-05
  4  1.88219e-05
  5  17.7543
  6  1.93963e-05
  7  10.0211
  8  7.15616e-07
  9  0.000219015
  10  12.1203
  11  3.00412
  12  1.35218e-06
  13  7.91578e-07
  14  8.92028
  15  56.2859
  16  25.2374
  17  0.00119481
  18  4.4303e-06
  19  8.30148e-06
  20  1.24032e-06
  21  175.153
  22  14.2787
  23  0.255706
  24  10.7043
  25  3.70745e-06
  26  0.210987
  27  0.253572
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  2.048e+00  3.004e+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.358e+00  2.536e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  6.931e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/736264/likelihoodResults_500083201_500342401_4FGL_J1013.7+3444_daily_bin1006.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) = 5148.74045815
delta logL = 0.174026032129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5148.73975592
delta logL = 0.174728264082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0245       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9704       1.0000          .0000       10.000    
     3 'Normalizat'    .70472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3454       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=   5148.740     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      320 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0245        3.7744        .15153E-03   -.35562E-04
   2  Index         1.9704        .84903        .11616E-01   -.82816E-04
   3  Normalizat    .70473        .20631        .26998E-03   -.50743E-04
   4  Prefactor     1.3454        .25220        .24583E-03   -.10207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02446
  Index      = 1.97044
  Normalizat = 0.70473
  Prefactor  = 1.34538
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.740     FROM HESSE     STATUS=OK            25 CALLS      345 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0245        3.7736        .60613E-05   -1.5360    
   2  Index         1.9704        .84912        .23232E-02   -.65091    
   3  Normalizat    .70473        .20646        .10799E-04   -1.0371    
   4  Prefactor     1.3454        .25239        .49165E-04   -.81968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00425e-11
Minuit parameter uncertainties:
  1  3.77387
  2  0.855703
  3  0.20669
  4  0.252625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736264': 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) = 5148.73975592
delta logL = 0.174728264617

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  3.024e+00  3.774e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  1.970e+00  8.557e-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.345e+00  2.526e-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.047e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 153.449 34.738
Photon Index (Free Index): 1.97 +/- 0.86
Photon Flux (Free Index): 1.42e-08 +/- 2.10e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.97e-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/736264/cmap_HighResolution_500083201_500342401_4FGL_J1013.7+3444_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.75e-01', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-09-01 14:13:45.213810', photon_index_error2='0.86', photon_index2='1.97', ts='0.70', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='9.66e-08', energy_flux_error2='1.97e-05', EG='0.69', time_epoch_completed='1630530825.21', return_code='0', job_id='736264', GAL2='1.35', EG2='0.70', return_code2='0', photon_flux_error2='2.10e-08', ts2='1.05', photon_index='2.59' WHERE bin_id='1006' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:13:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 736264: <4FGL_J1013.7+3444_daily_bin1006> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1006> 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) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:01: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:01:10 2021
Terminated at Wed Sep  1 14:13:45 2021
Results reported at Wed Sep  1 14:13:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1006 153.449 34.7384 500083201 500342401 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 :                                   720.34 sec.
    Max Memory :                                 1224 MB
    Average Memory :                             283.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            802 sec.

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

