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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1477
RA = 153.449, Dec = 34.7384
tmin = 622166401, tmax = 622425601
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='739995', job_status='RUN', time_executed='2021-09-01 14:14:54.507354', time_epoch_executed='1630530894.51' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739995/ft1_4FGL_J1013.7+3444_daily_bin1477.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739995/ft2_4FGL_J1013.7+3444_daily_bin1477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739995/ft1_4FGL_J1013.7+3444_daily_bin1477.fits outfile=/scratch/kocevski/739995/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1477.fits ra=153.449 dec=34.7384 rad=12.0 tmin=622166401.0 tmax=622425601.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.73
user 3.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739995/ft1_filtered_4FGL_J1013.7+3444_daily_bin1477.fits" evtable="EVENTS" scfile=/scratch/kocevski/739995/ft2_4FGL_J1013.7+3444_daily_bin1477.fits sctable="SC_DATA" outfile=/scratch/kocevski/739995/ltcube_622166401_622425601_4FGL_J1013.7+3444_daily_bin1477.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/739995/ft2_4FGL_J1013.7+3444_daily_bin1477.fits
.....................!
real 18.06
user 17.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739995/ft1_filtered_4FGL_J1013.7+3444_daily_bin1477.fits evtable="EVENTS" scfile=/scratch/kocevski/739995/ft2_4FGL_J1013.7+3444_daily_bin1477.fits sctable="SC_DATA" expcube=/scratch/kocevski/739995/ltcube_622166401_622425601_4FGL_J1013.7+3444_daily_bin1477.fits outfile=/scratch/kocevski/739995/expmap_622166401_622425601_4FGL_J1013.7+3444_daily_bin1477.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/739995/ltcube_622166401_622425601_4FGL_J1013.7+3444_daily_bin1477.fits
.....................!
real 192.93
user 187.78
sys 4.68

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

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739995/ft1_filtered_4FGL_J1013.7+3444_daily_bin1477.fits evtable="EVENTS" scfile=/scratch/kocevski/739995/ft2_4FGL_J1013.7+3444_daily_bin1477.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739995/Model_4FGL_J1013.7+3444_daily_bin1477.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/739995/ft1_filtered_4FGL_J1013.7+3444_daily_bin1477.fits.....................!
real 48.17
user 46.69
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6676       1.0000         .10000E-03   10000.    
     3 'norm      '    13.588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    21.267       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2601       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1934       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13151E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.436       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2069       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.268       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11357E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .74252       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96970       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=   5541.760     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     2795 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1839       -.11544E-07** at limit **
   2  Prefactor     5.6672        3.2288        .76010E-07   -.57123E-04
   3  norm          13.587        15.269        .83037E-08   -.53687E-04
   4  Prefactor     .10000E-03    18.313       -.18125E-05** at limit **
   5  Prefactor     .10000E-03    8.8868        .85655E-07** at limit **
   6  Prefactor     .10000E-03    21.000        .17619E-05** at limit **
   7  Prefactor     13.881        8.3907        .29716E-06    .28809E-04
   8  Prefactor     2.8663        7.2207        .44021E-05   -.25193E-03
   9  Prefactor     .10000E-03    .70027        .89623E-08** at limit **
  10  norm          21.267        9.1127        .84060E-07   -.62726E-05
  11  Prefactor     .10000E-03    1.6069        .31566E-06** at limit **
  12  Prefactor     8.2604        15.260        .10638E-06   -.50217E-04
  13  Prefactor     2.1900        4.5027        .43426E-05   -.99420E-03
  14  norm          .10000E-03    3.5338       -.33010E-07** at limit **
  15  Prefactor     .10000E-03    26.514        .22855E-05** at limit **
  16  Prefactor     .10003E-03    183.19        .21233E-04** at limit **
  17  Prefactor     .10000E-03    1.1658       -.36294E-07** at limit **
  18  Prefactor     19.437        7.3086       -.21499E-05   -.28001E-02
  19  Prefactor     .10000E-03    30.063       -.14811E-08** at limit **
  20  Prefactor     .10000E-03    6.9707       -.44357E-07** at limit **
  21  Prefactor     .10000E-03    38.324       -.39694E-05** at limit **
  22  Prefactor     .10000E-03    3.7834        .68748E-08** at limit **
  23  norm          1.2069        .32100        .11559E-07   -.20130E-03
  24  Prefactor     12.270        14.743        .44768E-06   -.31915E-04
  25  Prefactor     .10000E-03    30.527       -.34798E-06** at limit **
  26  Normalizat    .74256        .15592       -.26477E-05   -.44449E-03
  27  Prefactor     .96968        .18299        .75378E-06   -.37268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.66723
  norm       = 13.5867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8808
  Prefactor  = 2.86632
  Prefactor  = 0.0001
  norm       = 21.2668
  Prefactor  = 0.0001
  Prefactor  = 8.26039
  Prefactor  = 2.18999
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 19.4373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.20692
  Prefactor  = 12.2697
  Prefactor  = 0.0001
  Normalizat = 0.74256
  Prefactor  = 0.969681
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.760     FROM HESSE     STATUS=OK           480 CALLS     3275 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1983        .12969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6672        3.2286        .97452E-04   -1.5232    
   3  norm          13.587        15.259        .10866E-03   -1.4971    
   4  Prefactor     .10000E-03    18.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.881        8.3805        .10751E-03   -1.4963    
   8  Prefactor     2.8663        7.1632        .12004E-02   -1.5369    
   9  Prefactor     .10000E-03    1.0083        .12094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.267        9.1115        .86854E-04   -1.4785    
  11  Prefactor     .10000E-03    1.6446        .92257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2604        15.259        .13949E-03   -1.5133    
  13  Prefactor     2.1900        4.5288        .10253E-02   -1.5412    
  14  norm          .10000E-03    3.5503        .13663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    186.55        .41143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1718        .78465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.437        7.5152        .90851E-04   -1.4826    
  19  Prefactor     .10000E-03    30.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.9776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7872        .14142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2069        .32198        .20436E-04   -1.5488    
  24  Prefactor     12.270        14.758        .11437E-03   -1.5007    
  25  Prefactor     .10000E-03    31.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .74256        .17914        .23228E-03   -1.0224    
  27  Prefactor     .96968        .21090        .25380E-03   -.93747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5279e-09
