/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 4 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 = 7478
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin317
RA = 155.788, Dec = 39.8226
tmin = 321494401, tmax = 321753601
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='834257', job_status='RUN', time_executed='2021-09-01 19:11:10.712550', time_epoch_executed='1630548670.71' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834257/ft1_4FGL_J1023.1+3949_daily_bin317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834257/ft2_4FGL_J1023.1+3949_daily_bin317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834257/ft1_4FGL_J1023.1+3949_daily_bin317.fits outfile=/scratch/kocevski/834257/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin317.fits ra=155.788 dec=39.8226 rad=12.0 tmin=321494401.0 tmax=321753601.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 4.16
user 3.78
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834257/ft2_4FGL_J1023.1+3949_daily_bin317.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/834257/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin317.fits evtable="EVENTS" outfile="/scratch/kocevski/834257/ft1_filtered_4FGL_J1023.1+3949_daily_bin317.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834257/ft1_filtered_4FGL_J1023.1+3949_daily_bin317.fits" evtable="EVENTS" scfile=/scratch/kocevski/834257/ft2_4FGL_J1023.1+3949_daily_bin317.fits sctable="SC_DATA" outfile=/scratch/kocevski/834257/ltcube_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.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/834257/ft2_4FGL_J1023.1+3949_daily_bin317.fits
.....................!
real 11.81
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834257/ft1_filtered_4FGL_J1023.1+3949_daily_bin317.fits evtable="EVENTS" scfile=/scratch/kocevski/834257/ft2_4FGL_J1023.1+3949_daily_bin317.fits sctable="SC_DATA" expcube=/scratch/kocevski/834257/ltcube_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.fits outfile=/scratch/kocevski/834257/expmap_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.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/834257/ltcube_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.fits
.....................!
real 189.74
user 185.26
sys 4.13

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/834257/ft1_filtered_4FGL_J1023.1+3949_daily_bin317.fits scfile=/scratch/kocevski/834257/ft2_4FGL_J1023.1+3949_daily_bin317.fits outfile=/scratch/kocevski/834257/cmap_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834257/ft1_filtered_4FGL_J1023.1+3949_daily_bin317.fits scfile=/scratch/kocevski/834257/ft2_4FGL_J1023.1+3949_daily_bin317.fits outfile=/scratch/kocevski/834257/cmap_HighResolution_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.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.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834257/ft1_filtered_4FGL_J1023.1+3949_daily_bin317.fits', '/scratch/kocevski/834257/ft2_4FGL_J1023.1+3949_daily_bin317.fits', expMap='/scratch/kocevski/834257/expmap_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.fits', expCube='/scratch/kocevski/834257/ltcube_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834257/Model_4FGL_J1023.1+3949_daily_bin317.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/834257/ft1_filtered_4FGL_J1023.1+3949_daily_bin317.fits
Spacecraft file(s): /scratch/kocevski/834257/ft2_4FGL_J1023.1+3949_daily_bin317.fits
Exposure map: /scratch/kocevski/834257/expmap_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.fits
Exposure cube: /scratch/kocevski/834257/ltcube_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834257/Model_4FGL_J1023.1+3949_daily_bin317.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) = 6116.99508959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18081E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.636       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5693       1.0000         .10000E-03   10000.    
     7 'norm      '    5.5291       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12887E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14778       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3331       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6022       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2977       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.757       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.499       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.064       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12550E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    84.335       1.0000         .10000E-03   10000.    
    23 'norm      '    2.2071       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.3668       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2507       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .66594       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6116.971     FROM MIGRAD    STATUS=CONVERGED   1262 CALLS     4201 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5951        9.2392        .13677E-03    .11654E-03
   2  Prefactor     .10001E-03    5.3384        .17650E-02** at limit **
   3  norm          .10000E-03    27.833        .18142E-02** at limit **
   4  Prefactor     12.113        25.032        .11513E-03    .20421E-03
   5  Prefactor     23.643        27.152        .82393E-04    .12360E-03
   6  Prefactor     1.5685        9.0151        .33940E-03    .35171E-05
   7  norm          5.5305        14.476        .17086E-03   -.23953E-04
   8  Prefactor     .10000E-03    5.1459        .17210E-02** at limit **
   9  Prefactor     .10000E-03    1.9758        .21204E-03** at limit **
  10  Prefactor     .10000E-03    6.2314        .26197E-02** at limit **
  11  Prefactor     .10380        20.419        .10379        .12946E-03
  12  norm          3.3330        2.3679        .49160E-03   -.20124E-03
  13  Prefactor     2.5997        4.7141        .21380E-03    .18212E-03
  14  norm          2.2983        5.0216        .25198E-03    .53374E-04
  15  Prefactor     .10000E-03    29.133        .18142E-02** at limit **
  16  Prefactor     24.767        22.901        .80507E-04   -.29483E-03
  17  Prefactor     11.500        5.5268        .11814E-03   -.44555E-04
  18  Prefactor     .10000E-03    6.2506        .24721E-02** at limit **
  19  Prefactor     .10000E-03    26.205        .18142E-02** at limit **
  20  Prefactor     30.046        68.055        .73072E-04   -.22840E-04
  21  Prefactor     .10003E-03    217.31        .76158E-02** at limit **
  22  Prefactor     84.227        102.55        .21871E-03   -.12790E-03
  23  norm          2.2071        .40558        .20588E-04   -.36887E-03
  24  Prefactor     .10000E-03    9.2427        .18142E-02** at limit **
  25  Prefactor     .10000E-03    8.1480        .18142E-02** at limit **
  26  norm          3.3656        8.6975        .22054E-03   -.13506E-04
  27  Normalizat    1.2506        .20634        .21820E-03    .55334E-04
  28  Prefactor     .66609        .23346        .34642E-03   -.23694E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.59511
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 12.1132
  Prefactor  = 23.6434
  Prefactor  = 1.56852
  norm       = 5.53053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.103801
  norm       = 3.33297
  Prefactor  = 2.59974
  norm       = 2.29829
  Prefactor  = 0.0001
  Prefactor  = 24.7674
  Prefactor  = 11.5002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0461
  Prefactor  = 0.000100032
  Prefactor  = 84.227
  norm       = 2.2071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.36561
  Normalizat = 1.25064
  Prefactor  = 0.666087
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.971     FROM HESSE     STATUS=OK           501 CALLS     4702 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5951        9.2378        .54708E-05   -1.5122    
   2  Prefactor     .10001E-03    5.3735        .35299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    27.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.113        25.026        .46052E-05   -1.5012    
   5  Prefactor     23.643        27.150        .16479E-04   -1.4735    
   6  Prefactor     1.5685        9.0105        .13576E-04   -1.5457    
   7  norm          5.5305        14.473        .68346E-05   -1.5238    
   8  Prefactor     .10000E-03    5.1480        .34421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9758        .42408E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2422        .52394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10380        19.014        .11046       -1.5644    
  12  norm          3.3330        2.3678        .19664E-04   -1.5343    
  13  Prefactor     2.5997        4.7069        .85520E-05   -1.5385    
  14  norm          2.2983        5.0214        .10079E-04   -1.5405    
  15  Prefactor     .10000E-03    29.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.767        22.877        .16101E-04   -1.4712    
  17  Prefactor     11.500        5.5270        .47256E-05   -1.5030    
  18  Prefactor     .10000E-03    6.2779        .49442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.046        68.053        .14614E-04   -1.4611    
  21  Prefactor     .10003E-03    225.70        .30463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     84.227        102.54        .43742E-04   -1.3870    
  23  norm          2.2071        .40557        .82351E-06   -1.5411    
  24  Prefactor     .10000E-03    9.2442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.1487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.3656        8.6972        .88215E-05   -1.5341    
  27  Normalizat    1.2506        .20647        .43639E-04   -.85052    
  28  Prefactor     .66609        .23358        .13857E-04   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49484e-09
