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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1455
RA = 155.788, Dec = 39.8226
tmin = 616464001, tmax = 616723201
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='841099', job_status='RUN', time_executed='2021-09-01 19:40:16.770835', time_epoch_executed='1630550416.77' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841099/ft1_4FGL_J1023.1+3949_daily_bin1455.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841099/ft2_4FGL_J1023.1+3949_daily_bin1455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841099/ft1_4FGL_J1023.1+3949_daily_bin1455.fits outfile=/scratch/kocevski/841099/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1455.fits ra=155.788 dec=39.8226 rad=12.0 tmin=616464001.0 tmax=616723201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.96
user 2.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841099/ft1_filtered_4FGL_J1023.1+3949_daily_bin1455.fits" evtable="EVENTS" scfile=/scratch/kocevski/841099/ft2_4FGL_J1023.1+3949_daily_bin1455.fits sctable="SC_DATA" outfile=/scratch/kocevski/841099/ltcube_616464001_616723201_4FGL_J1023.1+3949_daily_bin1455.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/841099/ft2_4FGL_J1023.1+3949_daily_bin1455.fits
.....................!
real 19.44
user 19.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841099/ft1_filtered_4FGL_J1023.1+3949_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/841099/ft2_4FGL_J1023.1+3949_daily_bin1455.fits sctable="SC_DATA" expcube=/scratch/kocevski/841099/ltcube_616464001_616723201_4FGL_J1023.1+3949_daily_bin1455.fits outfile=/scratch/kocevski/841099/expmap_616464001_616723201_4FGL_J1023.1+3949_daily_bin1455.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/841099/ltcube_616464001_616723201_4FGL_J1023.1+3949_daily_bin1455.fits
.....................!
real 192.72
user 187.07
sys 4.97

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/841099/ft1_filtered_4FGL_J1023.1+3949_daily_bin1455.fits scfile=/scratch/kocevski/841099/ft2_4FGL_J1023.1+3949_daily_bin1455.fits outfile=/scratch/kocevski/841099/cmap_616464001_616723201_4FGL_J1023.1+3949_daily_bin1455.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841099/ft1_filtered_4FGL_J1023.1+3949_daily_bin1455.fits scfile=/scratch/kocevski/841099/ft2_4FGL_J1023.1+3949_daily_bin1455.fits outfile=/scratch/kocevski/841099/cmap_HighResolution_616464001_616723201_4FGL_J1023.1+3949_daily_bin1455.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.788 yref=39.8226 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49915E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.231       1.0000         .10000E-03   10000.    
     3 'norm      '    83.823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    116.86       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0886       1.0000         .10000E-03   10000.    
     7 'norm      '    .11684E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    125.62       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6079       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29259E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3428       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.101       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21667E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .87522E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1137       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .68871E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    324.34       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15426E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    84.595       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8374       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .20490E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12738E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .16278E-01   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .18776       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.7115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1536.114     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     2684 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    103.30        .31999E-05** at limit **
   2  Prefactor     91.341        144.19       -.18258E-04    .13665E-03
   3  norm          .10090E-03    279.92        .22749E-04** at limit **
   4  Prefactor     .10000E-03    153.43        .78899E-06** at limit **
   5  Prefactor     111.89        182.24        .16628E-04   -.27474E-02
   6  Prefactor     3.9526        82.258        .15807E-04   -.97023E-05
   7  norm          .10000E-03    34.323        .47892E-06** at limit **
   8  Prefactor     127.78        43.219       -.27488E-05   -.19371E-01
   9  Prefactor     .10000E-03    3.0879        .40079E-08** at limit **
  10  Prefactor     2.3659        31.052       -.30356E-05    .25265E-04
  11  Prefactor     .10000E-03    49.628       -.81235E-06** at limit **
  12  norm          5.4436        9.4216        .44268E-06    .72739E-04
  13  Prefactor     25.977        20.643        .44855E-06   -.63822E-06
  14  norm          .10000E-03    9.9127       -.45075E-07** at limit **
  15  Prefactor     .10000E-03    368.15        .65262E-05** at limit **
  16  Prefactor     .10000E-03    41.723        .14792E-05** at limit **
  17  Prefactor     6.1288        8.1632        .53837E-08    .78767E-05
  18  Prefactor     .10000E-03    9.3328        .13189E-06** at limit **
  19  Prefactor     .10000E-03    43.450       -.21770E-06** at limit **
  20  Prefactor     327.47        9.9648       -.46986E-06   -.71409E-02
  21  Prefactor     .10000E-03    22.492        .54476E-06** at limit **
  22  Prefactor     84.949        94.868        .74298E-06   -.59470E-02
  23  norm          1.8367        .55133        .39746E-07   -.42108E-04
  24  Prefactor     .10000E-03    33.627       -.26976E-05** at limit **
  25  Prefactor     .10000E-03    8.6256       -.68449E-08** at limit **
  26  norm          .10000E-03    37.992       -.17552E-05** at limit **
  27  Normalizat    .18223        .40211        .26318E-05    .54396E-05
  28  Prefactor     1.7195        .51226       -.18310E-05    .61547E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 91.341
  norm       = 0.000100901
  Prefactor  = 0.0001
  Prefactor  = 111.893
  Prefactor  = 3.95255
  norm       = 0.0001
  Prefactor  = 127.784
  Prefactor  = 0.0001
  Prefactor  = 2.36587
  Prefactor  = 0.0001
  norm       = 5.44357
  Prefactor  = 25.9769
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.12879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 327.471
  Prefactor  = 0.0001
  Prefactor  = 84.949
  norm       = 1.83674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.182233
  Prefactor  = 1.71954
 **********
 **   18 **HESSE 
 **********

 FCN=   1536.114     FROM HESSE     STATUS=OK           565 CALLS     3249 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    101.77        .96024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     91.341        144.68        .14904E-02   -1.3794    
   3  norm          .10090E-03    283.09        .10969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    147.08        .10411E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     111.89        185.68        .93052E-03   -1.3588    
   6  Prefactor     3.9526        94.113        .49846E-02   -1.5310    
   7  norm          .10000E-03    34.400        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     127.78        178.98        .89789E-03   -1.3442    
   9  Prefactor     .10000E-03    3.0788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3659        42.756        .63152E-02   -1.5400    
  11  Prefactor     .10000E-03    48.191        .91684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4436        9.9916        .43467E-02   -1.5241    
  13  Prefactor     25.977        22.567        .19603E-02   -1.4688    
  14  norm          .10000E-03    9.8761        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    375.53        .91309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.042        .91596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1288        8.3953        .40593E-02   -1.5213    
  18  Prefactor     .10000E-03    9.3472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.466        .10494E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     327.47        281.97        .56450E-03   -1.2069    
  21  Prefactor     .10000E-03    22.843        .10224E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     84.949        97.596        .10919E-02   -1.3862    
  23  norm          1.8367        .56215        .34512E-02   -1.5437    
  24  Prefactor     .10000E-03    33.702        .10104E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.6402        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    38.630        .91042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .18223        .59700        .11797       -1.3074    
  28  Prefactor     1.7195        .72280        .53214E-01   -.71563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16142e-05
