/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7619
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0318.7+2135_daily_bin1320
RA = 49.6946, Dec = 21.5968
tmin = 581472001, tmax = 581731201
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='332592', job_status='RUN', time_executed='2021-08-18 00:18:19.801512', time_epoch_executed='1629271099.8' WHERE source_name='4FGL J0318.7+2135' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332592

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332592/ft1_4FGL_J0318.7+2135_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332592/ft1_4FGL_J0318.7+2135_daily_bin1320.fits outfile=/scratch/kocevski/332592/ft1_filteredMKT_4FGL_J0318.7+2135_daily_bin1320.fits ra=49.6946 dec=21.5968 rad=12.0 tmin=581472001.0 tmax=581731201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.05
user 2.04
sys 0.69

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.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/332592/ft1_filteredMKT_4FGL_J0318.7+2135_daily_bin1320.fits evtable="EVENTS" outfile="/scratch/kocevski/332592/ft1_filtered_4FGL_J0318.7+2135_daily_bin1320.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 2.44
user 0.28
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332592/ft1_filtered_4FGL_J0318.7+2135_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/332592/ltcube_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.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/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits
.....................!
real 11.76
user 10.18
sys 0.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332592/ft1_filtered_4FGL_J0318.7+2135_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/332592/ltcube_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.fits outfile=/scratch/kocevski/332592/expmap_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.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/332592/ltcube_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.fits
.....................!
real 158.20
user 147.54
sys 4.73

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J0318.7+2135 @ 49.6946 21.5968

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/332592/ft1_filtered_4FGL_J0318.7+2135_daily_bin1320.fits scfile=/scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits outfile=/scratch/kocevski/332592/cmap_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.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=49.6946 yref=21.5968 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 1.49
user 0.29
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332592/ft1_filtered_4FGL_J0318.7+2135_daily_bin1320.fits scfile=/scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits outfile=/scratch/kocevski/332592/cmap_HighResolution_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.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=49.6946 yref=21.5968 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 1.33
user 0.32
sys 0.64

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332592/ft1_filtered_4FGL_J0318.7+2135_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332592/Model_4FGL_J0318.7+2135_daily_bin1320.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/332592/ft1_filtered_4FGL_J0318.7+2135_daily_bin1320.fits.....................!
real 48.15
user 40.97
sys 1.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/332592/ft1_filtered_4FGL_J0318.7+2135_daily_bin1320.fits', '/scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits', expMap='/scratch/kocevski/332592/expmap_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.fits', expCube='/scratch/kocevski/332592/ltcube_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/332592/Model_4FGL_J0318.7+2135_daily_bin1320.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0318.7+2135'

4FGL J0318.7+2135
   Spectrum: PowerLaw
312    Prefactor:  1.601e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
313        Index:  2.063e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  2.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/332592/ft1_filtered_4FGL_J0318.7+2135_daily_bin1320.fits
Spacecraft file(s): /scratch/kocevski/332592/ft2_4FGL_J0318.7+2135_daily_bin1320.fits
Exposure map: /scratch/kocevski/332592/expmap_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.fits
Exposure cube: /scratch/kocevski/332592/ltcube_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/332592/Model_4FGL_J0318.7+2135_daily_bin1320.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) = 2939.25510792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.7563       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0178       1.0000         .10000E-03   10000.    
     4 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29943E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .57132E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13437E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8224       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.929       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9497       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3896       1.0000         .10000E-03   10000.    
    18 'norm      '    .49165E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1175.3       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0815       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95000       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2939.209     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2235 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.219       -.49555E-06** at limit **
   2  norm          6.7565        3.9310        .18703E-06    .53655E-04
   3  Prefactor     3.0448        17.077       -.45962E-05    .83765E-04
   4  norm          .10000E-03    .61106       -.83113E-06** at limit **
   5  Prefactor     .10000E-03    44.238       -.27747E-06** at limit **
   6  Prefactor     .10000E-03    139.99       -.86527E-06** at limit **
   7  Prefactor     .10000E-03    11.678       -.22678E-06** at limit **
   8  Prefactor     .10000E-03    13.371       -.22630E-07** at limit **
   9  norm          .10000E-03    7.1898        .70473E-07** at limit **
  10  norm          .28113E-01    917.17       -.35120E-04   -.70573E-05
  11  Prefactor     .10002E-03    326.62       -.70438E-05** at limit **
  12  Prefactor     7.8185        17.217        .51905E-06    .52968E-04
  13  Prefactor     .10000E-03    79.347        .46078E-06** at limit **
  14  norm          .10000E-03    5.5730       -.11808E-05** at limit **
  15  norm          17.924        47.825       -.13180E-05   -.14018E-04
  16  norm          2.9473        11.041        .14810E-06    .51366E-05
  17  norm          3.3871        62.165       -.21945E-05   -.19282E-05
  18  norm          .10000E-03    1597.7        .47081E-05** at limit **
  19  Prefactor     1174.7        629.23        .36276E-05    .19315E-04
  20  Normalizat    1.0812        .43915       -.94263E-05   -.20851E-04
  21  Prefactor     .95013        .14435        .30231E-05    .20118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.75655
  Prefactor  = 3.04485
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0281133
  Prefactor  = 0.000100017
  Prefactor  = 7.81849
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 17.9236
  norm       = 2.94732
  norm       = 3.38711
  norm       = 0.000100002
  Prefactor  = 1174.65
  Normalizat = 1.0812
  Prefactor  = 0.950134
 **********
 **   18 **HESSE 
 **********

 FCN=   2939.209     FROM HESSE     STATUS=OK           321 CALLS     2556 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.7565        3.9409        .77810E-04   -1.5188    
   3  Prefactor     3.0448        17.591        .23362E-03   -1.5359    
   4  norm          .10000E-03    .76257        .68749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    141.79        .21391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.747        .18084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.1969        .14199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28113E-01    19.378        .56244E-01   -1.5674    
  11  Prefactor     .10002E-03    329.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8185        17.204        .14337E-03   -1.5149    
  13  Prefactor     .10000E-03    79.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.7182        .12559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.924        47.967        .94590E-04   -1.4861    
  16  norm          2.9473        11.055        .11823E-02   -1.5365    
  17  norm          3.3871        63.016        .21976E-03   -1.5340    
  18  norm          .10000E-03    1582.2        .19226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1174.7        626.68        .62101E-04   -.87115    
  20  Normalizat    1.0812        .47484        .45017E-03   -.90358    
  21  Prefactor     .95013        .15657        .15398E-03   -.94411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09104e-09
