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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1402
RA = 155.788, Dec = 39.8226
tmin = 602726401, tmax = 602985601
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='841011', job_status='RUN', time_executed='2021-09-01 19:39:53.394792', time_epoch_executed='1630550393.39' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841011/ft1_4FGL_J1023.1+3949_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841011/ft2_4FGL_J1023.1+3949_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841011/ft1_4FGL_J1023.1+3949_daily_bin1402.fits outfile=/scratch/kocevski/841011/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1402.fits ra=155.788 dec=39.8226 rad=12.0 tmin=602726401.0 tmax=602985601.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.13
user 2.92
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841011/ft1_filtered_4FGL_J1023.1+3949_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/841011/ft2_4FGL_J1023.1+3949_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/841011/ltcube_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.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/841011/ft2_4FGL_J1023.1+3949_daily_bin1402.fits
.....................!
real 17.96
user 17.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841011/ft1_filtered_4FGL_J1023.1+3949_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/841011/ft2_4FGL_J1023.1+3949_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/841011/ltcube_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.fits outfile=/scratch/kocevski/841011/expmap_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.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/841011/ltcube_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.fits
.....................!
real 193.23
user 188.00
sys 4.78

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/841011/ft1_filtered_4FGL_J1023.1+3949_daily_bin1402.fits scfile=/scratch/kocevski/841011/ft2_4FGL_J1023.1+3949_daily_bin1402.fits outfile=/scratch/kocevski/841011/cmap_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841011/ft1_filtered_4FGL_J1023.1+3949_daily_bin1402.fits scfile=/scratch/kocevski/841011/ft2_4FGL_J1023.1+3949_daily_bin1402.fits outfile=/scratch/kocevski/841011/cmap_HighResolution_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.788 yref=39.8226 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/841011/ft1_filtered_4FGL_J1023.1+3949_daily_bin1402.fits', '/scratch/kocevski/841011/ft2_4FGL_J1023.1+3949_daily_bin1402.fits', expMap='/scratch/kocevski/841011/expmap_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.fits', expCube='/scratch/kocevski/841011/ltcube_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/841011/Model_4FGL_J1023.1+3949_daily_bin1402.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/841011/ft1_filtered_4FGL_J1023.1+3949_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/841011/ft2_4FGL_J1023.1+3949_daily_bin1402.fits
Exposure map: /scratch/kocevski/841011/expmap_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.fits
Exposure cube: /scratch/kocevski/841011/ltcube_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/841011/Model_4FGL_J1023.1+3949_daily_bin1402.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 41.365497143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 40.7837501106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16221       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9778       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72652       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1622       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8976       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9865       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7987       1.0000         .10000E-03   10000.    
    14 'norm      '    9.9564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3584       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6809       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22195       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .86769       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9670       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10218       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6036       1.0000         .10000E-03   10000.    
    23 'norm      '    .10309E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .54265       1.0000         .10000E-03   10000.    
    25 'Prefactor '    62.491       1.0000         .10000E-03   10000.    
    26 'norm      '    .17813       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79090       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   39.82531     FROM MIGRAD    STATUS=CONVERGED    518 CALLS      668 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    9574.9        .56007E-02** at limit **
   2  Prefactor     .10000E-03    463.74        .98038E-02** at limit **
   3  norm          1.9778        1.0362         .0000         .0000    
   4  Prefactor     2.7820        1.0171         .0000         .0000    
   5  Prefactor     7.1921        1.0024         .0000         .0000    
   6  Prefactor     1.4647        1.0750         .0000         .0000    
   7  norm          6.8267        1.0027         .0000         .0000    
   8  Prefactor     .10001E-03    .36985       -.17617E-04** at limit **
   9  Prefactor     1.0098        1.3253         .0000         .0000    
  10  Prefactor     1.1622        1.1510         .0000         .0000    
  11  Prefactor     5.8976        1.0036         .0000         .0000    
  12  norm         10000.0        .35994E-01   -.69863E-03** at limit **
  13  Prefactor     1.7987        1.0451         .0000         .0000    
  14  norm         10000.0        .25198E-01   -.23330E-03** at limit **
  15  Prefactor     .10011E-03    .58162E-01   -.12692E-03** at limit **
  16  Prefactor     .10024E-03    .32713E-01   -.13706E-03** at limit **
  17  Prefactor     8360.2        19.353       -.28133E-04   -.26397E-05
  18  Prefactor     .10000E-03    .25388       -.28570E-04** at limit **
  19  Prefactor     .10003E-03    .40257       -.52091E-05** at limit **
  20  Prefactor    10000.0        .25172E-01   -.59669E-04** at limit **
  21  Prefactor     .10000E-03    .22665       -.88898E-06** at limit **
  22  Prefactor     .10000E-03    .45001E-01    .70226E-05** at limit **
  23  norm          .10000E-03    .20571        .24859E-05** at limit **
  24  Prefactor     .10000E-03    .32739       -.91322E-06** at limit **
  25  Prefactor     .10001E-03    .40260E-02    .43467E-04** at limit **
  26  norm          .10001E-03    .24390       -.25143E-04** at limit **
  27  Normalizat    .29517        .52496       -.13478E-04   -.69321E-04
  28  Prefactor     .41744E-10    .46773       -.45935E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100138
  Prefactor  = 0.0001
  norm       = 1.97778
  Prefactor  = 2.78201
  Prefactor  = 7.19212
  Prefactor  = 1.46472
  norm       = 6.82667
  Prefactor  = 0.000100006
  Prefactor  = 1.00983
  Prefactor  = 1.16222
  Prefactor  = 5.89762
  norm       = 10000
  Prefactor  = 1.79868
  norm       = 10000
  Prefactor  = 0.000100108
  Prefactor  = 0.000100242
  Prefactor  = 8360.18
  Prefactor  = 0.000100002
  Prefactor  = 0.000100029
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.000100008
  Normalizat = 0.295168
  Prefactor  = 4.17438e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   39.82531     FROM HESSE     STATUS=FAILED        13 CALLS      681 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10014E-03    9574.9        .56007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    463.74        .98038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          569.36        567.24         .0000       -1.5427    
   4  Prefactor     2.7820        1.0171         .0000       -1.5374    
   5  Prefactor     7.1921        1.0024         .0000       -1.5172    
   6  Prefactor     1.4647        1.0750         .0000       -1.5466    
   7  norm          6.8267        1.0027         .0000       -1.5185    
   8  Prefactor     .10001E-03    .36985       -.17617E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0098        1.3253         .0000       -1.5507    
  10  Prefactor     1.1622        1.1510         .0000       -1.5492    
  11  Prefactor     5.8976        1.0036         .0000       -1.5222    
  12  norm         10000.0        .35994E-01   -.69863E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7987        1.0451         .0000       -1.5440    
  14  norm         10000.0        .25198E-01   -.23330E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10011E-03    .58162E-01   -.12692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10024E-03    .32713E-01   -.13706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8360.2        19.353       -.28133E-04    2.4046    
  18  Prefactor     .10000E-03    .25388       -.28570E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    .40257       -.52091E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        .25172E-01   -.59669E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .22665       -.88898E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .45001E-01    .70226E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .20571        .24859E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .32739       -.91322E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    .40260E-02    .43467E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10001E-03    .24390       -.25143E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .29517        .52496       -.13478E-04   -1.9103    
  28  Prefactor     .41744E-10    .46773       -.45935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.25378e-10
