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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1403
RA = 155.788, Dec = 39.8226
tmin = 602985601, tmax = 603244801
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='841012', job_status='RUN', time_executed='2021-09-01 19:38:41.448360', time_epoch_executed='1630550321.45' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841012/ft1_4FGL_J1023.1+3949_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841012/ft2_4FGL_J1023.1+3949_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841012/ft1_4FGL_J1023.1+3949_daily_bin1403.fits outfile=/scratch/kocevski/841012/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1403.fits ra=155.788 dec=39.8226 rad=12.0 tmin=602985601.0 tmax=603244801.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.06
user 2.82
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/841012/ft2_4FGL_J1023.1+3949_daily_bin1403.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/841012/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/841012/ft1_filtered_4FGL_J1023.1+3949_daily_bin1403.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.51
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841012/ft1_filtered_4FGL_J1023.1+3949_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/841012/ft2_4FGL_J1023.1+3949_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/841012/ltcube_602985601_603244801_4FGL_J1023.1+3949_daily_bin1403.fits outfile=/scratch/kocevski/841012/expmap_602985601_603244801_4FGL_J1023.1+3949_daily_bin1403.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/841012/ltcube_602985601_603244801_4FGL_J1023.1+3949_daily_bin1403.fits
.....................!
real 192.63
user 186.47
sys 5.43

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/841012/ft1_filtered_4FGL_J1023.1+3949_daily_bin1403.fits scfile=/scratch/kocevski/841012/ft2_4FGL_J1023.1+3949_daily_bin1403.fits outfile=/scratch/kocevski/841012/cmap_602985601_603244801_4FGL_J1023.1+3949_daily_bin1403.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841012/ft1_filtered_4FGL_J1023.1+3949_daily_bin1403.fits scfile=/scratch/kocevski/841012/ft2_4FGL_J1023.1+3949_daily_bin1403.fits outfile=/scratch/kocevski/841012/cmap_HighResolution_602985601_603244801_4FGL_J1023.1+3949_daily_bin1403.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3766       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27070E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0754       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6080       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6786       1.0000         .10000E-03   10000.    
     7 'norm      '    58.651       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3465.2       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.153       1.0000         .10000E-03   10000.    
    12 'norm      '    .19850       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9700.5       1.0000         .10000E-03   10000.    
    14 'norm      '    .99562E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13160E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44546       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11700E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20952E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13480E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9720       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    590.27       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3816       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10523E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .43906       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   189.6463     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     1026 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3766        7066.1         .0000         .0000    
   2  Prefactor     .10000E-03    843.05       -.22293E-04** at limit **
   3  norm         10000.0        6699.2        .11648E-02** at limit **
   4  Prefactor    10000.0        9063.8       -.54418E-04** at limit **
   5  Prefactor    10000.0        9963.8       -.74326E-04** at limit **
   6  Prefactor    10000.0        6900.6        .11589E-02** at limit **
   7  norm         10000.0        7476.5       -.65483E-05** at limit **
   8  Prefactor    10000.0        2165.2       -.85958E-05** at limit **
   9  Prefactor     1.0098        7026.3         .0000         .0000    
  10  Prefactor    10000.0        6034.2       -.23421E-03** at limit **
  11  Prefactor    10000.0        9580.0        .18244E-03** at limit **
  12  norm          .10000E-03    111.82       -.38423E-05** at limit **
  13  Prefactor     6499.0        6594.7        .17289E-03    .93358E-07
  14  norm          .10000E-03    498.13        .17131E-04** at limit **
  15  Prefactor     .10001E-03    6205.6        .27126E-05** at limit **
  16  Prefactor     .10001E-03    522.18       -.32856E-04** at limit **
  17  Prefactor     .10000E-03    64.194        .17800E-05** at limit **
  18  Prefactor     .10000E-03    85.731        .28489E-06** at limit **
  19  Prefactor     .10000E-03    223.47       -.76738E-05** at limit **
  20  Prefactor     .10000E-03    252.48        .13310E-04** at limit **
  21  Prefactor     .10000E-03    113.61        .37058E-06** at limit **
  22  Prefactor     547.77        540.18       -.22780E-05   -.57181E-05
  23  norm          1.3802        1.0219       -.32603E-07    .56278E-04
  24  Prefactor     .10000E-03    26.639       -.40488E-06** at limit **
  25  Prefactor     .10000E-03    38.253        .29895E-05** at limit **
  26  norm          .10000E-03    21.264        .18607E-06** at limit **
  27  Normalizat    .10000E-01    .24366       -.13981E-04** at limit **
  28  Prefactor     .41310        .43451        .21710E-05   -.29175E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37659
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 1.00983
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 6499.04
  norm       = 0.000100001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 547.767
  norm       = 1.38018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.413095
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   189.6463     FROM HESSE     STATUS=FAILED         9 CALLS     1035 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          549.54        546.08         .0000       -1.5340    
   2  Prefactor     .10000E-03    .20965       -.22293E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        .12844        .11648E-02    7.8541    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        .75963E-01   -.54418E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        .33029E-01   -.74326E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        .16523        .11589E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        .42879E-02   -.65483E-05    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        .21122       -.85958E-05    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0098        1.3253         .0000       -1.5507    
  10  Prefactor    10000.0        .11040E-03   -.23421E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        .58193E-02    .18244E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .24854       -.38423E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6499.0        2.7984        .17289E-03    2.8371    
  14  norm          .10000E-03    .20579        .17131E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    .20651        .27126E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    .30504       -.32856E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571        .17800E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571        .28489E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .26401       -.76738E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .13621        .13310E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20571        .37058E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     547.77        .96550       -.22780E-05   -1.0983    
  23  norm          1.3802        1.0873       -.32603E-07   -1.5473    
  24  Prefactor     .10000E-03    .20571       -.40488E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .20571        .29895E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .20571        .18607E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .25505       -.13981E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .41310        .75313        .21710E-05   -1.1614    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.60212e-11
