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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1600
RA = 155.788, Dec = 39.8226
tmin = 654048001, tmax = 654307201
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='259086', job_status='RUN', time_executed='2021-09-26 00:22:16.737384', time_epoch_executed='1632640936.74' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259086/ft1_4FGL_J1023.1+3949_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259086/ft2_4FGL_J1023.1+3949_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259086/ft1_4FGL_J1023.1+3949_daily_bin1600.fits outfile=/scratch/kocevski/259086/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1600.fits ra=155.788 dec=39.8226 rad=12.0 tmin=654048001.0 tmax=654307201.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 3.68
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259086/ft2_4FGL_J1023.1+3949_daily_bin1600.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/259086/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/259086/ft1_filtered_4FGL_J1023.1+3949_daily_bin1600.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/259086/ft1_filtered_4FGL_J1023.1+3949_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/259086/ft2_4FGL_J1023.1+3949_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/259086/ltcube_654048001_654307201_4FGL_J1023.1+3949_daily_bin1600.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/259086/ft2_4FGL_J1023.1+3949_daily_bin1600.fits
.....................!
real 13.29
user 12.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259086/ft1_filtered_4FGL_J1023.1+3949_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/259086/ft2_4FGL_J1023.1+3949_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/259086/ltcube_654048001_654307201_4FGL_J1023.1+3949_daily_bin1600.fits outfile=/scratch/kocevski/259086/expmap_654048001_654307201_4FGL_J1023.1+3949_daily_bin1600.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/259086/ltcube_654048001_654307201_4FGL_J1023.1+3949_daily_bin1600.fits
.....................!
real 191.09
user 185.12
sys 5.53

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/259086/ft1_filtered_4FGL_J1023.1+3949_daily_bin1600.fits scfile=/scratch/kocevski/259086/ft2_4FGL_J1023.1+3949_daily_bin1600.fits outfile=/scratch/kocevski/259086/cmap_654048001_654307201_4FGL_J1023.1+3949_daily_bin1600.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1829       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2038       1.0000         .10000E-03   10000.    
     3 'norm      '    10.190       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2838       1.0000         .10000E-03   10000.    
     7 'norm      '    22.700       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10988E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33516       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.1548       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.200       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9995       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.285       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1749       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.2408       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1112       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87061       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=   6086.490     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3470 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1819        8.2494        .23236E-06   -.66757E-03
   2  Prefactor     2.2038        1.9857       -.55213E-07   -.44598E-05
   3  norm          10.190        12.852        .44641E-07    .14274E-04
   4  Prefactor     .10000E-03    10.540       -.74903E-06** at limit **
   5  Prefactor     .10000E-03    10.563       -.77877E-06** at limit **
   6  Prefactor     7.2835        7.7189       -.48672E-07   -.37310E-04
   7  norm          22.701        12.347       -.15103E-06    .10217E-05
   8  Prefactor     .10000E-03    3.5245       -.63226E-07** at limit **
   9  Prefactor     .10000E-03    1.4984       -.66639E-07** at limit **
  10  Prefactor     .32850        2.2248        .56806E-06   -.51785E-03
  11  Prefactor     .10000E-03    10.186       -.19373E-06** at limit **
  12  norm          10.179        3.3358        .41871E-07    .33680E-04
  13  Prefactor     .10000E-03    2.4893       -.15086E-06** at limit **
  14  norm          3.1548        4.0634        .34202E-06   -.13589E-02
  15  Prefactor     34.190        46.476       -.10691E-04   -.59542E-04
  16  Prefactor     .10000E-03    13.050        .10081E-05** at limit **
  17  Prefactor     .10000E-03    1.5052       -.46705E-08** at limit **
  18  Prefactor     2.9994        3.6839        .59028E-06   -.31044E-04
  19  Prefactor     .10000E-03    7.8776       -.14668E-06** at limit **
  20  Prefactor     .10000E-03    28.115       -.15330E-06** at limit **
  21  Prefactor     .10000E-03    9.4108        .12262E-05** at limit **
  22  Prefactor     20.279        76.789       -.93019E-05   -.85443E-05
  23  norm          1.1749        .32924       -.31093E-08    .35878E-04
  24  Prefactor     7.2390        15.248       -.66529E-06   -.13735E-04
  25  Prefactor     .10000E-03    12.475       -.17480E-06** at limit **
  26  norm          .10000E-03    5.5691       -.11926E-06** at limit **
  27  Normalizat    1.1112        .16623        .59405E-06   -.79353E-04
  28  Prefactor     .87058        .20496        .27092E-06   -.16426E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.18188
  Prefactor  = 2.20384
  norm       = 10.1902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.28354
  norm       = 22.7009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.328501
  Prefactor  = 0.0001
  norm       = 10.1793
  Prefactor  = 0.000100001
  norm       = 3.15484
  Prefactor  = 34.1903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.279
  norm       = 1.17487
  Prefactor  = 7.23896
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.11119
  Prefactor  = 0.870579
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.490     FROM HESSE     STATUS=OK           525 CALLS     3995 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1819        9.5954        .98528E-03   -1.5299    
   2  Prefactor     2.2038        1.9912        .10004E-03   -1.5411    
   3  norm          10.190        12.849        .12552E-03   -1.5069    
   4  Prefactor     .10000E-03    10.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2835        7.7109        .14862E-03   -1.5168    
   7  norm          22.701        12.351        .84070E-04   -1.4755    
   8  Prefactor     .10000E-03    3.5795        .14299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5438        .18524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32850        7.3263        .19973E-02   -1.5593    
  11  Prefactor     .10000E-03    10.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.179        3.3376        .79096E-04   -1.5070    
  13  Prefactor     .10000E-03    7.9967        .21598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1548        6.2399        .11410E-02   -1.5353    
  15  Prefactor     34.190        46.673        .68524E-04   -1.4538    
  16  Prefactor     .10000E-03    13.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.5223        .93438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9994        3.6634        .15951E-03   -1.5362    
  19  Prefactor     .10000E-03    7.8798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.279        77.080        .88931E-04   -1.4807    
  23  norm          1.1749        .32978        .22105E-04   -1.5491    
  24  Prefactor     7.2390        15.260        .14906E-03   -1.5170    
  25  Prefactor     .10000E-03    12.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.5770        .17974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1112        .19479        .21625E-03   -.89393    
  28  Prefactor     .87058        .23899        .30704E-03   -.97177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87804e-09
