/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 209 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 = 7389
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin76
RA = 155.788, Dec = 39.8226
tmin = 259027201, tmax = 259286401
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='832864', job_status='RUN', time_executed='2021-09-01 19:09:34.497453', time_epoch_executed='1630548574.5' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832864/ft1_4FGL_J1023.1+3949_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832864/ft2_4FGL_J1023.1+3949_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832864/ft1_4FGL_J1023.1+3949_daily_bin76.fits outfile=/scratch/kocevski/832864/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin76.fits ra=155.788 dec=39.8226 rad=12.0 tmin=259027201.0 tmax=259286401.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 1.46
user 1.29
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/832864/ft2_4FGL_J1023.1+3949_daily_bin76.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/832864/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/832864/ft1_filtered_4FGL_J1023.1+3949_daily_bin76.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832864/ft1_filtered_4FGL_J1023.1+3949_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/832864/ft2_4FGL_J1023.1+3949_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/832864/ltcube_259027201_259286401_4FGL_J1023.1+3949_daily_bin76.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/832864/ft2_4FGL_J1023.1+3949_daily_bin76.fits
.....................!
real 12.66
user 12.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832864/ft1_filtered_4FGL_J1023.1+3949_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/832864/ft2_4FGL_J1023.1+3949_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/832864/ltcube_259027201_259286401_4FGL_J1023.1+3949_daily_bin76.fits outfile=/scratch/kocevski/832864/expmap_259027201_259286401_4FGL_J1023.1+3949_daily_bin76.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/832864/ltcube_259027201_259286401_4FGL_J1023.1+3949_daily_bin76.fits
.....................!
real 191.36
user 186.09
sys 4.91

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/832864/ft1_filtered_4FGL_J1023.1+3949_daily_bin76.fits scfile=/scratch/kocevski/832864/ft2_4FGL_J1023.1+3949_daily_bin76.fits outfile=/scratch/kocevski/832864/cmap_259027201_259286401_4FGL_J1023.1+3949_daily_bin76.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832864/ft1_filtered_4FGL_J1023.1+3949_daily_bin76.fits scfile=/scratch/kocevski/832864/ft2_4FGL_J1023.1+3949_daily_bin76.fits outfile=/scratch/kocevski/832864/cmap_HighResolution_259027201_259286401_4FGL_J1023.1+3949_daily_bin76.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6966       1.0000         .10000E-03   10000.    
     3 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.687       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.4541       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.604       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4525       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.014       1.0000         .10000E-03   10000.    
    12 'norm      '    7.8685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13767E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.191       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.948       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11289E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.370       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .59624       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.592       1.0000         .10000E-03   10000.    
    26 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76454       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3062       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=   4870.860     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3485 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.163        .20946E-06** at limit **
   2  Prefactor     2.6966        2.5068       -.51308E-07   -.12525E-04
   3  norm          .10000E-03    12.623       -.11601E-05** at limit **
   4  Prefactor     44.692        36.255        .24534E-06    .30948E-04
   5  Prefactor     .10000E-03    24.102        .11978E-05** at limit **
   6  Prefactor     .10000E-03    4.2297       -.36896E-06** at limit **
   7  norm          7.4543        15.259       -.24274E-06   -.39458E-06
   8  Prefactor     13.604        12.759       -.11758E-06    .43582E-05
   9  Prefactor     2.4525        2.5221       -.89923E-07    .27655E-05
  10  Prefactor     6.7739        5.1040       -.81030E-06    .72324E-04
  11  Prefactor     12.023        24.785        .48429E-06    .31006E-04
  12  norm          7.8685        4.5483       -.98870E-07    .72295E-06
  13  Prefactor     .10000E-03    2.8452       -.14981E-05** at limit **
  14  norm          .10000E-03    105.07       -.18742E-04** at limit **
  15  Prefactor     .10000E-03    24.403        .76321E-06** at limit **
  16  Prefactor     71.187        44.377       -.12748E-06    .40936E-04
  17  Prefactor     12.950        5.7149        .10178E-06    .10471E-03
  18  Prefactor     .10000E-03    8.7454        .16953E-06** at limit **
  19  Prefactor     .10000E-03    13.696        .45865E-06** at limit **
  20  Prefactor     67.317        93.714       -.77199E-05   -.30611E-05
  21  Prefactor     .10000E-03    32.664       -.39954E-05** at limit **
  22  Prefactor     .10000E-03    63.359        .96630E-05** at limit **
  23  norm          .59623        .24537       -.64573E-08   -.58801E-04
  24  Prefactor     .10000E-03    3.8075        .43059E-07** at limit **
  25  Prefactor     22.592        14.252       -.64684E-07   -.45140E-05
  26  norm          .10000E-03    10.765        .52594E-06** at limit **
  27  Normalizat    .76445        .19560        .98372E-06    .63764E-04
  28  Prefactor     1.3064        .23726       -.13235E-06    .11433E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.69663
  norm       = 0.0001
  Prefactor  = 44.6916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.45433
  Prefactor  = 13.6041
  Prefactor  = 2.45245
  Prefactor  = 6.77394
  Prefactor  = 12.0228
  norm       = 7.86847
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.1868
  Prefactor  = 12.95
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.3172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.59623
  Prefactor  = 0.0001
  Prefactor  = 22.592
  norm       = 0.0001
  Normalizat = 0.764448
  Prefactor  = 1.30636
 **********
 **   18 **HESSE 
 **********

 FCN=   4870.860     FROM HESSE     STATUS=OK           519 CALLS     4004 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6966        2.5051        .10308E-03   -1.5380    
   3  norm          .10000E-03    12.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.692        36.264        .59975E-04   -1.4370    
   5  Prefactor     .10000E-03    24.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2393        .14018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.4543        15.227        .14690E-03   -1.5162    
   8  Prefactor     13.604        12.763        .10860E-03   -1.4970    
   9  Prefactor     2.4525        2.5116        .10892E-03   -1.5395    
  10  Prefactor     6.7739        5.1043        .64054E-03   -1.5187    
  11  Prefactor     12.023        24.456        .11557E-03   -1.5014    
  12  norm          7.8685        4.5458        .10731E-03   -1.5147    
  13  Prefactor     .10000E-03    2.8741        .11490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    101.88        .36186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     71.187        43.838        .47578E-04   -1.4019    
  17  Prefactor     12.950        5.6872        .10518E-03   -1.4988    
  18  Prefactor     .10000E-03    8.9169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     67.317        93.822        .24450E-03   -1.4065    
  21  Prefactor     .10000E-03    32.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    63.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .59623        .24701        .21371E-04   -1.5554    
  24  Prefactor     .10000E-03    3.8103        .13299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.592        14.254        .84272E-04   -1.4757    
  26  norm          .10000E-03    11.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .76445        .22591        .26899E-03   -1.0140    
  28  Prefactor     1.3064        .27590        .27200E-03   -.83118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37102e-11
