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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1156
RA = 155.788, Dec = 39.8226
tmin = 538963201, tmax = 539222401
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='839524', job_status='RUN', time_executed='2021-09-01 19:35:10.298158', time_epoch_executed='1630550110.3' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839524/ft1_4FGL_J1023.1+3949_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839524/ft2_4FGL_J1023.1+3949_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839524/ft1_4FGL_J1023.1+3949_daily_bin1156.fits outfile=/scratch/kocevski/839524/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1156.fits ra=155.788 dec=39.8226 rad=12.0 tmin=538963201.0 tmax=539222401.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.35
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839524/ft1_filtered_4FGL_J1023.1+3949_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/839524/ft2_4FGL_J1023.1+3949_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/839524/ltcube_538963201_539222401_4FGL_J1023.1+3949_daily_bin1156.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/839524/ft2_4FGL_J1023.1+3949_daily_bin1156.fits
.....................!
real 13.83
user 13.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839524/ft1_filtered_4FGL_J1023.1+3949_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/839524/ft2_4FGL_J1023.1+3949_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/839524/ltcube_538963201_539222401_4FGL_J1023.1+3949_daily_bin1156.fits outfile=/scratch/kocevski/839524/expmap_538963201_539222401_4FGL_J1023.1+3949_daily_bin1156.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/839524/ltcube_538963201_539222401_4FGL_J1023.1+3949_daily_bin1156.fits
.....................!
real 192.86
user 186.73
sys 5.20

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/839524/ft1_filtered_4FGL_J1023.1+3949_daily_bin1156.fits scfile=/scratch/kocevski/839524/ft2_4FGL_J1023.1+3949_daily_bin1156.fits outfile=/scratch/kocevski/839524/cmap_538963201_539222401_4FGL_J1023.1+3949_daily_bin1156.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839524/ft1_filtered_4FGL_J1023.1+3949_daily_bin1156.fits scfile=/scratch/kocevski/839524/ft2_4FGL_J1023.1+3949_daily_bin1156.fits outfile=/scratch/kocevski/839524/cmap_HighResolution_538963201_539222401_4FGL_J1023.1+3949_daily_bin1156.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8566       1.0000         .10000E-03   10000.    
     3 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17109       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11467E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11737E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.893       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6413       1.0000         .10000E-03   10000.    
    14 'norm      '    19.384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .58075E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8743       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.735       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.8964       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.107       1.0000         .10000E-03   10000.    
    26 'norm      '    10.794       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .62963       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3349       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=   3483.100     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3495 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.053        12.143        .58640E-07    .21514E-06
   2  Prefactor     1.8565        2.9611        .37512E-06    .20758E-04
   3  norm          .10000E-03    19.198        .20392E-06** at limit **
   4  Prefactor     .10000E-03    10.981        .18266E-06** at limit **
   5  Prefactor     .10000E-03    13.922       -.31218E-06** at limit **
   6  Prefactor     .10000E-03    5.4791       -.52666E-07** at limit **
   7  norm          .10000E-03    35.754        .72782E-06** at limit **
   8  Prefactor     2.9348        7.2469        .15256E-05    .17825E-04
   9  Prefactor     .16786        2.4109        .45947E-06   -.35056E-03
  10  Prefactor     .10001E-03    5.1446       -.51154E-06** at limit **
  11  Prefactor     .10000E-03    123.02       -.34652E-05** at limit **
  12  norm          15.893        6.0740       -.66327E-07   -.15520E-04
  13  Prefactor     9.6574        8.2746        .70026E-06    .28758E-03
  14  norm          19.391        15.019        .16963E-06    .45948E-04
  15  Prefactor     .10001E-03    933.04        .37993E-04** at limit **
  16  Prefactor     .10000E-03    14.923        .27775E-06** at limit **
  17  Prefactor     7.8738        6.1496       -.78543E-07    .20671E-04
  18  Prefactor     .10000E-03    2.5203       -.49494E-07** at limit **
  19  Prefactor     16.726        36.503        .39516E-06    .26684E-05
  20  Prefactor     27.842        164.95        .21117E-05    .16797E-06
  21  Prefactor     .10000E-03    11.284       -.24270E-06** at limit **
  22  Prefactor     .10000E-03    147.54        .11907E-05** at limit **
  23  norm          3.8965        .77411        .87260E-08    .24961E-04
  24  Prefactor     .10000E-03    23.074       -.44115E-06** at limit **
  25  Prefactor     20.102        22.978       -.25690E-07    .21393E-05
  26  norm          10.790        22.153        .10305E-06    .12155E-05
  27  Normalizat    .62970        .23380       -.34819E-06   -.10410E-04
  28  Prefactor     1.3349        .29096       -.30362E-06   -.21447E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0534
  Prefactor  = 1.85647
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.93477
  Prefactor  = 0.167865
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 15.8931
  Prefactor  = 9.65744
  norm       = 19.3914
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 7.87382
  Prefactor  = 0.0001
  Prefactor  = 16.7257
  Prefactor  = 27.8423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.89648
  Prefactor  = 0.0001
  Prefactor  = 20.1019
  norm       = 10.7899
  Normalizat = 0.629701
  Prefactor  = 1.33491
 **********
 **   18 **HESSE 
 **********

 FCN=   3483.100     FROM HESSE     STATUS=OK           523 CALLS     4018 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.053        12.116        .10685E-03   -1.4958    
   2  Prefactor     1.8565        2.9451        .60845E-03   -1.5435    
   3  norm          .10000E-03    19.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4895        .13490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    36.845        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9348        7.2244        .11855E-02   -1.5365    
   9  Prefactor     .16786        9.2855        .17112E-02   -1.5626    
  10  Prefactor     .10001E-03    25.125        .21804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    125.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.893        6.0726        .86412E-04   -1.4910    
  13  Prefactor     9.6574        7.4464        .12906E-03   -1.5086    
  14  norm          19.391        15.009        .90970E-04   -1.4827    
  15  Prefactor     .10001E-03    889.68        .37977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.8738        6.1517        .12201E-03   -1.5147    
  18  Prefactor     .10000E-03    2.5319        .91494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.726        36.510        .97905E-04   -1.4890    
  20  Prefactor     27.842        165.04        .75900E-04   -1.4652    
  21  Prefactor     .10000E-03    11.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    147.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8965        .77680        .21905E-04   -1.5313    
  24  Prefactor     .10000E-03    23.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.102        23.031        .89322E-04   -1.4811    
  26  norm          10.790        22.138        .12195E-03   -1.5051    
  27  Normalizat    .62970        .27893        .29095E-03   -1.0674    
  28  Prefactor     1.3349        .35144        .27106E-03   -.82275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13217e-10
