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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin59
RA = 155.788, Dec = 39.8226
tmin = 254620801, tmax = 254880001
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='832834', job_status='RUN', time_executed='2021-09-01 19:09:05.921934', time_epoch_executed='1630548545.92' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832834

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832834/ft1_4FGL_J1023.1+3949_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832834/ft2_4FGL_J1023.1+3949_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832834/ft1_4FGL_J1023.1+3949_daily_bin59.fits outfile=/scratch/kocevski/832834/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin59.fits ra=155.788 dec=39.8226 rad=12.0 tmin=254620801.0 tmax=254880001.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.36
user 1.17
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832834/ft1_filtered_4FGL_J1023.1+3949_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/832834/ft2_4FGL_J1023.1+3949_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/832834/ltcube_254620801_254880001_4FGL_J1023.1+3949_daily_bin59.fits outfile=/scratch/kocevski/832834/expmap_254620801_254880001_4FGL_J1023.1+3949_daily_bin59.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/832834/ltcube_254620801_254880001_4FGL_J1023.1+3949_daily_bin59.fits
.....................!
real 190.92
user 185.95
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/832834/ft1_filtered_4FGL_J1023.1+3949_daily_bin59.fits scfile=/scratch/kocevski/832834/ft2_4FGL_J1023.1+3949_daily_bin59.fits outfile=/scratch/kocevski/832834/cmap_254620801_254880001_4FGL_J1023.1+3949_daily_bin59.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832834/ft1_filtered_4FGL_J1023.1+3949_daily_bin59.fits scfile=/scratch/kocevski/832834/ft2_4FGL_J1023.1+3949_daily_bin59.fits outfile=/scratch/kocevski/832834/cmap_HighResolution_254620801_254880001_4FGL_J1023.1+3949_daily_bin59.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.548       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4957       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .61021E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.291       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8600       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36590E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    138.37       1.0000         .10000E-03   10000.    
    23 'norm      '    .91083       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .32638E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.9269       1.0000         .10000E-03   10000.    
    26 'norm      '    20.087       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0155       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87982       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=   4363.510     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3479 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.548        10.988        .50849E-06   -.31613E-04
   2  Prefactor     .10000E-03    1.0512        .39796E-07** at limit **
   3  norm          11.478        17.473        .61225E-06    .19716E-04
   4  Prefactor     .10000E-03    16.765       -.51925E-05** at limit **
   5  Prefactor     .10000E-03    29.964        .17035E-05** at limit **
   6  Prefactor     .10000E-03    3.4653        .64059E-07** at limit **
   7  norm          .10000E-03    5.7316        .13350E-06** at limit **
   8  Prefactor     .10000E-03    14.363        .42847E-05** at limit **
   9  Prefactor     2.4953        2.6931        .10206E-06   -.22468E-03
  10  Prefactor     .10000E-03    1.7652        .83919E-07** at limit **
  11  Prefactor     .10000E-03    66.780       -.36014E-05** at limit **
  12  norm          .10000E-03    1.2552        .38108E-07** at limit **
  13  Prefactor     .10001E-03    4.3130        .21200E-05** at limit **
  14  norm          .10033E-03    7.4306        .41047E-05** at limit **
  15  Prefactor     .10000E-03    16.296       -.17657E-05** at limit **
  16  Prefactor     .10000E-03    23.364        .78830E-05** at limit **
  17  Prefactor     16.293        8.0678       -.19006E-05   -.14034E-02
  18  Prefactor     3.8617        6.0726       -.72455E-05   -.10217E-02
  19  Prefactor     .10000E-03    31.661       -.80959E-05** at limit **
  20  Prefactor     .10000E-03    537.25       -.12216E-03** at limit **
  21  Prefactor     .10000E-03    10.105       -.40166E-06** at limit **
  22  Prefactor     138.45        130.81        .62633E-04   -.14885E-04
  23  norm          .91089        .33079        .33344E-07   -.80750E-03
  24  Prefactor     .10003E-03    11.313        .10235E-06** at limit **
  25  Prefactor     7.9380        16.054       -.11467E-05   -.56966E-04
  26  norm          20.091        12.862        .51282E-06   -.20776E-04
  27  Normalizat    1.0155        .18610       -.12988E-05   -.54709E-03
  28  Prefactor     .88009        .22315       -.19350E-05   -.34874E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.5475
  Prefactor  = 0.0001
  norm       = 11.4778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.000100331
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.2933
  Prefactor  = 3.86168
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 138.454
  norm       = 0.910886
  Prefactor  = 0.000100026
  Prefactor  = 7.938
  norm       = 20.091
  Normalizat = 1.01553
  Prefactor  = 0.880093
 **********
 **   18 **HESSE 
 **********

 FCN=   4363.510     FROM HESSE     STATUS=OK           513 CALLS     3992 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.548        10.990        .10157E-03   -1.4919    
   2  Prefactor     .10000E-03    1.0555        .66125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.478        17.453        .11822E-03   -1.5030    
   4  Prefactor     .10000E-03    16.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4724        .12009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.7389        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.752        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4953        2.6864        .10889E-03   -1.5392    
  10  Prefactor     .10000E-03    1.7800        .85604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    67.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2704        .72263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    8.7060        .26060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10033E-03    77.468        .33275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.293        7.8628        .99230E-04   -1.4900    
  18  Prefactor     3.8617        6.0806        .19288E-03   -1.5315    
  19  Prefactor     .10000E-03    31.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    538.31        .21304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     138.45        130.36        .17121E-03   -1.3349    
  23  norm          .91089        .33136        .21305E-04   -1.5517    
  24  Prefactor     .10003E-03    152.78        .40355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.9380        15.545        .14241E-03   -1.5144    
  26  norm          20.091        12.764        .89367E-04   -1.4811    
  27  Normalizat    1.0155        .21707        .21973E-03   -.92512    
  28  Prefactor     .88009        .26105        .29184E-03   -.96840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67504e-09
