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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin658
RA = 155.788, Dec = 39.8226
tmin = 409881601, tmax = 410140801
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='835787', job_status='RUN', time_executed='2021-09-01 19:16:04.971132', time_epoch_executed='1630548964.97' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835787/ft1_4FGL_J1023.1+3949_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835787/ft1_4FGL_J1023.1+3949_daily_bin658.fits outfile=/scratch/kocevski/835787/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin658.fits ra=155.788 dec=39.8226 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.51
user 5.99
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.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/835787/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/835787/ft1_filtered_4FGL_J1023.1+3949_daily_bin658.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835787/ft1_filtered_4FGL_J1023.1+3949_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/835787/ltcube_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.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/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits
.....................!
real 12.03
user 11.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835787/ft1_filtered_4FGL_J1023.1+3949_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/835787/ltcube_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.fits outfile=/scratch/kocevski/835787/expmap_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.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/835787/ltcube_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.fits
.....................!
real 191.38
user 186.50
sys 4.52

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1023.1+3949 @ 155.788 39.8226

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/835787/ft1_filtered_4FGL_J1023.1+3949_daily_bin658.fits scfile=/scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits outfile=/scratch/kocevski/835787/cmap_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.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=155.788 yref=39.8226 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835787/ft1_filtered_4FGL_J1023.1+3949_daily_bin658.fits scfile=/scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits outfile=/scratch/kocevski/835787/cmap_HighResolution_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.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=155.788 yref=39.8226 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/835787/ft1_filtered_4FGL_J1023.1+3949_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835787/Model_4FGL_J1023.1+3949_daily_bin658.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/835787/ft1_filtered_4FGL_J1023.1+3949_daily_bin658.fits.....................!
real 45.13
user 43.85
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/835787/ft1_filtered_4FGL_J1023.1+3949_daily_bin658.fits', '/scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits', expMap='/scratch/kocevski/835787/expmap_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.fits', expCube='/scratch/kocevski/835787/ltcube_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/835787/Model_4FGL_J1023.1+3949_daily_bin658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.1+3949'

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.888e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/835787/ft1_filtered_4FGL_J1023.1+3949_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/835787/ft2_4FGL_J1023.1+3949_daily_bin658.fits
Exposure map: /scratch/kocevski/835787/expmap_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.fits
Exposure cube: /scratch/kocevski/835787/ltcube_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/835787/Model_4FGL_J1023.1+3949_daily_bin658.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) = 5082.53438834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .65922       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63572E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3310       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11883E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.560       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7203       1.0000         .10000E-03   10000.    
    14 'norm      '    5.8768       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.952       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10981       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.545       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.705       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13570E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7733       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.261       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    22.936       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92324       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5082.506     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3580 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9786       -.49834E-07** at limit **
   2  Prefactor     .65943        1.7949        .16268E-06   -.35100E-03
   3  norm          .10000E-03    10.565        .80163E-06** at limit **
   4  Prefactor     .10000E-03    9.3569       -.84346E-06** at limit **
   5  Prefactor     .10003E-03    21.397        .10858E-04** at limit **
   6  Prefactor     .10015E-03    8.9759       -.91420E-06** at limit **
   7  norm          .10000E-03    3.5150       -.37809E-07** at limit **
   8  Prefactor     5.3304        4.4860        .10871E-05   -.17791E-02
   9  Prefactor     .10054E-03    1.6093       -.10901E-05** at limit **
  10  Prefactor     .10001E-03    2.8450        .41824E-06** at limit **
  11  Prefactor     .10000E-03    6.1431        .66736E-07** at limit **
  12  norm          13.560        3.8699       -.36858E-07    .71640E-05
  13  Prefactor     1.7238        5.4463        .58215E-06   -.41456E-03
  14  norm          5.8764        7.7700        .30616E-06    .58630E-04
  15  Prefactor     30.955        50.631        .10449E-05    .39289E-04
  16  Prefactor     .10000E-03    277.49       -.57244E-05** at limit **
  17  Prefactor     .10563        1.7702       -.12420E-06   -.22846E-05
  18  Prefactor     10.545        5.9826       -.13789E-06    .88023E-06
  19  Prefactor     .10000E-03    9.4146       -.80225E-06** at limit **
  20  Prefactor     .10000E-03    43.251       -.21222E-05** at limit **
  21  Prefactor     17.704        20.948        .22749E-06    .20542E-04
  22  Prefactor     .10000E-03    72.640        .39728E-05** at limit **
  23  norm          1.7734        .39702       -.22833E-08    .14223E-03
  24  Prefactor     12.258        17.753        .43548E-06    .27072E-04
  25  Prefactor     .10000E-03    8.0454       -.68868E-06** at limit **
  26  norm          22.943        17.198       -.33380E-06   -.69596E-04
  27  Normalizat    .92331        .15759       -.20697E-06    .14129E-03
  28  Prefactor     .76214        .19381       -.18494E-06    .10260E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.659429
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.000100147
  norm       = 0.0001
  Prefactor  = 5.33042
  Prefactor  = 0.00010054
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 13.5597
  Prefactor  = 1.72379
  norm       = 5.87639
  Prefactor  = 30.9547
  Prefactor  = 0.000100004
  Prefactor  = 0.105628
  Prefactor  = 10.545
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.704
  Prefactor  = 0.000100004
  norm       = 1.77338
  Prefactor  = 12.2577
  Prefactor  = 0.0001
  norm       = 22.9432
  Normalizat = 0.923307
  Prefactor  = 0.762141
 **********
 **   18 **HESSE 
 **********

 FCN=   5082.506     FROM HESSE     STATUS=OK           527 CALLS     4107 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0407        .17018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .65943        1.7772        .15331E-03   -1.5546    
   3  norm          .10000E-03    10.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    22.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10015E-03    87.072        .40203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5276        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3304        6.3056        .87033E-03   -1.5246    
   9  Prefactor     .10054E-03    22.086        .16394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    8.5974        .19222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1443        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.560        3.8757        .72453E-04   -1.4971    
  13  Prefactor     1.7238        4.7085        .23637E-03   -1.5445    
  14  norm          5.8764        7.7421        .16566E-03   -1.5223    
  15  Prefactor     30.955        50.639        .72019E-04   -1.4595    
  16  Prefactor     .10000E-03    281.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10563        11.104        .18131E-02   -1.5643    
  18  Prefactor     10.545        5.8745        .12225E-03   -1.5058    
  19  Prefactor     .10000E-03    9.4257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.704        20.945        .95186E-04   -1.4866    
  22  Prefactor     .10000E-03    72.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7734        .39817        .19943E-04   -1.5442    
  24  Prefactor     12.258        17.772        .11440E-03   -1.5008    
  25  Prefactor     .10000E-03    8.0675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          22.943        17.184        .83637E-04   -1.4750    
  27  Normalizat    .92331        .18400        .21148E-03   -.95646    
  28  Prefactor     .76214        .22574        .29263E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01384e-08
