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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin870
RA = 155.788, Dec = 39.8226
tmin = 464832001, tmax = 465091201
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='838422', job_status='RUN', time_executed='2021-09-01 19:25:52.995287', time_epoch_executed='1630549553.0' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838422

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838422/ft1_4FGL_J1023.1+3949_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838422/ft2_4FGL_J1023.1+3949_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838422/ft1_4FGL_J1023.1+3949_daily_bin870.fits outfile=/scratch/kocevski/838422/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin870.fits ra=155.788 dec=39.8226 rad=12.0 tmin=464832001.0 tmax=465091201.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.39
user 3.18
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838422/ft2_4FGL_J1023.1+3949_daily_bin870.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/838422/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin870.fits evtable="EVENTS" outfile="/scratch/kocevski/838422/ft1_filtered_4FGL_J1023.1+3949_daily_bin870.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.50
user 0.36
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838422/ft1_filtered_4FGL_J1023.1+3949_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/838422/ft2_4FGL_J1023.1+3949_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/838422/ltcube_464832001_465091201_4FGL_J1023.1+3949_daily_bin870.fits outfile=/scratch/kocevski/838422/expmap_464832001_465091201_4FGL_J1023.1+3949_daily_bin870.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/838422/ltcube_464832001_465091201_4FGL_J1023.1+3949_daily_bin870.fits
.....................!
real 192.43
user 185.52
sys 4.50

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/838422/ft1_filtered_4FGL_J1023.1+3949_daily_bin870.fits scfile=/scratch/kocevski/838422/ft2_4FGL_J1023.1+3949_daily_bin870.fits outfile=/scratch/kocevski/838422/cmap_464832001_465091201_4FGL_J1023.1+3949_daily_bin870.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.41
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838422/ft1_filtered_4FGL_J1023.1+3949_daily_bin870.fits scfile=/scratch/kocevski/838422/ft2_4FGL_J1023.1+3949_daily_bin870.fits outfile=/scratch/kocevski/838422/cmap_HighResolution_464832001_465091201_4FGL_J1023.1+3949_daily_bin870.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.42
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.721       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11420E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6061       1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.974       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8639       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7490       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.960       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1449       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.056       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8860       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.549       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
    22 'Prefactor '    73.671       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4340       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    21.149       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0520       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .67150       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=   6032.411     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3509 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.718        10.815        .50169E-08   -.14339E-04
   2  Prefactor     .10000E-03    1.5834        .26134E-07** at limit **
   3  norm          .10000E-03    4.8980       -.53230E-07** at limit **
   4  Prefactor     9.6108        14.447        .72812E-08   -.28161E-04
   5  Prefactor     56.992        35.636        .71939E-07    .35954E-04
   6  Prefactor     .10000E-03    8.8512       -.97084E-07** at limit **
   7  norm          .10000E-03    7.5691       -.56804E-07** at limit **
   8  Prefactor     1.8641        4.4811        .70600E-06   -.97844E-04
   9  Prefactor     3.7497        2.6481       -.14993E-07   -.61566E-04
  10  Prefactor     1.1552        4.9597        .24510E-05   -.83861E-04
  11  Prefactor     22.927        35.426       -.69924E-07   -.85511E-04
  12  norm          4.1450        2.0292       -.17065E-07    .11124E-05
  13  Prefactor     15.065        6.7051       -.61144E-06   -.38030E-03
  14  norm          1.9003        9.4911        .51044E-06   -.23922E-04
  15  Prefactor     .10000E-03    96.237        .52575E-07** at limit **
  16  Prefactor     .10000E-03    12.925       -.36934E-08** at limit **
  17  Prefactor     .10000E-03    2.6089       -.17173E-06** at limit **
  18  Prefactor     .10000E-03    1.6574       -.65324E-08** at limit **
  19  Prefactor     32.545        27.868        .10147E-06   -.17524E-04
  20  Prefactor     .10000E-03    16.685       -.25418E-07** at limit **
  21  Prefactor     13.608        15.787        .36647E-07   -.94651E-05
  22  Prefactor     73.691        63.434        .28024E-06    .32808E-04
  23  norm          1.4341        .31428        .30229E-08   -.52125E-04
  24  Prefactor     .10000E-03    3.7784       -.19304E-07** at limit **
  25  Prefactor     .10000E-03    9.5180        .21805E-07** at limit **
  26  norm          21.151        14.920        .50257E-07   -.18281E-04
  27  Normalizat    1.0513        .16388       -.69312E-07   -.14059E-03
  28  Prefactor     .67227        .19290       -.50111E-06   -.64165E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.7183
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.61081
  Prefactor  = 56.9924
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.86414
  Prefactor  = 3.74966
  Prefactor  = 1.15519
  Prefactor  = 22.9268
  norm       = 4.14498
  Prefactor  = 15.0647
  norm       = 1.9003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5451
  Prefactor  = 0.0001
  Prefactor  = 13.6085
  Prefactor  = 73.6908
  norm       = 1.43407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.1515
  Normalizat = 1.05134
  Prefactor  = 0.672271
 **********
 **   18 **HESSE 
 **********

 FCN=   6032.411     FROM HESSE     STATUS=OK           521 CALLS     4030 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.718        10.632        .92569E-04   -1.4842    
   2  Prefactor     .10000E-03    3.1022        .18610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.8985        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6108        14.430        .12930E-03   -1.5088    
   5  Prefactor     56.992        35.711        .53147E-04   -1.4197    
   6  Prefactor     .10000E-03    8.9432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.7482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8641        4.4388        .24448E-03   -1.5435    
   9  Prefactor     3.7497        2.6484        .10272E-03   -1.5321    
  10  Prefactor     1.1552        4.9906        .27996E-03   -1.5493    
  11  Prefactor     22.927        35.246        .83594E-04   -1.4750    
  12  norm          4.1450        2.0298        .75334E-04   -1.5301    
  13  Prefactor     15.065        6.7226        .10322E-03   -1.4932    
  14  norm          1.9003        9.2079        .30306E-03   -1.5432    
  15  Prefactor     .10000E-03    96.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6365        .12218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6685        .97608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.545        27.835        .70234E-04   -1.4566    
  20  Prefactor     .10000E-03    16.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.608        15.786        .10859E-03   -1.4970    
  22  Prefactor     73.691        63.547        .46776E-04   -1.3989    
  23  norm          1.4341        .31480        .19736E-04   -1.5468    
  24  Prefactor     .10000E-03    3.7821        .14742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.5821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          21.151        14.920        .87096E-04   -1.4788    
  27  Normalizat    1.0513        .19171        .21355E-03   -.91330    
  28  Prefactor     .67227        .22264        .32301E-03   -1.0462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97785e-11