Minuit parameter uncertainties:
  1  9.5989
  2  1.99124
  3  12.8526
  4  1.33412e-05
  5  1.22766e-05
  6  7.7119
  7  12.3525
  8  3.53963e-06
  9  1.59144e-07
  10  3.10267
  11  7.7988e-06
  12  3.33768
  13  0.000164805
  14  6.24122
  15  46.7228
  16  1.586e-05
  17  1.54402e-06
  18  3.66363
  19  3.1224e-06
  20  6.34307e-06
  21  1.1739e-05
  22  77.4624
  23  0.329778
  24  15.2686
  25  8.39837e-06
  26  1.30813e-06
  27  0.194912
  28  0.239273
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  3.155e+00  6.241e+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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  8.706e-01  2.393e-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.111e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 5.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259086/likelihoodResults_654048001_654307201_4FGL_J1023.1+3949_daily_bin1600.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) = 6086.48316119
delta logL = 0.00648804757839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6086.48305569
delta logL = 0.00659354752406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1046       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4126       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87195       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6086.483     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      267 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1046        6.2739        .11507E-02   -.45596E-03
   2  alpha         2.4126        1.3835        .37706E-01    .62769E-04
   3  Normalizat    1.1095        .18613        .21640E-03    .11558E-05
   4  Prefactor     .87191        .23668        .30683E-03   -.11486E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.10459
  alpha      = 2.41264
  Normalizat = 1.1095
  Prefactor  = 0.871909
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.483     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1046        6.1170        .46028E-04   -1.5356    
   2  alpha         2.4126        1.3537        .15083E-02   -.34950E-01
   3  Normalizat    1.1095        .18629        .86559E-05   -.89447    
   4  Prefactor     .87191        .23684        .12273E-04   -.97130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74379e-09
Minuit parameter uncertainties:
  1  6.11826
  2  1.43055
  3  0.186398
  4  0.237119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259086': 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) = 6086.48305567
delta logL = 0.00659356356573

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  3.105e+00  6.118e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.413e+00  1.431e+00  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:  8.719e-01  2.371e-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.109e+00  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/259086/cmap_HighResolution_654048001_654307201_4FGL_J1023.1+3949_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-05', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-26 00:36:32.329968', job_id='259086', GAL2='0.87', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632641792.33', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='6.59e-03', ts2='0.34', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1600' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:36:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 259086: <4FGL_J1023.1+3949_daily_bin1600> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1600> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 00:20:12 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:20:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:20:21 2021
Terminated at Sun Sep 26 00:36:33 2021
Results reported at Sun Sep 26 00:36:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1600 155.788 39.8226 654048001 654307201 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 :                                   858.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            981 sec.

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