Minuit parameter uncertainties:
  1  1.01141
  2  1.65239e-05
  3  0.00313397
  4  6.3165e-05
  5  0.000353142
  6  0.000892913
  7  2.59249e-05
  8  7.32702e-05
  9  1.32538
  10  5.63812e-06
  11  1.29666e-05
  12  1.76378e-05
  13  2.79841
  14  2.16852e-05
  15  0.00010945
  16  8.28949e-05
  17  2.43318e-06
  18  1.10877e-06
  19  8.3692e-06
  20  2.30877e-05
  21  5.30826e-06
  22  0.965499
  23  1.08732
  24  9.33818e-07
  25  1.8441e-06
  26  1.38815e-07
  27  9.93211e-07
  28  0.772373
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  2.169e-05  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  4.131e-01  7.724e-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.000e-02  9.932e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 8.23e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/841012/likelihoodResults_602985601_603244801_4FGL_J1023.1+3949_daily_bin1403.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) = 189.646269223
delta logL = -9.35169182981e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 189.646269218
delta logL = -9.34708964451e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96222E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2505       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41313       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=   189.6463     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      218 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10031E-03    591.98        .18145E-02** at limit **
   2  alpha         2.3516        3.3464        .16565       -.15868E-07
   3  Normalizat    .10000E-01    .24145        .20795E-02** at limit **
   4  Prefactor     .41310        .39537        .27006E-03    .12223E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100309
  alpha      = 2.35157
  Normalizat = 0.01
  Prefactor  = 0.413096
 **********
 **   18 **HESSE 
 **********

 FCN=   189.6463     FROM HESSE     STATUS=OK            23 CALLS      241 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10031E-03    510.30        .36290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3516        2.9696        .66262E-02   -.59405E-01
   3  Normalizat    .10000E-01    .24145        .41590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41310        .39537        .54011E-04   -1.1614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45116e-09
Minuit parameter uncertainties:
  1  0.025318
  2  4201.36
  3  7.72698e-07
  4  0.39802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841012': 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) = 189.646259871
delta logL = 6.39829522697e-10

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.003e-04  2.532e-02  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.352e+00  4.201e+03  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:  4.131e-01  3.980e-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.000e-02  7.727e-07  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/841012/cmap_HighResolution_602985601_603244801_4FGL_J1023.1+3949_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='8.23e-06', time_completed='2021-09-01 19:45:35.805517', job_id='841012', GAL2='0.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630550735.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.41', dlogl='6.40e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1403' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 841012: <4FGL_J1023.1+3949_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1403> 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) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:35:52 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:52 2021
Terminated at Wed Sep  1 19:45:36 2021
Results reported at Wed Sep  1 19:45:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1403 155.788 39.8226 602985601 603244801 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 :                                 1094 MB
    Average Memory :                             229.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            618 sec.

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