Minuit parameter uncertainties:
  1  0.000202839
  2  145.245
  3  0.032087
  4  0.000105108
  5  186.659
  6  38.6419
  7  9.11968e-07
  8  179.741
  9  1.64749e-07
  10  20.1315
  11  5.60285e-06
  12  9.99468
  13  22.5743
  14  8.58441e-07
  15  0.000792619
  16  5.1697e-05
  17  8.39691
  18  6.60892e-07
  19  2.18277e-06
  20  283.16
  21  2.89986e-05
  22  97.7805
  23  0.562147
  24  5.05892e-05
  25  1.12542e-06
  26  1.03758e-05
  27  0.620256
  28  0.727295
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  8.584e-07  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.720e+00  7.273e-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.822e-01  6.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/841099/likelihoodResults_616464001_616723201_4FGL_J1023.1+3949_daily_bin1455.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) = 1536.11444753
delta logL = -0.000404893453606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1536.11404294
delta logL = -3.05683215629e-07

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.2536       1.0000          .0000       5.0000    
     3 'Normalizat'    .18193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7199       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=   1536.114     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      246 TOTAL
                     EDM=   .97E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.768        .12037E-02** at limit **
   2  alpha         2.6041        3.0100        .16563        .18704E-08
   3  Normalizat    .18223        .38354        .51953E-03    .50603E-05
   4  Prefactor     1.7195        .50785        .23522E-03    .12832E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.6041
  Normalizat = 0.182232
  Prefactor  = 1.71954
 **********
 **   18 **HESSE 
 **********

 FCN=   1536.114     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.137        .24073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6041        3.6537        .66251E-02    .41653E-01
   3  Normalizat    .18223        .38304        .20781E-04   -1.3074    
   4  Prefactor     1.7195        .50718        .94087E-05   -.71563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13369e-12
Minuit parameter uncertainties:
  1  4.77712e-06
  2  789.974
  3  0.388809
  4  0.508718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841099': 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) = 1536.11404251
delta logL = 1.24028474602e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  4.777e-06  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.604e+00  7.900e+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.720e+00  5.087e-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.822e-01  3.888e-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/841099/cmap_HighResolution_616464001_616723201_4FGL_J1023.1+3949_daily_bin1455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-05', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-01 19:49:00.334822', job_id='841099', GAL2='1.72', fit_tolerance='1e-08', EG2='0.18', EG='0.18', time_epoch_completed='1630550940.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.72', dlogl='1.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1455' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 841099: <4FGL_J1023.1+3949_daily_bin1455> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1455> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:35:23 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:36: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:36:32 2021
Terminated at Wed Sep  1 19:49:01 2021
Results reported at Wed Sep  1 19:49:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1455 155.788 39.8226 616464001 616723201 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 :                                   453.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             234.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            818 sec.

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

