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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1001
RA = 155.788, Dec = 39.8226
tmin = 498787201, tmax = 499046401
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='838609', job_status='RUN', time_executed='2021-09-01 19:28:45.319371', time_epoch_executed='1630549725.32' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838609

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838609/ft1_4FGL_J1023.1+3949_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838609/ft2_4FGL_J1023.1+3949_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838609/ft1_4FGL_J1023.1+3949_daily_bin1001.fits outfile=/scratch/kocevski/838609/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1001.fits ra=155.788 dec=39.8226 rad=12.0 tmin=498787201.0 tmax=499046401.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 5.08
user 4.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838609/ft2_4FGL_J1023.1+3949_daily_bin1001.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/838609/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1001.fits evtable="EVENTS" outfile="/scratch/kocevski/838609/ft1_filtered_4FGL_J1023.1+3949_daily_bin1001.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838609/ft1_filtered_4FGL_J1023.1+3949_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/838609/ft2_4FGL_J1023.1+3949_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/838609/ltcube_498787201_499046401_4FGL_J1023.1+3949_daily_bin1001.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/838609/ft2_4FGL_J1023.1+3949_daily_bin1001.fits
.....................!
real 13.02
user 12.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838609/ft1_filtered_4FGL_J1023.1+3949_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/838609/ft2_4FGL_J1023.1+3949_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/838609/ltcube_498787201_499046401_4FGL_J1023.1+3949_daily_bin1001.fits outfile=/scratch/kocevski/838609/expmap_498787201_499046401_4FGL_J1023.1+3949_daily_bin1001.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/838609/ltcube_498787201_499046401_4FGL_J1023.1+3949_daily_bin1001.fits
.....................!
real 194.62
user 187.95
sys 4.02

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/838609/ft1_filtered_4FGL_J1023.1+3949_daily_bin1001.fits scfile=/scratch/kocevski/838609/ft2_4FGL_J1023.1+3949_daily_bin1001.fits outfile=/scratch/kocevski/838609/cmap_498787201_499046401_4FGL_J1023.1+3949_daily_bin1001.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=155.788 yref=39.8226 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838609/ft1_filtered_4FGL_J1023.1+3949_daily_bin1001.fits scfile=/scratch/kocevski/838609/ft2_4FGL_J1023.1+3949_daily_bin1001.fits outfile=/scratch/kocevski/838609/cmap_HighResolution_498787201_499046401_4FGL_J1023.1+3949_daily_bin1001.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.58
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0653       1.0000         .10000E-03   10000.    
     7 'norm      '    8.4008       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1591       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3481       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1332       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16983E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6138       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.414       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.9462       1.0000         .10000E-03   10000.    
    26 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85446       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3125       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=   4929.065     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3488 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.8420       -.13514E-05** at limit **
   2  Prefactor     .10000E-03    .58710        .72361E-08** at limit **
   3  norm          .10000E-03    7.3983       -.78551E-07** at limit **
   4  Prefactor     .10000E-03    17.105        .83240E-06** at limit **
   5  Prefactor     .10000E-03    7.3600       -.67745E-06** at limit **
   6  Prefactor     4.0662        9.8212        .73300E-05   -.55082E-03
   7  norm          8.4034        10.909        .17104E-05   -.20328E-03
   8  Prefactor     3.1598        4.3235        .15503E-06    .17100E-04
   9  Prefactor     2.3491        2.7985        .61715E-07   -.78961E-04
  10  Prefactor     .10000E-03    1.5759       -.56133E-07** at limit **
  11  Prefactor     .10000E-03    28.011        .18136E-05** at limit **
  12  norm          2.1112        2.0459        .29844E-07   -.17973E-04
  13  Prefactor     .10000E-03    3.2713        .15966E-06** at limit **
  14  norm          .10000E-03    2.9352       -.26901E-08** at limit **
  15  Prefactor     .10000E-03    20.765       -.29923E-05** at limit **
  16  Prefactor     8.1488        107.27       -.44505E-05   -.29037E-04
  17  Prefactor     1.1314        3.3748        .80294E-06   -.44624E-04
  18  Prefactor     3.8076        8.5814        .12135E-05    .10700E-03
  19  Prefactor     .10000E-03    14.048       -.16581E-06** at limit **
  20  Prefactor     .10001E-03    133.13        .34363E-05** at limit **
  21  Prefactor     .10000E-03    16.281        .13795E-05** at limit **
  22  Prefactor     .10029E-03    231.05       -.24684E-04** at limit **
  23  norm          1.6136        .45106        .25840E-08    .49403E-04
  24  Prefactor     20.412        23.873        .63241E-06   -.25030E-04
  25  Prefactor     7.9456        14.032        .98596E-07    .82329E-06
  26  norm          .10000E-03    8.0327        .18453E-05** at limit **
  27  Normalizat    .85426        .18528       -.14468E-05    .69823E-05
  28  Prefactor     1.3124        .23187       -.55162E-06   -.17912E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.06619
  norm       = 8.4034
  Prefactor  = 3.15978
  Prefactor  = 2.3491
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.11118
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 8.14875
  Prefactor  = 1.13139
  Prefactor  = 3.80763
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.00010029
  norm       = 1.61364
  Prefactor  = 20.4124
  Prefactor  = 7.94559
  norm       = 0.000100002
  Normalizat = 0.85426
  Prefactor  = 1.31241
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.065     FROM HESSE     STATUS=OK           519 CALLS     4007 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.0888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .58836        .52533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.4607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0662        10.129        .99986E-03   -1.5305    
   7  norm          8.4034        10.932        .69156E-03   -1.5128    
   8  Prefactor     3.1598        4.3120        .16569E-03   -1.5352    
   9  Prefactor     2.3491        2.7867        .12407E-03   -1.5401    
  10  Prefactor     .10000E-03    1.5868        .85991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1112        2.0426        .96119E-04   -1.5417    
  13  Prefactor     .10000E-03    6.3367        .24384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9387        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1488        105.05        .14035E-03   -1.5137    
  17  Prefactor     1.1314        3.3171        .21364E-03   -1.5495    
  18  Prefactor     3.8076        8.4654        .18210E-03   -1.5318    
  19  Prefactor     .10000E-03    14.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    133.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10029E-03    253.14        .20370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6136        .45314        .22910E-04   -1.5454    
  24  Prefactor     20.412        23.936        .88649E-04   -1.4804    
  25  Prefactor     7.9456        14.020        .14224E-03   -1.5144    
  26  norm          .10000E-03    8.1642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .85426        .21947        .24843E-03   -.98087    
  28  Prefactor     1.3124        .27687        .26533E-03   -.82939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77794e-09
