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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1620
RA = 153.449, Dec = 34.7384
tmin = 659232001, tmax = 659491201
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='293043', job_status='RUN', time_executed='2021-12-07 20:51:28.325167', time_epoch_executed='1638939088.33' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293043/ft1_4FGL_J1013.7+3444_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293043/ft2_4FGL_J1013.7+3444_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293043/ft1_4FGL_J1013.7+3444_daily_bin1620.fits outfile=/scratch/kocevski/293043/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1620.fits ra=153.449 dec=34.7384 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.40
user 2.18
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293043/ft1_filtered_4FGL_J1013.7+3444_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/293043/ft2_4FGL_J1013.7+3444_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/293043/ltcube_659232001_659491201_4FGL_J1013.7+3444_daily_bin1620.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/293043/ft2_4FGL_J1013.7+3444_daily_bin1620.fits
.....................!
real 12.55
user 12.16
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293043/ft1_filtered_4FGL_J1013.7+3444_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/293043/ft2_4FGL_J1013.7+3444_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/293043/ltcube_659232001_659491201_4FGL_J1013.7+3444_daily_bin1620.fits outfile=/scratch/kocevski/293043/expmap_659232001_659491201_4FGL_J1013.7+3444_daily_bin1620.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/293043/ltcube_659232001_659491201_4FGL_J1013.7+3444_daily_bin1620.fits
.....................!
real 157.66
user 152.39
sys 3.53

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/293043/ft1_filtered_4FGL_J1013.7+3444_daily_bin1620.fits scfile=/scratch/kocevski/293043/ft2_4FGL_J1013.7+3444_daily_bin1620.fits outfile=/scratch/kocevski/293043/cmap_659232001_659491201_4FGL_J1013.7+3444_daily_bin1620.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.48
user 0.34
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293043/ft1_filtered_4FGL_J1013.7+3444_daily_bin1620.fits scfile=/scratch/kocevski/293043/ft2_4FGL_J1013.7+3444_daily_bin1620.fits outfile=/scratch/kocevski/293043/cmap_HighResolution_659232001_659491201_4FGL_J1013.7+3444_daily_bin1620.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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/293043/ft1_filtered_4FGL_J1013.7+3444_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/293043/ft2_4FGL_J1013.7+3444_daily_bin1620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293043/Model_4FGL_J1013.7+3444_daily_bin1620.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/293043/ft1_filtered_4FGL_J1013.7+3444_daily_bin1620.fits....................!
real 59.43
user 57.74
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .48029       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2688       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0875       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .70664       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4611       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.033       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3694       1.0000         .10000E-03   10000.    
    23 'norm      '    1.9767       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.4810       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86247       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3176       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=   9337.907     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     2851 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6679        .75839E-07** at limit **
   2  Prefactor     .48043        1.3717        .38868E-06   -.44858E-03
   3  norm          6.2701        9.2197        .22564E-05   -.32649E-03
   4  Prefactor     .10000E-03    22.942        .52277E-06** at limit **
   5  Prefactor     .10000E-03    6.7754        .73648E-06** at limit **
   6  Prefactor     .10000E-03    8.1168       -.11257E-05** at limit **
   7  Prefactor     .10000E-03    1.9630        .64501E-07** at limit **
   8  Prefactor     4.0875        4.0212       -.10774E-06   -.11768E-04
   9  Prefactor     .10000E-03    .72263        .23712E-07** at limit **
  10  norm          .70570        4.3149        .67928E-06   -.26244E-03
  11  Prefactor     1.4614        4.4642        .22379E-05   -.80118E-04
  12  Prefactor     .10002E-03    62.761       -.66424E-05** at limit **
  13  Prefactor     13.032        6.1362       -.63100E-06   -.39854E-03
  14  norm          .10000E-03    2.8274        .27330E-07** at limit **
  15  Prefactor     .10000E-03    16.910       -.64925E-06** at limit **
  16  Prefactor     .10000E-03    9.7836        .11533E-05** at limit **
  17  Prefactor     5.4397        3.2306        .11771E-06    .14220E-03
  18  Prefactor     .10000E-03    3.4709        .52054E-07** at limit **
  19  Prefactor     .10000E-03    7.3902       -.42609E-06** at limit **
  20  Prefactor     .10000E-03    22.264       -.13834E-06** at limit **
  21  Prefactor     .10001E-03    53.749        .52975E-05** at limit **
  22  Prefactor     9.3695        10.594        .15639E-05   -.23407E-03
  23  norm          1.9767        .30677        .26113E-08   -.20675E-03
  24  Prefactor     .10000E-03    5.0330       -.94806E-07** at limit **
  25  Prefactor     5.4813        9.3502        .16409E-06   -.13618E-04
  26  Normalizat    .86245        .13807       -.90417E-06   -.10612E-03
  27  Prefactor     1.3176        .16589       -.26512E-06   -.11366E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.480429
  norm       = 6.27009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.08746
  Prefactor  = 0.0001
  norm       = 0.705697
  Prefactor  = 1.46141
  Prefactor  = 0.000100017
  Prefactor  = 13.0322
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.43966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 9.36945
  norm       = 1.97673
  Prefactor  = 0.0001
  Prefactor  = 5.48132
  Normalizat = 0.862454
  Prefactor  = 1.31756
 **********
 **   18 **HESSE 
 **********

 FCN=   9337.907     FROM HESSE     STATUS=OK           488 CALLS     3339 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7496        .18064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .48043        1.6012        .18410E-02   -1.5569    
   3  norm          6.2701        9.2882        .80163E-03   -1.5207    
   4  Prefactor     .10000E-03    23.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9769        .13220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0875        4.0250        .18673E-03   -1.5304    
   9  Prefactor     .10000E-03    1.1682        .15903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .70570        10.501        .38201E-02   -1.5540    
  11  Prefactor     1.4614        4.3456        .26474E-03   -1.5466    
  12  Prefactor     .10002E-03    66.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.032        5.9183        .11095E-03   -1.4986    
  14  norm          .10000E-03    2.8405        .15864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.9108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4397        3.2308        .12827E-03   -1.5241    
  18  Prefactor     .10000E-03    3.5841        .35119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.4089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    56.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.3695        10.643        .65464E-03   -1.5096    
  23  norm          1.9767        .30785        .20167E-04   -1.5427    
  24  Prefactor     .10000E-03    5.0588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.4813        9.3642        .17163E-03   -1.5240    
  26  Normalizat    .86245        .16259        .25466E-03   -.97792    
  27  Prefactor     1.3176        .19711        .26255E-03   -.82786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38905e-08