Minuit parameter uncertainties:
  1  1.63523e-05
  2  2.50524
  3  1.28478e-05
  4  36.2822
  5  2.18387e-05
  6  3.7138e-07
  7  15.235
  8  12.7658
  9  2.51169
  10  5.10466
  11  24.4763
  12  4.54605
  13  5.90575e-06
  14  1.41475e-05
  15  5.89944e-08
  16  43.8583
  17  5.68743
  18  1.29564e-06
  19  3.36332e-06
  20  94.0295
  21  3.26951e-06
  22  1.54728e-05
  23  0.247012
  24  1.08198e-06
  25  14.2561
  26  1.76483e-05
  27  0.226185
  28  0.276209
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.415e-05  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.306e+00  2.762e-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:  7.644e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/832864/likelihoodResults_259027201_259286401_4FGL_J1023.1+3949_daily_bin76.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) = 4870.85960651
delta logL = -4.56680591014e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4870.85954907
delta logL = 1.17765139294e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6016       1.0000          .0000       5.0000    
     3 'Normalizat'    .76446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3064       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=   4870.764     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      276 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4674        163.66        .90712E-02    .69764E-03
   2  alpha         3.7860        3.6461        .47890        .33154E-04
   3  Normalizat    .73971        .48517E-01    .61759E-01    .11049E-03
   4  Prefactor     1.3227        .62313E-01    .61168E-01    .22992E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46741
  alpha      = 3.78602
  Normalizat = 0.739709
  Prefactor  = 1.32266
 **********
 **   18 **HESSE 
 **********

 FCN=   4870.764     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      307 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4674        390.67        .18967E-03   -1.5466    
   2  alpha         3.7860        2.9074        .53487E-01    .54032    
   3  Normalizat    .73971        .19335        .27319E-03   -1.0235    
   4  Prefactor     1.3227        .25431        .27050E-03   -.82636    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.68596e-06
Minuit parameter uncertainties:
  1  48.2058
  2  25.9595
  3  0.193532
  4  0.254545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832864': 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) = 4870.76436143
delta logL = 0.095199415201

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.467e+00  4.821e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  3.786e+00  2.596e+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.323e+00  2.545e-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:  7.397e-01  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/832864/cmap_HighResolution_259027201_259286401_4FGL_J1023.1+3949_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-01 19:21:52.928968', job_id='832864', GAL2='1.32', fit_tolerance='1e-08', EG2='0.74', EG='0.76', time_epoch_completed='1630549312.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='9.52e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='76' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:21:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 832864: <4FGL_J1023.1+3949_daily_bin76> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin76> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:05:54 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:05:55 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:05:55 2021
Terminated at Wed Sep  1 19:21:53 2021
Results reported at Wed Sep  1 19:21:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin76 155.788 39.8226 259027201 259286401 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 :                                   738.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            959 sec.

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

