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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1283
RA = 155.788, Dec = 39.8226
tmin = 571881601, tmax = 572140801
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='839707', job_status='RUN', time_executed='2021-09-01 19:36:52.206745', time_epoch_executed='1630550212.21' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839707/ft1_4FGL_J1023.1+3949_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839707/ft2_4FGL_J1023.1+3949_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839707/ft1_4FGL_J1023.1+3949_daily_bin1283.fits outfile=/scratch/kocevski/839707/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1283.fits ra=155.788 dec=39.8226 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.59
user 2.35
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839707/ft1_filtered_4FGL_J1023.1+3949_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/839707/ft2_4FGL_J1023.1+3949_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/839707/ltcube_571881601_572140801_4FGL_J1023.1+3949_daily_bin1283.fits outfile=/scratch/kocevski/839707/expmap_571881601_572140801_4FGL_J1023.1+3949_daily_bin1283.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/839707/ltcube_571881601_572140801_4FGL_J1023.1+3949_daily_bin1283.fits
.....................!
real 191.80
user 186.04
sys 5.18

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/839707/ft1_filtered_4FGL_J1023.1+3949_daily_bin1283.fits scfile=/scratch/kocevski/839707/ft2_4FGL_J1023.1+3949_daily_bin1283.fits outfile=/scratch/kocevski/839707/cmap_571881601_572140801_4FGL_J1023.1+3949_daily_bin1283.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839707/ft1_filtered_4FGL_J1023.1+3949_daily_bin1283.fits scfile=/scratch/kocevski/839707/ft2_4FGL_J1023.1+3949_daily_bin1283.fits outfile=/scratch/kocevski/839707/cmap_HighResolution_571881601_572140801_4FGL_J1023.1+3949_daily_bin1283.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/839707/ft1_filtered_4FGL_J1023.1+3949_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/839707/ft2_4FGL_J1023.1+3949_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839707/Model_4FGL_J1023.1+3949_daily_bin1283.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/839707/ft1_filtered_4FGL_J1023.1+3949_daily_bin1283.fits.........................!
real 15.94
user 14.62
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.0663       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5542       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8396       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2934       1.0000         .10000E-03   10000.    
     7 'norm      '    .30929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12550E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35540E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1649       1.0000         .10000E-03   10000.    
    12 'norm      '    7.0309       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12784E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12031E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6117       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5025       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15987E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .84374E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6753       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19039       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.361       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1681       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .25706E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15556E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    128.73       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .26461       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4218       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=   315.9799     FROM MIGRAD    STATUS=CONVERGED    294 CALLS      466 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3766        1.0114         .0000         .0000    
   2  Prefactor     1.0663        1.2185         .0000         .0000    
   3  norm          .18831E-02    .17550       -.26498E-04** at limit **
   4  Prefactor     .55708E-02    .10198       -.28022E-05   -.35201E-03
   5  Prefactor     .41237        .24626        .22133E-05    .48124E-02
   6  Prefactor     .45123E-01    .23661       -.86611E-05   -.69079E-03
   7  norm          .10000E-03    .27382       -.34368E-06** at limit **
   8  Prefactor     .10000E-03    .20571        .10209E-06** at limit **
   9  Prefactor     1.0098        1.3253         .0000         .0000    
  10  Prefactor     .10001E-03    .21156        .16912E-05** at limit **
  11  Prefactor     .10012E-03    .28378       -.43120E-05** at limit **
  12  norm          7.2047        1.0149       -.69758E-07    .38472E-04
  13  Prefactor     .10000E-03    .20571        .14557E-05** at limit **
  14  norm          .10000E-03    .20625       -.52971E-06** at limit **
  15  Prefactor     .27212E-03    .82540E-01   -.59755E-05** at limit **
  16  Prefactor     .10002E-03    .17391        .24552E-05** at limit **
  17  Prefactor     .68511        .44698       -.12016E-04    .21580E-02
  18  Prefactor     .10000E-03    .20571        .12512E-06** at limit **
  19  Prefactor     .10020E-03    .21124        .64681E-05** at limit **
  20  Prefactor     .10001E-03    .96992E-01   -.24984E-05** at limit **
  21  Prefactor     .10000E-03    .24669        .39567E-08** at limit **
  22  Prefactor     306.40        5.3631        .12578E-04    .73150E-03
  23  norm          2.1318        1.0208        .10594E-06    .20914E-03
  24  Prefactor     .10000E-03    .20934       -.38433E-06** at limit **
  25  Prefactor     .10000E-03    .26117        .96134E-07** at limit **
  26  norm          131.30        1.0098       -.26965E-05    .26241E-02
  27  Normalizat    .10997        .35146       -.21312E-04    .72787E-05
  28  Prefactor     1.4384        1.0627        .90917E-05    .33650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37659
  Prefactor  = 1.06631
  norm       = 0.00188314
  Prefactor  = 0.00557075
  Prefactor  = 0.412369
  Prefactor  = 0.0451225
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00983
  Prefactor  = 0.00010001
  Prefactor  = 0.000100121
  norm       = 7.20473
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000272123
  Prefactor  = 0.000100019
  Prefactor  = 0.685107
  Prefactor  = 0.0001
  Prefactor  = 0.000100198
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 306.398
  norm       = 2.13181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 131.295
  Normalizat = 0.109967
  Prefactor  = 1.43838
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   315.9799     FROM HESSE     STATUS=FAILED         9 CALLS      475 TOTAL
                     EDM=   .41E-09  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     1.0663        1.2185         .0000       -1.5501    
   3  norm          .18831E-02    .17550       -.26498E-04   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55708E-02    .10198       -.28022E-05   -1.5723    
   5  Prefactor     .41237        .24626        .22133E-05   -1.5580    
   6  Prefactor     .45123E-01    .23661       -.86611E-05   -1.5750    
   7  norm          .10000E-03    .27382       -.34368E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .20571        .10209E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0098        1.3253         .0000       -1.5507    
  10  Prefactor     .10001E-03    .21156        .16912E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10012E-03    .28378       -.43120E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2047        1.0149       -.69758E-07   -1.5171    
  13  Prefactor     .10000E-03    .20571        .14557E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .20625       -.52971E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27212E-03    .82540E-01   -.59755E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    .17391        .24552E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .68511        .44698       -.12016E-04   -1.5542    
  18  Prefactor     .10000E-03    .20571        .12512E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10020E-03    .21124        .64681E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    .96992E-01   -.24984E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .24669        .39567E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     306.40        5.3631        .12578E-04   -1.2189    
  23  norm          2.1318        1.0208        .10594E-06   -1.5416    
  24  Prefactor     .10000E-03    .20934       -.38433E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .26117        .96134E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          131.30        1.0098       -.26965E-05   -1.3411    
  27  Normalizat    .10997        .35146       -.21312E-04   -1.3704    
  28  Prefactor     1.4384        1.0627        .90917E-05   -.79280    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.10252e-10
