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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin738
RA = 155.788, Dec = 39.8226
tmin = 430617601, tmax = 430876801
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='836938', job_status='RUN', time_executed='2021-09-01 19:20:41.444662', time_epoch_executed='1630549241.44' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/836938

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/836938/ft1_4FGL_J1023.1+3949_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/836938/ft2_4FGL_J1023.1+3949_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/836938/ft1_4FGL_J1023.1+3949_daily_bin738.fits outfile=/scratch/kocevski/836938/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin738.fits ra=155.788 dec=39.8226 rad=12.0 tmin=430617601.0 tmax=430876801.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 5.33
user 5.10
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/836938/ft1_filtered_4FGL_J1023.1+3949_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/836938/ft2_4FGL_J1023.1+3949_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/836938/ltcube_430617601_430876801_4FGL_J1023.1+3949_daily_bin738.fits outfile=/scratch/kocevski/836938/expmap_430617601_430876801_4FGL_J1023.1+3949_daily_bin738.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/836938/ltcube_430617601_430876801_4FGL_J1023.1+3949_daily_bin738.fits
.....................!
real 192.89
user 187.44
sys 5.02

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/836938/ft1_filtered_4FGL_J1023.1+3949_daily_bin738.fits scfile=/scratch/kocevski/836938/ft2_4FGL_J1023.1+3949_daily_bin738.fits outfile=/scratch/kocevski/836938/cmap_430617601_430876801_4FGL_J1023.1+3949_daily_bin738.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=155.788 yref=39.8226 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/836938/ft1_filtered_4FGL_J1023.1+3949_daily_bin738.fits scfile=/scratch/kocevski/836938/ft2_4FGL_J1023.1+3949_daily_bin738.fits outfile=/scratch/kocevski/836938/cmap_HighResolution_430617601_430876801_4FGL_J1023.1+3949_daily_bin738.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7004       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.520       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30513       1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5734       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1172       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.379       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7131       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .42001       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.3384       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95943       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82636       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=   4090.548     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3480 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.092        10.062        .59862E-07    .18261E-04
   2  Prefactor     2.7004        2.6468        .62677E-07   -.14766E-04
   3  norm          .10000E-03    21.059        .18045E-06** at limit **
   4  Prefactor     .10000E-03    32.178       -.48678E-05** at limit **
   5  Prefactor     21.513        39.332       -.29395E-05   -.84753E-04
   6  Prefactor     .34868        11.024       -.12868E-05    .23064E-03
   7  norm          .10000E-03    15.801        .16917E-05** at limit **
   8  Prefactor     11.607        7.6575       -.37294E-08   -.67180E-04
   9  Prefactor     1.5735        2.7766        .11340E-06   -.82380E-04
  10  Prefactor     3.1170        4.2700       -.43483E-07   -.11600E-04
  11  Prefactor     .10000E-03    40.750        .51260E-05** at limit **
  12  norm          14.379        4.4556       -.22153E-06   -.47156E-03
  13  Prefactor     .10000E-03    2.4200       -.57345E-07** at limit **
  14  norm          3.7140        9.7478        .51405E-05   -.10168E-02
  15  Prefactor     .10002E-03    45.452        .96934E-05** at limit **
  16  Prefactor     .10000E-03    14.931       -.19869E-05** at limit **
  17  Prefactor     2.8492        5.6098       -.48494E-06   -.67722E-04
  18  Prefactor     .10000E-03    3.4437       -.10234E-06** at limit **
  19  Prefactor     .10000E-03    11.706        .36698E-06** at limit **
  20  Prefactor     .10000E-03    32.873       -.42840E-05** at limit **
  21  Prefactor     .10000E-03    14.883       -.20293E-05** at limit **
  22  Prefactor     .10002E-03    65.206       -.10482E-04** at limit **
  23  norm          .42001        .24856        .21783E-08   -.35611E-03
  24  Prefactor     .10000E-03    16.452        .31546E-05** at limit **
  25  Prefactor     .10000E-03    6.0297        .10187E-08** at limit **
  26  norm          3.3387        10.304        .15910E-06   -.58970E-04
  27  Normalizat    .95933        .18270        .50602E-07    .53758E-04
  28  Prefactor     .82638        .22056       -.39884E-06    .60387E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0917
  Prefactor  = 2.7004
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 21.513
  Prefactor  = 0.348682
  norm       = 0.0001
  Prefactor  = 11.607
  Prefactor  = 1.57353
  Prefactor  = 3.11699
  Prefactor  = 0.000100005
  norm       = 14.3793
  Prefactor  = 0.0001
  norm       = 3.71397
  Prefactor  = 0.000100018
  Prefactor  = 0.000100001
  Prefactor  = 2.84916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100021
  norm       = 0.42001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.33872
  Normalizat = 0.959332
  Prefactor  = 0.826381
 **********
 **   18 **HESSE 
 **********

 FCN=   4090.548     FROM HESSE     STATUS=OK           521 CALLS     4001 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.092        10.058        .10670E-03   -1.4957    
   2  Prefactor     2.7004        2.6357        .98669E-04   -1.5379    
   3  norm          .10000E-03    21.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.513        39.563        .86343E-04   -1.4780    
   6  Prefactor     .34868        66.802        .39440E-02   -1.5590    
   7  norm          .10000E-03    16.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.607        7.6679        .11759E-03   -1.5026    
   9  Prefactor     1.5735        2.7517        .13621E-03   -1.5457    
  10  Prefactor     3.1170        4.2453        .14468E-03   -1.5355    
  11  Prefactor     .10000E-03    41.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.379        4.4650        .73006E-04   -1.4949    
  13  Prefactor     .10000E-03    2.4297        .96934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7140        12.237        .10478E-02   -1.5323    
  15  Prefactor     .10002E-03    47.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8492        5.6762        .19099E-03   -1.5370    
  18  Prefactor     .10000E-03    3.4826        .11586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    67.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .42001        .24822        .23741E-04   -1.5578    
  24  Prefactor     .10000E-03    16.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.0330        .15338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.3387        10.289        .22152E-03   -1.5343    
  27  Normalizat    .95933        .21891        .21046E-03   -.94406    
  28  Prefactor     .82638        .26234        .28352E-03   -.98763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22233e-09
