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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1225
RA = 155.788, Dec = 39.8226
tmin = 556848001, tmax = 557107201
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='839626', job_status='RUN', time_executed='2021-09-01 19:35:49.192106', time_epoch_executed='1630550149.19' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839626

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839626/ft1_4FGL_J1023.1+3949_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839626/ft2_4FGL_J1023.1+3949_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839626/ft1_4FGL_J1023.1+3949_daily_bin1225.fits outfile=/scratch/kocevski/839626/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1225.fits ra=155.788 dec=39.8226 rad=12.0 tmin=556848001.0 tmax=557107201.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 6.58
user 3.42
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839626/ft1_filtered_4FGL_J1023.1+3949_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/839626/ft2_4FGL_J1023.1+3949_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/839626/ltcube_556848001_557107201_4FGL_J1023.1+3949_daily_bin1225.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/839626/ft2_4FGL_J1023.1+3949_daily_bin1225.fits
.....................!
real 15.59
user 15.01
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839626/ft1_filtered_4FGL_J1023.1+3949_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/839626/ft2_4FGL_J1023.1+3949_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/839626/ltcube_556848001_557107201_4FGL_J1023.1+3949_daily_bin1225.fits outfile=/scratch/kocevski/839626/expmap_556848001_557107201_4FGL_J1023.1+3949_daily_bin1225.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/839626/ltcube_556848001_557107201_4FGL_J1023.1+3949_daily_bin1225.fits
.....................!
real 190.99
user 185.78
sys 4.71

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/839626/ft1_filtered_4FGL_J1023.1+3949_daily_bin1225.fits scfile=/scratch/kocevski/839626/ft2_4FGL_J1023.1+3949_daily_bin1225.fits outfile=/scratch/kocevski/839626/cmap_556848001_557107201_4FGL_J1023.1+3949_daily_bin1225.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14582E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8186       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.350       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0804       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.6835       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22484E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27137E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11464E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12901E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10000.       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    25 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    26 'norm      '    22.126       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .42712       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=   675.1181     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     4125 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    30.126        .59555E-05** at limit **
   2  Prefactor     4.8183        4.4672       -.14810E-06    .15721E-03
   3  norm          .10000E-03    14.522        .67596E-05** at limit **
   4  Prefactor     .10000E-03    20.377       -.40607E-05** at limit **
   5  Prefactor     .10000E-03    19.881       -.70642E-05** at limit **
   6  Prefactor     .10000E-03    45.822       -.14513E-04** at limit **
   7  norm          22.306        26.206       -.47160E-06    .33397E-03
   8  Prefactor     8.0876        14.293        .11743E-05    .40006E-03
   9  Prefactor     .10000E-03    6.9159        .15581E-06** at limit **
  10  Prefactor     .10000E-03    5.2872       -.63004E-07** at limit **
  11  Prefactor     .10000E-03    22.474        .82839E-05** at limit **
  12  norm          7.6841        6.7477        .10195E-05    .49432E-03
  13  Prefactor     .10000E-03    6.3642       -.50505E-06** at limit **
  14  norm          .10000E-03    13.559       -.40993E-05** at limit **
  15  Prefactor     .10000E-03    1183.2       -.67670E-03** at limit **
  16  Prefactor     .10000E-03    138.26       -.63459E-05** at limit **
  17  Prefactor     .10000E-03    6.2461        .21418E-06** at limit **
  18  Prefactor     .10000E-03    21.079       -.42364E-07** at limit **
  19  Prefactor     .10000E-03    205.74       -.57121E-05** at limit **
  20  Prefactor     .10000E-03    129.95        .23480E-04** at limit **
  21  Prefactor    10000.0        8870.7        .66935E-03** at limit **
  22  Prefactor     .10000E-03    2051.0       -.16988E-02** at limit **
  23  norm         10000.0        129.68       -.24514E-04** at limit **
  24  Prefactor    10000.0        7780.4        .18714E-02** at limit **
  25  Prefactor    10000.0        9146.2        .11549E-02** at limit **
  26  norm          .10790E-03    9986.5       -.94165E-01** at limit **
  27  Normalizat    .10000E-01    .82846E-01    .13853E-05** at limit **
  28  Prefactor     .42735        .24720        .60643E-05    .27636E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.81827
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 22.3056
  Prefactor  = 8.08755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.68407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000107899
  Normalizat = 0.01
  Prefactor  = 0.42735
 **********
 **   18 **HESSE 
 **********

 FCN=   675.1181     FROM HESSE     STATUS=OK           495 CALLS     4620 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    30.963        .27801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8183        4.4839        .48939E-04   -1.5269    
   3  norm          .10000E-03    14.529        .96751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.403        .11462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.882        .11322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.043        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.306        26.166        .84726E-04   -1.4763    
   8  Prefactor     8.0876        14.275        .11375E-03   -1.5139    
   9  Prefactor     .10000E-03    6.9166        .66761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2872        .58371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.474        .12038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.6841        6.7484        .58209E-04   -1.5153    
  13  Prefactor     .10000E-03    6.3643        .64042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.559        .93491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1183.2        .20121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    138.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2461        .63446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.079        .11658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    205.74        .21432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    129.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        8870.6        .20580E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2050.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm         10000.0        129.68        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        7780.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        9146.2        .19615E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10790E-03    9985.3        .42577E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .83620E-01    .45628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .42735        .24543        .27808E-03   -1.1543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21867e-09
