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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin564
RA = 155.788, Dec = 39.8226
tmin = 385516801, tmax = 385776001
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='835637', job_status='RUN', time_executed='2021-09-01 19:15:47.726360', time_epoch_executed='1630548947.73' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835637

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835637/ft1_4FGL_J1023.1+3949_daily_bin564.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835637/ft2_4FGL_J1023.1+3949_daily_bin564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835637/ft1_4FGL_J1023.1+3949_daily_bin564.fits outfile=/scratch/kocevski/835637/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin564.fits ra=155.788 dec=39.8226 rad=12.0 tmin=385516801.0 tmax=385776001.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 4.60
user 4.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835637/ft1_filtered_4FGL_J1023.1+3949_daily_bin564.fits" evtable="EVENTS" scfile=/scratch/kocevski/835637/ft2_4FGL_J1023.1+3949_daily_bin564.fits sctable="SC_DATA" outfile=/scratch/kocevski/835637/ltcube_385516801_385776001_4FGL_J1023.1+3949_daily_bin564.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/835637/ft2_4FGL_J1023.1+3949_daily_bin564.fits
.....................!
real 11.74
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835637/ft1_filtered_4FGL_J1023.1+3949_daily_bin564.fits evtable="EVENTS" scfile=/scratch/kocevski/835637/ft2_4FGL_J1023.1+3949_daily_bin564.fits sctable="SC_DATA" expcube=/scratch/kocevski/835637/ltcube_385516801_385776001_4FGL_J1023.1+3949_daily_bin564.fits outfile=/scratch/kocevski/835637/expmap_385516801_385776001_4FGL_J1023.1+3949_daily_bin564.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/835637/ltcube_385516801_385776001_4FGL_J1023.1+3949_daily_bin564.fits
.....................!
real 190.58
user 185.19
sys 5.01

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/835637/ft1_filtered_4FGL_J1023.1+3949_daily_bin564.fits scfile=/scratch/kocevski/835637/ft2_4FGL_J1023.1+3949_daily_bin564.fits outfile=/scratch/kocevski/835637/cmap_385516801_385776001_4FGL_J1023.1+3949_daily_bin564.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/835637/ft1_filtered_4FGL_J1023.1+3949_daily_bin564.fits scfile=/scratch/kocevski/835637/ft2_4FGL_J1023.1+3949_daily_bin564.fits outfile=/scratch/kocevski/835637/cmap_HighResolution_385516801_385776001_4FGL_J1023.1+3949_daily_bin564.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4112       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9414       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.359       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6091       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3225       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3257       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3073       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.388       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 '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8084       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.565       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    18.834       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0976       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0256       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=   6260.718     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3443 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9004        .27335E-07** at limit **
   2  Prefactor     1.4108        1.7233       -.14203E-07   -.73015E-04
   3  norm          3.9252        15.714        .26186E-05   -.78541E-04
   4  Prefactor     11.348        28.582       -.36355E-05   -.30704E-04
   5  Prefactor     .10000E-03    13.101        .40104E-05** at limit **
   6  Prefactor     .10000E-03    6.4060        .14363E-05** at limit **
   7  norm          .10000E-03    7.0595       -.35806E-05** at limit **
   8  Prefactor     .10000E-03    2.7376        .41754E-07** at limit **
   9  Prefactor     1.6091        2.9860       -.50485E-06   -.73443E-03
  10  Prefactor     2.3216        5.7913        .40746E-07   -.72575E-03
  11  Prefactor     .10000E-03    11.633       -.23182E-05** at limit **
  12  norm          6.0804        2.9243        .37406E-07    .79148E-04
  13  Prefactor     6.3253        8.2532        .50035E-06   -.33229E-03
  14  norm          .10000E-03    8.3749        .27357E-05** at limit **
  15  Prefactor     .10000E-03    19.028        .14571E-05** at limit **
  16  Prefactor     .10000E-03    10.371       -.30911E-05** at limit **
  17  Prefactor     .10000E-03    2.3460        .38901E-07** at limit **
  18  Prefactor     3.3071        3.5893       -.16871E-06    .18381E-05
  19  Prefactor     43.382        32.655       -.32745E-05   -.11161E-04
  20  Prefactor     .10000E-03    27.479       -.12263E-04** at limit **
  21  Prefactor     .10000E-03    7.9629        .14881E-05** at limit **
  22  Prefactor     .10000E-03    84.976       -.36316E-05** at limit **
  23  norm          2.8083        .49155       -.39804E-08   -.15246E-02
  24  Prefactor     34.562        21.223       -.28922E-06   -.12435E-03
  25  Prefactor     .10000E-03    32.734        .12001E-04** at limit **
  26  norm          18.833        16.151        .14950E-06   -.42642E-04
  27  Normalizat    1.0979        .17358        .21538E-06   -.54454E-04
  28  Prefactor     1.0253        .21107        .17604E-06   -.48558E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.4108
  norm       = 3.92523
  Prefactor  = 11.3485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60908
  Prefactor  = 2.32165
  Prefactor  = 0.0001
  norm       = 6.0804
  Prefactor  = 6.32534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30715
  Prefactor  = 43.3823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8083
  Prefactor  = 34.5621
  Prefactor  = 0.0001
  norm       = 18.8335
  Normalizat = 1.09791
  Prefactor  = 1.02527
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.718     FROM HESSE     STATUS=OK           511 CALLS     3954 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9185        .17105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4108        1.7090        .11156E-03   -1.5470    
   3  norm          3.9252        15.487        .20319E-03   -1.5312    
   4  Prefactor     11.348        28.290        .11887E-03   -1.5034    
   5  Prefactor     .10000E-03    13.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.0895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7522        .12784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6091        2.9933        .18069E-03   -1.5454    
  10  Prefactor     2.3216        5.5945        .20426E-03   -1.5403    
  11  Prefactor     .10000E-03    11.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0804        2.9261        .91042E-04   -1.5215    
  13  Prefactor     6.3253        8.0002        .15959E-03   -1.5205    
  14  norm          .10000E-03    8.5091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3671        .11827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3071        3.5854        .15086E-03   -1.5344    
  19  Prefactor     43.382        32.659        .60862E-04   -1.4390    
  20  Prefactor     .10000E-03    27.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.9634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    85.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8083        .49335        .21752E-04   -1.5373    
  24  Prefactor     34.562        21.297        .68161E-04   -1.4531    
  25  Prefactor     .10000E-03    32.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          18.833        16.145        .92290E-04   -1.4840    
  27  Normalizat    1.0979        .20730        .24710E-03   -.89819    
  28  Prefactor     1.0253        .25132        .31246E-03   -.91892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82708e-10