Minuit parameter uncertainties:
  1  0.000153234
  2  5.19411e-07
  3  1.30456e-05
  4  0.00014548
  5  8.23957e-05
  6  10.1335
  7  10.9345
  8  4.31244
  9  2.78689
  10  4.3377e-06
  11  0.000412391
  12  2.0427
  13  5.23544e-05
  14  3.26188e-08
  15  0.000615254
  16  58.642
  17  3.31764
  18  8.46805
  19  2.26417e-05
  20  0.001744
  21  0.000242841
  22  0.0172105
  23  0.453143
  24  23.9469
  25  14.0256
  26  0.000232063
  27  0.219697
  28  0.277178
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  3.262e-08  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.312e+00  2.772e-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:  8.543e-01  2.197e-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: 4.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838609/likelihoodResults_498787201_499046401_4FGL_J1023.1+3949_daily_bin1001.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) = 4929.06694619
delta logL = -0.00158400300825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4929.06536219
delta logL = -5.00767782796e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2508       1.0000          .0000       5.0000    
     3 'Normalizat'    .85426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3124       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=   4929.065     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      226 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7078        .11746E-02** at limit **
   2  alpha         2.2599        3.5772        .16565       -.30019E-06
   3  Normalizat    .85426        .21199        .24843E-03    .24712E-05
   4  Prefactor     1.3124        .27507        .26533E-03    .29993E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.25992
  Normalizat = 0.85426
  Prefactor  = 1.31242
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.065     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9390        .23492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2599        2.8662        .66261E-02   -.96181E-01
   3  Normalizat    .85426        .21223        .99371E-05   -.98087    
   4  Prefactor     1.3124        .27538        .10613E-04   -.82939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33845e-09
Minuit parameter uncertainties:
  1  0.000191581
  2  296.339
  3  0.212433
  4  0.275686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838609': 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) = 4929.06536218
delta logL = 1.11504050437e-09

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.916e-04  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.260e+00  2.963e+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:  1.312e+00  2.757e-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:  8.543e-01  2.124e-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/838609/cmap_HighResolution_498787201_499046401_4FGL_J1023.1+3949_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-05', job_status='DONE', photon_flux_upper_limit='4.41e-08', time_completed='2021-09-01 19:41:29.683939', job_id='838609', GAL2='1.31', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630550489.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='1.12e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1001' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:41:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 838609: <4FGL_J1023.1+3949_daily_bin1001> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1001> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:25:35 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:25:50 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:25:50 2021
Terminated at Wed Sep  1 19:41:30 2021
Results reported at Wed Sep  1 19:41:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1001 155.788 39.8226 498787201 499046401 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 :                                   755.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             251.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            955 sec.

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