Minuit parameter uncertainties:
  1  10.0591
  2  2.63579
  3  9.95406e-05
  4  0.000625057
  5  39.6108
  6  9.66204
  7  0.000177145
  8  7.66859
  9  2.75196
  10  4.24569
  11  0.000874999
  12  4.46515
  13  1.50629e-06
  14  12.2451
  15  0.00182316
  16  0.000216722
  17  5.67729
  18  8.36594e-06
  19  2.88804e-05
  20  0.000683714
  21  0.000220607
  22  0.00238713
  23  0.248225
  24  0.000328814
  25  1.89688e-06
  26  10.2943
  27  0.219119
  28  0.262734
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  3.714e+00  1.225e+01  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.264e-01  2.627e-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:  9.593e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/836938/likelihoodResults_430617601_430876801_4FGL_J1023.1+3949_daily_bin738.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) = 4090.09179208
delta logL = 0.455772136526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4090.07671906
delta logL = 0.47084515371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63391       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .89742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4090.077     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      374 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63331        .86411        .54191E-03   -.13222E-03
   2  alpha         5.0000        3.8095        .50000    ** at limit **
   3  Normalizat    .89719        .21850        .21677E-03   -.17359E-04
   4  Prefactor     .88306        .26829        .27511E-03    .50808E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.633312
  alpha      = 5
  Normalizat = 0.897192
  Prefactor  = 0.883059
 **********
 **   18 **HESSE 
 **********

 FCN=   4090.077     FROM HESSE     STATUS=OK            31 CALLS      405 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63331        .82969        .21676E-04   -1.5549    
   2  alpha         5.0000        3.7304        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89719        .21902        .86710E-05   -.96559    
   4  Prefactor     .88306        .26875        .11004E-04   -.96736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94568e-11
Minuit parameter uncertainties:
  1  0.82971
  2  4.85725e-05
  3  0.219236
  4  0.269155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/836938': 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) = 4090.076712
delta logL = 0.470852217322

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  6.333e-01  8.297e-01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  5.000e+00  4.857e-05  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.831e-01  2.692e-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:  8.972e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 155.788 39.823
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.89e-08 +/- 6.38e-08
Energy Flux (Free Index): 6.64e-06 +/- 8.67e-06

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/836938/cmap_HighResolution_430617601_430876801_4FGL_J1023.1+3949_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', comment='SUCCESS', energy_flux2='6.64e-06', dlogl='4.71e-01', photon_flux2='4.89e-08', job_status='DONE', time_completed='2021-09-01 19:32:14.061044', photon_index_error2='0.00', photon_index2='5.00', ts='0.12', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.33e-08', energy_flux_error2='8.67e-06', EG='0.96', time_epoch_completed='1630549934.06', return_code='0', job_id='836938', GAL2='0.88', EG2='0.90', return_code2='0', photon_flux_error2='6.38e-08', ts2='1.16', photon_index='2.25' WHERE bin_id='738' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:32:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 836938: <4FGL_J1023.1+3949_daily_bin738> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin738> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 19:20:20 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:20:22 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:20:22 2021
Terminated at Wed Sep  1 19:32:14 2021
Results reported at Wed Sep  1 19:32:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin738 155.788 39.8226 430617601 430876801 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 :                                   690.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            714 sec.

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