Minuit parameter uncertainties:
  1  5.123e-07
  2  1.70907
  3  15.5025
  4  28.3232
  5  2.68109e-06
  6  7.8937e-06
  7  6.53161e-06
  8  1.20887e-07
  9  2.99359
  10  5.59574
  11  1.46079e-06
  12  2.9262
  13  8.00158
  14  2.83496e-06
  15  2.13451e-06
  16  4.32372e-06
  17  7.80333e-06
  18  3.58568
  19  32.6721
  20  2.02611e-07
  21  6.24222e-07
  22  5.67279e-06
  23  0.493352
  24  21.3014
  25  7.34219e-05
  26  16.1491
  27  0.207453
  28  0.251612
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  2.835e-06  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.025e+00  2.516e-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.098e+00  2.075e-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: 5.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835637/likelihoodResults_385516801_385776001_4FGL_J1023.1+3949_daily_bin564.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): 102
logL (Free Index) = 6260.71902665
delta logL = -0.000559982979212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6260.69422571
delta logL = 0.0242409502434

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12572       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0343       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=   6260.694     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      325 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12573        .70678        .96688E-03    .35577E-03
   2  alpha         5.0000        4.8448        .18507    ** at limit **
   3  Normalizat    1.0862        .20928        .24826E-03   -.88380E-05
   4  Prefactor     1.0344        .25220        .31128E-03    .18261E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.125732
  alpha      = 5
  Normalizat = 1.08621
  Prefactor  = 1.03435
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.694     FROM HESSE     STATUS=OK            25 CALLS      350 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12573        .69753        .38675E-04   -1.5637    
   2  alpha         5.0000        4.8174        .37014E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0862        .20875        .99305E-05   -.90196    
   4  Prefactor     1.0344        .25212        .12451E-04   -.91593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22122e-11
Minuit parameter uncertainties:
  1  0.592067
  2  0.000151964
  3  0.208908
  4  0.25241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835637': 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) = 6260.69422571
delta logL = 0.0242409521825

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.257e-01  5.921e-01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  5.000e+00  1.520e-04  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.034e+00  2.524e-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.086e+00  2.089e-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/835637/cmap_HighResolution_385516801_385776001_4FGL_J1023.1+3949_daily_bin564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-05', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-01 19:30:16.810040', job_id='835637', GAL2='1.03', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1630549816.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.42e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='564' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:30:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 835637: <4FGL_J1023.1+3949_daily_bin564> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin564> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:15:35 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:15:37 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:15:37 2021
Terminated at Wed Sep  1 19:30:17 2021
Results reported at Wed Sep  1 19:30:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin564 155.788 39.8226 385516801 385776001 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 :                                   865.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             336.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