Minuit parameter uncertainties:
  1  10.6329
  2  3.65805e-06
  3  1.91749e-06
  4  14.435
  5  35.7247
  6  1.77638e-05
  7  2.20476e-06
  8  4.43955
  9  2.64846
  10  4.8026
  11  35.2784
  12  2.02983
  13  6.72298
  14  8.36792
  15  1.78057e-05
  16  6.56478e-06
  17  4.34133e-06
  18  1.37212e-06
  19  27.8464
  20  1.21254e-05
  21  15.7912
  22  63.6052
  23  0.314799
  24  4.47855e-07
  25  7.21228e-06
  26  14.9223
  27  0.191835
  28  0.222932
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.900e+00  8.368e+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.723e-01  2.229e-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.051e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/838422/likelihoodResults_464832001_465091201_4FGL_J1023.1+3949_daily_bin870.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) = 6032.23581193
delta logL = 0.175568160894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6032.22758134
delta logL = 0.183798751953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9476       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2146       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68481       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6032.228     FROM MIGRAD    STATUS=FAILED        93 CALLS      280 TOTAL
                     EDM=   .45E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9511        381.35        .10551E-02   -.44578E-03
   2  alpha         3.2129        3.2628        .16878        .94160E-03
   3  Normalizat    1.0318        .11029        .21523E-03   -.10041E-03
   4  Prefactor     .68489        .14728        .32016E-03   -.26277E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6032.228     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      370 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9511        381.35        .11582E-03   -.44578E-03
   2  alpha         3.2129        3.2628        .27256E-02    .94160E-03
   3  Normalizat    1.0318        .11029        .10850E-03   -.10041E-03
   4  Prefactor     .68489        .14728        .98250E-04   -.26277E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6032.228     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      402 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9511        6.5530        .42205E-04   -.50571E-03
   2  alpha         3.2129        1.5056        .18554E-01   -.26402E-04
   3  Normalizat    1.0318        .18360        .86093E-05   -.10353E-03
   4  Prefactor     .68489        .22323        .12806E-04   -.46162E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.95108
  alpha      = 3.21293
  Normalizat = 1.0318
  Prefactor  = 0.68489
 **********
 **   18 **HESSE 
 **********

 FCN=   6032.228     FROM HESSE     STATUS=OK            25 CALLS      427 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9511        6.1920        .84410E-05   -1.5364    
   2  alpha         3.2129        1.4337        .74214E-03    .28919    
   3  Normalizat    1.0318        .18375        .17219E-05   -.91972    
   4  Prefactor     .68489        .22332        .25613E-05   -1.0412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53302e-10
Minuit parameter uncertainties:
  1  6.19337
  2  1.53692
  3  0.183863
  4  0.223613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838422': 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) = 6032.22758001
delta logL = 0.183800082291

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.951e+00  6.193e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  3.213e+00  1.537e+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.849e-01  2.236e-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.032e+00  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/838422/cmap_HighResolution_464832001_465091201_4FGL_J1023.1+3949_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-09-01 19:40:31.768430', job_id='838422', GAL2='0.68', fit_tolerance='1e-08', EG2='1.03', EG='1.05', time_epoch_completed='1630550431.77', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.84e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='870' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:40:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 838422: <4FGL_J1023.1+3949_daily_bin870> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin870> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:25:19 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:25:34 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:25:34 2021
Terminated at Wed Sep  1 19:40:32 2021
Results reported at Wed Sep  1 19:40:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin870 155.788 39.8226 464832001 465091201 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 :                                   867.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            913 sec.

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