Minuit parameter uncertainties:
  1  0.000123042
  2  4.48422
  3  7.51711e-06
  4  5.96142e-05
  5  2.43723e-05
  6  0.000322648
  7  26.1794
  8  14.2813
  9  8.64897e-06
  10  4.30931e-06
  11  9.19296e-06
  12  6.74908
  13  4.74011e-06
  14  3.47491e-06
  15  0.00036802
  16  1.2919e-05
  17  1.78973e-06
  18  5.3119e-06
  19  1.92948e-05
  20  3.1511e-05
  21  0.00130928
  22  0.000187329
  23  0.000129368
  24  0.00313045
  25  0.00107344
  26  6.15026
  27  1.06921e-06
  28  0.246041
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  3.475e-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:  4.274e-01  2.460e-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  1.069e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839626/likelihoodResults_556848001_557107201_4FGL_J1023.1+3949_daily_bin1225.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) = 675.118417041
delta logL = -0.000348010514585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 675.118069283
delta logL = -2.51692995334e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2396       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42737       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=   675.1181     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      239 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    950.92        .93935E-02** at limit **
   2  alpha         1.7750        3.3408        .16575        .99627E-08
   3  Normalizat    .10000E-01    .12430E-01    .45628E-03** at limit **
   4  Prefactor     .42734        .85189E-01    .27808E-03    .19215E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.77502
  Normalizat = 0.01
  Prefactor  = 0.427343
 **********
 **   18 **HESSE 
 **********

 FCN=   675.1181     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.205        .98947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7750        2.8679        .66300E-02   -.29422    
   3  Normalizat    .10000E-01    .83622E-01    .91257E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .42734        .22084        .11123E-04   -1.1543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86696e-11
Minuit parameter uncertainties:
  1  0.000150303
  2  516.441
  3  4.99696e-08
  4  0.221285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839626': 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) = 675.118068635
delta logL = 3.95706138079e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.503e-04  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  1.775e+00  5.164e+02  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.273e-01  2.213e-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  4.997e-08  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/839626/cmap_HighResolution_556848001_557107201_4FGL_J1023.1+3949_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.07e-05', job_status='DONE', photon_flux_upper_limit='2.31e-07', time_completed='2021-09-01 19:43:00.358653', job_id='839626', GAL2='0.43', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630550580.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='3.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1225' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:43:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 839626: <4FGL_J1023.1+3949_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1225 155.788 39.8226 556848001 557107201 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 :                                   409.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            737 sec.

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