Minuit parameter uncertainties:
  1  12.1186
  2  2.94533
  3  1.35779e-06
  4  4.12839e-07
  5  1.99019e-06
  6  2.18763e-06
  7  3.31978e-05
  8  7.22659
  9  2.49663
  10  0.000819745
  11  1.16997e-05
  12  6.07285
  13  7.44708
  14  15.012
  15  0.00519657
  16  2.8255e-06
  17  6.15216
  18  2.36493e-06
  19  36.5583
  20  136.144
  21  1.60522e-06
  22  1.54832e-05
  23  0.776805
  24  2.73869e-06
  25  23.041
  26  22.1545
  27  0.279553
  28  0.352067
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.335e+00  3.521e-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:  6.297e-01  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.49e-05

TS (Fixed Index): 3.25
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839524/likelihoodResults_538963201_539222401_4FGL_J1023.1+3949_daily_bin1156.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) = 3482.97526132
delta logL = 0.124990848336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3482.97021533
delta logL = 0.130036833934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.366       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6371       1.0000          .0000       5.0000    
     3 'Normalizat'    .60798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3541       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=   3482.970     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      301 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.359        14.776        .96110E-04    .25432E-05
   2  alpha         2.6364        .78685        .13714E-01    .63978E-04
   3  Normalizat    .60851        .26922        .29556E-03   -.83469E-04
   4  Prefactor     1.3535        .35019        .26945E-03    .28547E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.3587
  alpha      = 2.63643
  Normalizat = 0.608509
  Prefactor  = 1.35354
 **********
 **   18 **HESSE 
 **********

 FCN=   3482.970     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.359        14.496        .38444E-05   -1.4874    
   2  alpha         2.6364        .77205        .27429E-02    .54599E-01
   3  Normalizat    .60851        .26943        .11822E-04   -1.0762    
   4  Prefactor     1.3535        .35043        .53890E-04   -.81729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4577e-10
Minuit parameter uncertainties:
  1  14.4985
  2  0.784917
  3  0.270011
  4  0.351047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839524': 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) = 3482.97021277
delta logL = 0.130039400225

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.736e+01  1.450e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.636e+00  7.849e-01  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.354e+00  3.510e-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:  6.085e-01  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.52
Ra Dec: 155.788 39.823
Photon Index (Free Index): 2.64 +/- 0.78
Photon Flux (Free Index): 7.05e-08 +/- 5.67e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.31e-05

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/839524/cmap_HighResolution_538963201_539222401_4FGL_J1023.1+3949_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-05', comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='1.77e-05', photon_flux_error='4.27e-08', dlogl='1.30e-01', energy_flux='1.93e-05', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-09-01 19:46:20.238913', photon_index_error2='0.78', photon_index2='2.64', ts='3.25', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.31e-05', EG='0.63', time_epoch_completed='1630550780.24', return_code='0', job_id='839524', GAL2='1.35', EG2='0.61', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.67e-08', ts2='3.52', photon_index='2.25' WHERE bin_id='1156' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:46:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 839524: <4FGL_J1023.1+3949_daily_bin1156> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1156> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 19:30:36 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:32:32 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:32:32 2021
Terminated at Wed Sep  1 19:46:21 2021
Results reported at Wed Sep  1 19:46:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1156 155.788 39.8226 538963201 539222401 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 :                                   648.31 sec.
    Max Memory :                                 1060 MB
    Average Memory :                             272.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            945 sec.

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