Minuit parameter uncertainties:
  1  0.0947637
  2  0.000866235
  3  1.03618
  4  1.01714
  5  1.00244
  6  1.075
  7  1.00271
  8  9.17566e-05
  9  1.32538
  10  1.15107
  11  1.00364
  12  0.000513858
  13  1.04507
  14  0.000543331
  15  0.000158235
  16  0.000177773
  17  19.3534
  18  4.92837e-05
  19  0.000217628
  20  2.0644e-05
  21  3.20466e-05
  22  4.73104e-06
  23  4.92981e-06
  24  2.10467e-06
  25  1.34427e-05
  26  8.67229e-05
  27  0.534092
  28  8.90781e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 39.8253054182

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e+04  5.433e-04  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:  4.174e-11  8.908e-06  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:  2.952e-01  5.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 1.15756826347e-07

TS (Fixed Index): 0.25
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -3.49e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/841011/likelihoodResults_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.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) = 39.724249459
delta logL = 0.10105595921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 39.7241944984
delta logL = 0.10111091976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   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=   39.72419     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .15E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        4.9429        .39091    ** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   39.72419     FROM HESSE     STATUS=OK             5 CALLS       67 TOTAL
                     EDM=   .15E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        4.9229        .17578E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46832e-18
Minuit parameter uncertainties:
  1  2.38233e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841011': 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) = 39.7241944984
delta logL = 0.10111091976

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
330        alpha:  5.000e+00  2.382e-08  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:  2.870e-06  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  2.907e-01  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.25
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/841011/cmap_HighResolution_602726401_602985601_4FGL_J1023.1+3949_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-3.49e+02', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-01 19:46:54.777041', job_id='841011', GAL2='0.00', fit_tolerance='1e-08', EG2='0.29', EG='0.30', time_epoch_completed='1630550814.78', return_code2='0', ts='0.25', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='1.01e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1402' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:46:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 841011: <4FGL_J1023.1+3949_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1402> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:35:18 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:35:50 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:35:50 2021
Terminated at Wed Sep  1 19:46:55 2021
Results reported at Wed Sep  1 19:46:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1402 155.788 39.8226 602726401 602985601 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 :                                   336.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            697 sec.

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