Minuit parameter uncertainties:
  1  9.23934
  2  0.000402405
  3  0.000225636
  4  25.0477
  5  27.1642
  6  7.52028
  7  14.4822
  8  3.24493e-05
  9  9.37699e-06
  10  0.000136189
  11  2.80927
  12  2.36783
  13  4.70758
  14  5.02229
  15  3.36062e-05
  16  22.8853
  17  5.52727
  18  7.72896e-05
  19  2.74697e-05
  20  68.2295
  21  0.00540698
  22  102.757
  23  0.405574
  24  6.80983e-07
  25  6.34133e-06
  26  8.70045
  27  0.206602
  28  0.233926
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.298e+00  5.022e+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:  6.661e-01  2.339e-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:  1.251e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/834257/likelihoodResults_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.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) = 6116.95492166
delta logL = 0.0160224945339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6116.95443147
delta logL = 0.0165126776383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4411       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9358       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66314       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.

 FCN=   6116.954     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4432        6.2620        .65465E-02    .38097E-03
   2  alpha         1.9360        1.5171        .42561       -.18122E-04
   3  Normalizat    1.2526        .16643        .49322E-01   -.24902E-05
   4  Prefactor     .66396        .20008        .78352E-01    .24953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.44316
  alpha      = 1.936
  Normalizat = 1.25256
  Prefactor  = 0.663959
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.954     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4432        5.0904        .24914E-03   -1.5395    
   2  alpha         1.9360        1.4978        .41884E-01   -.22756    
   3  Normalizat    1.2526        .19365        .21805E-03   -.84994    
   4  Prefactor     .66396        .23207        .34693E-03   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00497e-12
Minuit parameter uncertainties:
  1  5.09126
  2  1.61316
  3  0.193762
  4  0.232404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834257': 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) = 6116.9544249
delta logL = 0.0165192486766

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.443e+00  5.091e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  1.936e+00  1.613e+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:  6.640e-01  2.324e-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:  1.253e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/834257/cmap_HighResolution_321494401_321753601_4FGL_J1023.1+3949_daily_bin317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-01 19:26:12.532548', job_id='834257', GAL2='0.66', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630549572.53', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.65e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='317' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 834257: <4FGL_J1023.1+3949_daily_bin317> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin317> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:10:52 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:10:53 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:10:53 2021
Terminated at Wed Sep  1 19:26:13 2021
Results reported at Wed Sep  1 19:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin317 155.788 39.8226 321494401 321753601 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 :                                   897.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