Minuit parameter uncertainties:
  1  10.9915
  2  1.30206e-06
  3  17.4606
  4  1.06555e-05
  5  4.2592e-05
  6  5.48868e-06
  7  6.24371e-06
  8  1.79579e-05
  9  2.68654
  10  1.01003e-05
  11  0.000312361
  12  2.14351e-06
  13  0.000560358
  14  0.0101465
  15  1.49871e-05
  16  0.000372902
  17  7.86328
  18  6.08155
  19  0.000154595
  20  0.00126003
  21  1.64202e-05
  22  130.63
  23  0.331358
  24  0.0039863
  25  15.5527
  26  12.7654
  27  0.217258
  28  0.261419
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.003e-04  1.015e-02  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:  8.801e-01  2.614e-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.016e+00  2.173e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832834/likelihoodResults_254620801_254880001_4FGL_J1023.1+3949_daily_bin59.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) = 4363.51006597
delta logL = -6.05803488725e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4363.49585013
delta logL = 0.0141552531632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2591       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0234       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88287       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=   4363.496     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      461 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2535        17.450        .19883E-02    .72907E-03
   2  alpha         3.0207        3.9557        .70990E-01    .40575E-04
   3  Normalizat    1.0086        .21057        .22037E-03   -.30953E-05
   4  Prefactor     .88318        .25846        .29132E-03   -.17171E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25353
  alpha      = 3.02066
  Normalizat = 1.00862
  Prefactor  = 0.883185
 **********
 **   18 **HESSE 
 **********

 FCN=   4363.496     FROM HESSE     STATUS=OK            27 CALLS      488 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2535        12.903        .39766E-03   -1.5484    
   2  alpha         3.0207        3.8564        .14198E-01    .20980    
   3  Normalizat    1.0086        .21095        .88148E-05   -.92742    
   4  Prefactor     .88318        .25877        .11653E-04   -.96731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44535e-13
Minuit parameter uncertainties:
  1  8.04544
  2  3.12751
  3  0.211127
  4  0.259133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832834': 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) = 4363.49584808
delta logL = 0.014157305538

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.254e+00  8.045e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  3.021e+00  3.128e+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:  8.832e-01  2.591e-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.009e+00  2.111e-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/832834/cmap_HighResolution_254620801_254880001_4FGL_J1023.1+3949_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2021-09-01 19:20:46.285976', job_id='832834', GAL2='0.88', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1630549246.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.42e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='59' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:20:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 832834: <4FGL_J1023.1+3949_daily_bin59> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin59 155.788 39.8226 254620801 254880001 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 :                                   700.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            896 sec.

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