Minuit parameter uncertainties:
  1  0.000109428
  2  3.9411
  3  14.6436
  4  3.87589e-05
  5  0.000176112
  6  1.36184e-05
  7  4.71108e-06
  8  6.56563e-06
  9  7.12164e-06
  10  1.47403
  11  0.00479829
  12  17.2153
  13  0.000143123
  14  0.000115015
  15  48.07
  16  11.0624
  17  29.2547
  18  0.00370791
  19  630.707
  20  0.476727
  21  0.156649
Done.

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

Extracting fit parameters...

4FGL J0318.7+2135
   Spectrum: PowerLaw
312    Prefactor:  7.818e+00  1.722e+01  1.000e-04  1.000e+04 ( 1.000e-13)
313        Index:  2.063e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  2.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  9.501e-01  1.566e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  1.081e+00  4.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 49.695 21.597
Photon Flux Upper Limit: 2.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332592/likelihoodResults_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.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) = 2937.88199447
delta logL = 1.32731629053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2937.65795436
delta logL = 1.55135640268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15610E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1475       1.0000          .0000       10.000    
     3 'Normalizat'    .83379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2937.658     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      307 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15571E-01    .21696        .91009E-03    .19340E-01
   2  Index         5.1490        2.3480        .54622E-01    .42128E-03
   3  Normalizat    .83448        .16591        .11345        .20858E-03
   4  Prefactor     .99608        .52932E-01    .34045E-01    .45509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0155709
  Index      = 5.14905
  Normalizat = 0.834485
  Prefactor  = 0.996077
 **********
 **   18 **HESSE 
 **********

 FCN=   2937.658     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      338 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15571E-01    .34851        .43553E-05   -1.5683    
   2  Index         5.1490        3.1025        .22840E-02    .29814E-01
   3  Normalizat    .83448        .43143        .50316E-03   -.98802    
   4  Prefactor     .99608        .13801        .15045E-03   -.92860    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.38398e-10
Minuit parameter uncertainties:
  1  0.146859
  2  3.34713
  3  0.433224
  4  0.138057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332592': 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): 102
logL (Free Index) = 2937.65794625
delta logL = 1.55136451223

Extracting fit parameters...

4FGL J0318.7+2135
   Spectrum: PowerLaw
312    Prefactor:  1.557e-02  1.469e-01  1.000e-04  1.000e+04 ( 1.000e-13)
313        Index:  5.149e+00  3.347e+00  0.000e+00  1.000e+01 (-1.000e+00)
314        Scale:  2.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  9.961e-01  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  8.345e-01  4.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.68
Ra Dec: 49.695 21.597
Photon Index (Free Index): 5.15 +/- 3.35
Photon Flux (Free Index): 3.21e-07 +/- 2.19e-07
Energy Flux (Free Index): 4.22e-05 +/- 2.84e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/332592/cmap_HighResolution_581472001_581731201_4FGL_J0318.7+2135_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-02', comment='SUCCESS', energy_flux2='4.22e-05', dlogl='1.55e+00', photon_flux2='3.21e-07', job_status='DONE', time_completed='2021-08-18 00:25:15.919554', photon_index_error2='3.35', photon_index2='5.15', ts='0.25', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.89e-07', energy_flux_error2='2.84e-05', EG='1.08', time_epoch_completed='1629271515.92', return_code='0', job_id='332592', GAL2='1.00', EG2='0.83', return_code2='102', photon_flux_error2='2.19e-07', ts2='3.68', photon_index='2.06' WHERE bin_id='1320' AND source_name='4FGL J0318.7+2135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 00:25:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 332592: <4FGL_J0318.7+2135_daily_bin1320> in cluster <slac> Done

Job <4FGL_J0318.7+2135_daily_bin1320> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Aug 18 00:11:20 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 00:13:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 00:13:24 2021
Terminated at Wed Aug 18 00:25:17 2021
Results reported at Wed Aug 18 00:25:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0318.7+2135_daily_bin1320 49.6946 21.5968 581472001 581731201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0318.7+2135 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   395.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             226.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            837 sec.

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