Minuit parameter uncertainties:
  1  1.01141
  2  1.21855
  3  0.0353802
  4  0.0472398
  5  0.246257
  6  0.206426
  7  5.46749e-08
  8  8.26442e-07
  9  1.32538
  10  9.2371e-05
  11  0.000370881
  12  1.01486
  13  1.66196e-05
  14  1.56341e-05
  15  0.00753846
  16  0.000113534
  17  0.446981
  18  5.66664e-07
  19  0.000408584
  20  6.39056e-05
  21  1.5602e-06
  22  5.36313
  23  1.02078
  24  1.74194e-05
  25  6.49053e-06
  26  1.00978
  27  0.359226
  28  1.07968
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.563e-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:  1.438e+00  1.080e+00  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.100e-01  3.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839707/likelihoodResults_571881601_572140801_4FGL_J1023.1+3949_daily_bin1283.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) = 315.9799863
delta logL = -4.89698657589e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 315.979937598
delta logL = -2.67653831543e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5644       1.0000          .0000       5.0000    
     3 'Normalizat'    .10997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4384       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=   315.9799     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      286 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6840.9        .13000E-01** at limit **
   2  alpha         2.4503        3.7085        .18916        .75502E-09
   3  Normalizat    .10997        .14078        .68071E-02    .59304E-05
   4  Prefactor     1.4384        .17872        .25156E-03    .16352E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4503
  Normalizat = 0.109969
  Prefactor  = 1.43838
 **********
 **   18 **HESSE 
 **********

 FCN=   315.9799     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    77.775        .15325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4503        3.7219        .75664E-02   -.19881E-01
   3  Normalizat    .10997        1.5760        .27228E-03   -1.3704    
   4  Prefactor     1.4384        1.0241        .50313E-04   -.79281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88051e-12
Minuit parameter uncertainties:
  1  1.0369e-05
  2  1589.89
  3  0.821012
  4  1.0392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839707': 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) = 315.979937322
delta logL = 8.15862222225e-09

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.037e-05  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.450e+00  1.590e+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:  1.438e+00  1.039e+00  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.100e-01  8.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 155.788 39.823

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/839707/cmap_HighResolution_571881601_572140801_4FGL_J1023.1+3949_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-04', job_status='DONE', photon_flux_upper_limit='1.16e-06', time_completed='2021-09-01 19:43:10.494539', job_id='839707', GAL2='1.44', fit_tolerance='1e-08', EG2='0.11', EG='0.11', time_epoch_completed='1630550590.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.44', dlogl='8.16e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1283' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:43:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 839707: <4FGL_J1023.1+3949_daily_bin1283> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1283> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 19:30:48 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:34:01 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:34:01 2021
Terminated at Wed Sep  1 19:43:11 2021
Results reported at Wed Sep  1 19:43:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1283 155.788 39.8226 571881601 572140801 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 :                                   335.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            743 sec.

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