Minuit parameter uncertainties:
  1  6.5057e-06
  2  1.60138
  3  9.29037
  4  0.000109394
  5  8.91393e-05
  6  0.000146195
  7  4.86301e-06
  8  4.02531
  9  4.54453e-06
  10  5.44512
  11  4.34654
  12  0.00210923
  13  5.91853
  14  3.82725e-06
  15  0.000122416
  16  0.000167635
  17  3.23089
  18  4.46814e-06
  19  5.41506e-05
  20  2.65864e-05
  21  0.00182604
  22  10.6451
  23  0.307854
  24  9.00667e-06
  25  9.36666
  26  0.16268
  27  0.197226
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.461e+00  4.347e+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.318e+00  1.972e-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:  8.625e-01  1.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293043/likelihoodResults_659232001_659491201_4FGL_J1013.7+3444_daily_bin1620.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) = 9337.45400962
delta logL = 0.453280637879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9337.39486814
delta logL = 0.512422114862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66892       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9720       1.0000          .0000       10.000    
     3 'Normalizat'    .81946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3508       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=   9337.395     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66873        8.2730        .11942E-01    .20328E-02
   2  Index         3.9722        2.9822        .15364        .17905E-03
   3  Normalizat    .81946        .27602E-01    .43864E-01    .26489E-04
   4  Prefactor     1.3508        .34519E-01    .58732E-01    .41358E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.668729
  Index      = 3.97217
  Normalizat = 0.819462
  Prefactor  = 1.35081
 **********
 **   18 **HESSE 
 **********

 FCN=   9337.395     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66873        28.309        .71095E-04   -1.5544    
   2  Index         3.9722        6.9004        .80980E-02   -.20704    
   3  Normalizat    .81946        .14844        .26033E-03   -.99351    
   4  Prefactor     1.3508        .18374        .25971E-03   -.81809    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54027e-09
Minuit parameter uncertainties:
  1  8.7057
  2  7.95772
  3  0.148516
  4  0.183832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293043': 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): 102
logL (Free Index) = 9337.39486813
delta logL = 0.51242212621

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  6.687e-01  8.706e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  3.972e+00  7.958e+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:  1.351e+00  1.838e-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:  8.195e-01  1.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 153.449 34.738
Photon Index (Free Index): 3.97 +/- 7.96
Photon Flux (Free Index): 4.99e-08 +/- 4.88e-08
Energy Flux (Free Index): 7.50e-06 +/- 1.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/293043/cmap_HighResolution_659232001_659491201_4FGL_J1013.7+3444_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', comment='SUCCESS', energy_flux2='7.50e-06', dlogl='5.12e-01', photon_flux2='4.99e-08', job_status='DONE', time_completed='2021-12-07 21:05:08.058951', photon_index_error2='7.96', photon_index2='3.97', ts='0.19', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='8.68e-08', energy_flux_error2='1.39e-05', EG='0.86', time_epoch_completed='1638939908.06', return_code='0', job_id='293043', GAL2='1.35', EG2='0.82', return_code2='102', photon_flux_error2='4.88e-08', ts2='1.30', photon_index='2.59' WHERE bin_id='1620' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:05:08 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 293043: <4FGL_J1013.7+3444_daily_bin1620> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1620> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 20:50:17 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:51:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:51:14 2021
Terminated at Tue Dec  7 21:05:08 2021
Results reported at Tue Dec  7 21:05:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1620 153.449 34.7384 659232001 659491201 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 :                                   812.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            891 sec.

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

