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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1053
RA = 155.788, Dec = 39.8226
tmin = 512265601, tmax = 512524801
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='839366', job_status='RUN', time_executed='2021-09-01 19:31:20.229082', time_epoch_executed='1630549880.23' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839366/ft1_4FGL_J1023.1+3949_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839366/ft2_4FGL_J1023.1+3949_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839366/ft1_4FGL_J1023.1+3949_daily_bin1053.fits outfile=/scratch/kocevski/839366/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1053.fits ra=155.788 dec=39.8226 rad=12.0 tmin=512265601.0 tmax=512524801.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.60
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839366/ft2_4FGL_J1023.1+3949_daily_bin1053.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/839366/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/839366/ft1_filtered_4FGL_J1023.1+3949_daily_bin1053.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839366/ft1_filtered_4FGL_J1023.1+3949_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/839366/ft2_4FGL_J1023.1+3949_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/839366/ltcube_512265601_512524801_4FGL_J1023.1+3949_daily_bin1053.fits outfile=/scratch/kocevski/839366/expmap_512265601_512524801_4FGL_J1023.1+3949_daily_bin1053.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/839366/ltcube_512265601_512524801_4FGL_J1023.1+3949_daily_bin1053.fits
.....................!
real 192.10
user 186.92
sys 4.64

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/839366/ft1_filtered_4FGL_J1023.1+3949_daily_bin1053.fits scfile=/scratch/kocevski/839366/ft2_4FGL_J1023.1+3949_daily_bin1053.fits outfile=/scratch/kocevski/839366/cmap_512265601_512524801_4FGL_J1023.1+3949_daily_bin1053.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839366/ft1_filtered_4FGL_J1023.1+3949_daily_bin1053.fits scfile=/scratch/kocevski/839366/ft2_4FGL_J1023.1+3949_daily_bin1053.fits outfile=/scratch/kocevski/839366/cmap_HighResolution_512265601_512524801_4FGL_J1023.1+3949_daily_bin1053.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0459       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50637E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.1243       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18311E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2435       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6694       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4493       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3610       1.0000         .10000E-03   10000.    
    20 'Prefactor '    80.365       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .96176       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .82757       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.847       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8514       1.0000         .10000E-03   10000.    
    26 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .61559       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3646       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=   6039.342     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3054 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5892       -.18465E-07** at limit **
   2  Prefactor     1.0470        2.0282        .28890E-06   -.16229E-03
   3  norm          .10000E-03    3.9573       -.43271E-07** at limit **
   4  Prefactor     .10000E-03    6.2250       -.63017E-07** at limit **
   5  Prefactor     .10000E-03    7.1292       -.12126E-06** at limit **
   6  Prefactor     .10000E-03    7.1461        .13219E-06** at limit **
   7  norm          18.167        12.018        .64986E-06    .36724E-03
   8  Prefactor     .62629E-01    4.1639       -.62208E-06    .29089E-03
   9  Prefactor     .17514        1.8160       -.43157E-07   -.13729E-03
  10  Prefactor     .10000E-03    1.2289        .36406E-08** at limit **
  11  Prefactor     .10000E-03    10.976        .33828E-07** at limit **
  12  norm          9.1242        3.1930       -.51555E-08    .13002E-03
  13  Prefactor     .10000E-03    1.7899       -.13859E-06** at limit **
  14  norm          6.2430        7.1918        .18646E-05   -.55228E-03
  15  Prefactor     9.6535        25.264        .10399E-05    .63397E-04
  16  Prefactor     .10000E-03    16.760        .17509E-06** at limit **
  17  Prefactor     8.4487        4.7578       -.99432E-07    .21968E-04
  18  Prefactor     .10000E-03    1.5093       -.97821E-08** at limit **
  19  Prefactor     5.3666        48.668        .65422E-06    .17381E-04
  20  Prefactor     80.346        67.000       -.42230E-05   -.27395E-03
  21  Prefactor     .90775        14.443       -.10316E-05    .13978E-03
  22  Prefactor     .10000E-03    157.54       -.28644E-07** at limit **
  23  norm          .82758        .26324        .30567E-08    .16356E-03
  24  Prefactor     13.850        11.840        .53762E-07    .15970E-04
  25  Prefactor     8.8520        9.3734        .23559E-07    .98881E-05
  26  norm          .10000E-03    6.5891        .83616E-07** at limit **
  27  Normalizat    .61556        .15245       -.39917E-06    .10993E-03
  28  Prefactor     1.3643        .19724       -.19968E-06    .11239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.04697
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1673
  Prefactor  = 0.0626286
  Prefactor  = 0.175141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.1242
  Prefactor  = 0.000100001
  norm       = 6.24304
  Prefactor  = 9.65345
  Prefactor  = 0.0001
  Prefactor  = 8.44868
  Prefactor  = 0.0001
  Prefactor  = 5.36658
  Prefactor  = 80.3462
  Prefactor  = 0.907752
  Prefactor  = 0.0001
  norm       = 0.827581
  Prefactor  = 13.8499
  Prefactor  = 8.85196
  norm       = 0.0001
  Normalizat = 0.615565
  Prefactor  = 1.36428
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.342     FROM HESSE     STATUS=OK           533 CALLS     3587 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6213        .16251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0470        1.9989        .14909E-03   -1.5503    
   3  norm          .10000E-03    3.9586        .15099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.167        12.132        .93973E-04   -1.4855    
   8  Prefactor     .62629E-01    4.0375        .50209E-01   -1.5658    
   9  Prefactor     .17514        4.6976        .20226E-02   -1.5624    
  10  Prefactor     .10000E-03    1.2372        .83977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.1242        3.1928        .79391E-04   -1.5104    
  13  Prefactor     .10000E-03    14.223        .19745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2430        7.8077        .80327E-03   -1.5208    
  15  Prefactor     9.6535        25.330        .12887E-03   -1.5086    
  16  Prefactor     .10000E-03    16.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.4487        4.7454        .11503E-03   -1.5127    
  18  Prefactor     .10000E-03    1.5168        .93192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3666        48.291        .17357E-03   -1.5245    
  20  Prefactor     80.346        72.365        .22400E-03   -1.3913    
  21  Prefactor     .90775        98.229        .55810E-02   -1.5517    
  22  Prefactor     .10000E-03    158.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .82758        .26396        .21422E-04   -1.5526    
  24  Prefactor     13.850        11.831        .10764E-03   -1.4963    
  25  Prefactor     8.8520        9.3733        .13472E-03   -1.5113    
  26  norm          .10000E-03    6.6123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .61556        .17955        .26130E-03   -1.0733    
  28  Prefactor     1.3643        .23705        .24345E-03   -.81415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3864e-08