Minuit parameter uncertainties:
  1  4.11495e-06
  2  1.77738
  3  7.24375e-05
  4  8.24269e-05
  5  0.00155027
  6  0.00715796
  7  1.96984e-06
  8  6.3064
  9  0.00690744
  10  0.000437479
  11  4.37862e-06
  12  3.8758
  13  4.70954
  14  7.74346
  15  50.7097
  16  0.00202393
  17  2.16542
  18  5.8748
  19  7.36708e-05
  20  0.000423197
  21  20.9534
  22  0.00102396
  23  0.398166
  24  17.7798
  25  6.00979e-05
  26  17.1873
  27  0.18413
  28  0.226012
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  5.876e+00  7.743e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.621e-01  2.260e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  9.233e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835787/likelihoodResults_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.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) = 5082.47399068
delta logL = 0.0321512398723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5082.4725669
delta logL = 0.0335750219992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5370       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5082       1.0000          .0000       5.0000    
     3 'Normalizat'    .91891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5082.473     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      279 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5454        7.6408        .85371E-03    .14997E-03
   2  alpha         2.5096        1.0268        .24099E-01    .47200E-04
   3  Normalizat    .91944        .17765        .21187E-03    .91218E-06
   4  Prefactor     .76510        .22481        .29210E-03    .21134E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.54542
  alpha      = 2.50957
  Normalizat = 0.919439
  Prefactor  = 0.765099
 **********
 **   18 **HESSE 
 **********

 FCN=   5082.473     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5454        7.4642        .17074E-03   -1.5237    
   2  alpha         2.5096        1.0045        .48198E-02    .38290E-02
   3  Normalizat    .91944        .17780        .84750E-05   -.95780    
   4  Prefactor     .76510        .22498        .11684E-04   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03752e-12
Minuit parameter uncertainties:
  1  7.4655
  2  1.03369
  3  0.177915
  4  0.225246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835787': 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) = 5082.47255914
delta logL = 0.0335827789968

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  5.545e+00  7.465e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.510e+00  1.034e+00  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.651e-01  2.252e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  9.194e-01  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.88
Ra Dec: 155.788 39.823

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/835787/cmap_HighResolution_409881601_410140801_4FGL_J1023.1+3949_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-01 19:29:19.604198', job_id='835787', GAL2='0.77', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630549759.6', return_code2='0', ts='0.88', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.36e-02', ts2='0.94', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='658' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:29:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 835787: <4FGL_J1023.1+3949_daily_bin658> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin658> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:15:49 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:15:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 19:15:51 2021
Terminated at Wed Sep  1 19:29:20 2021
Results reported at Wed Sep  1 19:29:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin658 155.788 39.8226 409881601 410140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.1+3949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   789.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