Minuit parameter uncertainties:
  1  5.20877e-07
  2  3.22873
  3  15.2631
  4  0.000163019
  5  3.5755e-06
  6  0.000137528
  7  8.38119
  8  7.16535
  9  9.39204e-07
  10  9.1121
  11  2.37552e-06
  12  15.2658
  13  4.52952
  14  3.44982e-06
  15  0.000194653
  16  0.00508316
  17  2.15178e-06
  18  7.51558
  19  2.31048e-05
  20  3.19118e-06
  21  0.000412435
  22  2.91456e-07
  23  0.321981
  24  14.7619
  25  4.48364e-05
  26  0.179279
  27  0.211084
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  2.376e-06  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.697e-01  2.111e-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.426e-01  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/739995/likelihoodResults_622166401_622425601_4FGL_J1013.7+3444_daily_bin1477.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5541.76319374
delta logL = -0.00289181845801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5541.76030195
delta logL = -3.77012838726e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6007       1.0000          .0000       10.000    
     3 'Normalizat'    .74258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96972       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5541.760     FROM MIGRAD    STATUS=FAILED        85 CALLS      232 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4335        .92529E-03** at limit **
   2  Index         2.6103        6.1380        .50000       -.53018E-04
   3  Normalizat    .74256        .16731        .23228E-03   -.13278E-03
   4  Prefactor     .96968        .20771        .25380E-03   -.14558E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5541.760     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      365 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4335        .18866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6103        6.1380        .46924E-03   -.49830    
   3  Normalizat    .74256        .16731        .42778E-04   -1.0224    
   4  Prefactor     .96968        .20771        .46506E-04   -.93747    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5541.760     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      398 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6948        .18506E-03** at limit **
   2  Index         2.6108        6.3007        .50000       -.53052E-04
   3  Normalizat    .74256        .16747        .92913E-05   -.74883E-04
   4  Prefactor     .96968        .20791        .10152E-04   -.15454E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.61079
  Normalizat = 0.74256
  Prefactor  = 0.969682
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.760     FROM HESSE     STATUS=OK            29 CALLS      427 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6578        .37012E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6108        6.2989        .50000       -.49820    
   3  Normalizat    .74256        .16738        .18583E-05   -1.0224    
   4  Prefactor     .96968        .20782        .20304E-05   -.93747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42343e-09
Minuit parameter uncertainties:
  1  0.000174448
  2  4.39448
  3  0.167494
  4  0.207992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739995': 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) = 5541.76030169
delta logL = 2.27045347856e-07

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.744e-04  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.611e+00  4.394e+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:  9.697e-01  2.080e-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.426e-01  1.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 153.449 34.738

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/739995/cmap_HighResolution_622166401_622425601_4FGL_J1013.7+3444_daily_bin1477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-01 14:27:08.651863', job_id='739995', GAL2='0.97', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630531628.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1477' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:27:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 739995: <4FGL_J1013.7+3444_daily_bin1477> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1477> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:11:00 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:14:43 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:14:43 2021
Terminated at Wed Sep  1 14:27:09 2021
Results reported at Wed Sep  1 14:27:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1477 153.449 34.7384 622166401 622425601 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 :                                   730.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            969 sec.

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