Minuit parameter uncertainties:
  1  1.80852e-06
  2  1.999
  3  3.75981e-06
  4  7.50427e-06
  5  1.39172e-05
  6  1.53637e-05
  7  12.1338
  8  1.00498
  9  1.81375
  10  6.50539e-07
  11  3.2054e-06
  12  3.19288
  13  0.000277888
  14  7.80898
  15  25.3584
  16  2.37124e-05
  17  4.74562
  18  1.16242e-06
  19  32.2312
  20  72.4449
  21  18.9165
  22  4.66551e-06
  23  0.263963
  24  11.833
  25  9.37488
  26  9.74616e-06
  27  0.179719
  28  0.237235
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  6.243e+00  7.809e+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:  1.364e+00  2.372e-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:  6.156e-01  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839366/likelihoodResults_512265601_512524801_4FGL_J1023.1+3949_daily_bin1053.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) = 6039.25451532
delta logL = 0.0879429606712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6039.25374559
delta logL = 0.088712689595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0819       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8616       1.0000          .0000       5.0000    
     3 'Normalizat'    .62314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3577       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=   6039.254     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0780        8.2962        .40700E-02    .23513E-02
   2  alpha         1.8610        .78354        .42991       -.22547E-04
   3  Normalizat    .62292        .14876        .41255E-01   -.18995E-04
   4  Prefactor     1.3578        .19957        .55165E-01   -.75560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.07801
  alpha      = 1.86104
  Normalizat = 0.622923
  Prefactor  = 1.3578
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.254     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0780        7.6939        .81401E-03   -1.5215    
   2  alpha         1.8610        .86553        .21979E-01   -.25845    
   3  Normalizat    .62292        .17540        .25959E-03   -1.0702    
   4  Prefactor     1.3578        .23507        .24391E-03   -.81604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10317e-09
Minuit parameter uncertainties:
  1  7.6951
  2  0.885189
  3  0.175557
  4  0.235253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839366': 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) = 6039.25374306
delta logL = 0.0887152240302

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  6.078e+00  7.695e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  1.861e+00  8.852e-01  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:  1.358e+00  2.353e-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:  6.229e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 155.788 39.823
Photon Index (Free Index): 1.86 +/- 0.89
Photon Flux (Free Index): 1.32e-08 +/- 1.97e-08
Energy Flux (Free Index): 7.81e-06 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/839366/cmap_HighResolution_512265601_512524801_4FGL_J1023.1+3949_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-05', comment='SUCCESS', energy_flux2='7.81e-06', dlogl='8.87e-02', photon_flux2='1.32e-08', job_status='DONE', time_completed='2021-09-01 19:44:58.181124', photon_index_error2='0.89', photon_index2='1.86', ts='0.99', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='7.27e-08', energy_flux_error2='1.05e-05', EG='0.62', time_epoch_completed='1630550698.18', return_code='0', job_id='839366', GAL2='1.36', EG2='0.62', return_code2='0', photon_flux_error2='1.97e-08', ts2='1.17', photon_index='2.25' WHERE bin_id='1053' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:44:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 839366: <4FGL_J1023.1+3949_daily_bin1053> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1053> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 19:30:24 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:30:59 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:30:59 2021
Terminated at Wed Sep  1 19:44:58 2021
Results reported at Wed Sep  1 19:44:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1053 155.788 39.8226 512265601 512524801 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 :                                   814.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            874 sec.

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

