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


Performing analysis on: 4FGL_J0218.9+3643_daily_bin754
RA = 34.7473, Dec = 36.7176
tmin = 434764801, tmax = 435024001
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='296221', job_status='RUN', time_executed='2021-08-15 17:04:05.287183', time_epoch_executed='1629072245.29' WHERE source_name='4FGL J0218.9+3643' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/296221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/296221/ft1_4FGL_J0218.9+3643_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/296221/ft1_4FGL_J0218.9+3643_daily_bin754.fits outfile=/scratch/kocevski/296221/ft1_filteredMKT_4FGL_J0218.9+3643_daily_bin754.fits ra=34.7473 dec=36.7176 rad=12.0 tmin=434764801.0 tmax=435024001.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 10.67
user 5.44
sys 5.13

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.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/296221/ft1_filteredMKT_4FGL_J0218.9+3643_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/296221/ft1_filtered_4FGL_J0218.9+3643_daily_bin754.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 5.51
user 0.33
sys 5.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/296221/ft1_filtered_4FGL_J0218.9+3643_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/296221/ltcube_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.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/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits
.....................!
real 20.74
user 14.78
sys 5.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/296221/ft1_filtered_4FGL_J0218.9+3643_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/296221/ltcube_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.fits outfile=/scratch/kocevski/296221/expmap_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.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/296221/ltcube_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.fits
.....................!
real 197.53
user 185.98
sys 10.19

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

Setting source of interest to:
4FGL J0218.9+3643 @ 34.7473 36.7176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/296221/ft1_filtered_4FGL_J0218.9+3643_daily_bin754.fits scfile=/scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits outfile=/scratch/kocevski/296221/cmap_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.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=34.7473 yref=36.7176 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 5.33
user 0.41
sys 4.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/296221/ft1_filtered_4FGL_J0218.9+3643_daily_bin754.fits scfile=/scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits outfile=/scratch/kocevski/296221/cmap_HighResolution_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.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=34.7473 yref=36.7176 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 5.29
user 0.40
sys 4.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/296221/ft1_filtered_4FGL_J0218.9+3643_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/296221/Model_4FGL_J0218.9+3643_daily_bin754.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/296221/ft1_filtered_4FGL_J0218.9+3643_daily_bin754.fits.....................!
real 68.43
user 60.35
sys 7.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/296221/ft1_filtered_4FGL_J0218.9+3643_daily_bin754.fits', '/scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits', expMap='/scratch/kocevski/296221/expmap_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.fits', expCube='/scratch/kocevski/296221/ltcube_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/296221/Model_4FGL_J0218.9+3643_daily_bin754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0218.9+3643'

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  1.139e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.474e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/296221/ft1_filtered_4FGL_J0218.9+3643_daily_bin754.fits
Spacecraft file(s): /scratch/kocevski/296221/ft2_4FGL_J0218.9+3643_daily_bin754.fits
Exposure map: /scratch/kocevski/296221/expmap_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.fits
Exposure cube: /scratch/kocevski/296221/ltcube_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/296221/Model_4FGL_J0218.9+3643_daily_bin754.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) = 4932.03958784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.968       1.0000         .10000E-03   10000.    
     2 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.623       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0084       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11616E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2781       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.228       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5563       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2545       1.0000         .10000E-03   10000.    
    12 'norm      '    .87070E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .96526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.5654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.693       1.0000         .10000E-03   10000.    
    19 'norm      '    .10719E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0783       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .39387       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4932.008     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1997 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.968        8.8926        .32019E-06    .47501E-02
   2  norm          .10000E-03    2.1737        .30261E-06** at limit **
   3  Prefactor     26.609        20.012        .69287E-05    .31445E-02
   4  Prefactor     5.0100        4.2719       -.43059E-05   -.54947E-03
   5  Prefactor     14.244        9.1218       -.14860E-05    .18222E-02
   6  Prefactor     .10000E-03    34.642       -.13426E-05** at limit **
   7  norm          5.2799        4.5892        .13158E-05    .11387E-03
   8  Prefactor     13.225        4.8607       -.57849E-05   -.74458E-03
   9  norm          2.5570        3.2993       -.25222E-06   -.55115E-04
  10  Prefactor     .10000E-03    2.9689       -.37610E-06** at limit **
  11  norm          2.2546        .88038        .30873E-07   -.22848E-03
  12  norm          .19457E-03    358.27       -.13888E-04** at limit **
  13  norm          .96535        .44560       -.29334E-07   -.29126E-03
  14  Prefactor     .10000E-03    3.1707       -.29322E-06** at limit **
  15  norm          .10000E-03    3.1197       -.10763E-06** at limit **
  16  Prefactor     .10000E-03    14.550       -.14181E-06** at limit **
  17  norm          7.5651        3.2122       -.37615E-06   -.48690E-04
  18  Prefactor     12.837        30.452        .17592E-04   -.59726E-02
  19  norm          .10000E-03    12.031        .60490E-06** at limit **
  20  Prefactor     6.0792        8.5584       -.16062E-04   -.38939E-02
  21  Normalizat    .39369        .29790        .91074E-05   -.89498E-05
  22  Prefactor     1.1928        .14474       -.15048E-05   -.44270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9675
  norm       = 0.0001
  Prefactor  = 26.6091
  Prefactor  = 5.00999
  Prefactor  = 14.2442
  Prefactor  = 0.0001
  norm       = 5.27988
  Prefactor  = 13.2246
  norm       = 2.55702
  Prefactor  = 0.0001
  norm       = 2.25458
  norm       = 0.000194574
  norm       = 0.965347
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.56511
  Prefactor  = 12.8371
  norm       = 0.0001
  Prefactor  = 6.07917
  Normalizat = 0.393693
  Prefactor  = 1.19278
 **********
 **   18 **HESSE 
 **********

 FCN=   4932.008     FROM HESSE     STATUS=OK           396 CALLS     2393 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.968        18.494        .25881E-02   -1.4934    
   2  norm          .10000E-03    1.2472        .30715E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.609        22.868        .19410E-02   -1.4676    
   4  Prefactor     5.0100        4.3357        .44922E-02   -1.5260    
   5  Prefactor     14.244        41.149        .26576E-02   -1.4953    
   6  Prefactor     .10000E-03    34.617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2799        4.7352        .43737E-02   -1.5248    
   8  Prefactor     13.225        11.773        .27533E-02   -1.4980    
   9  norm          2.5570        3.3006        .63839E-02   -1.5388    
  10  Prefactor     .10000E-03    2.9662        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2546        .87964        .68408E-02   -1.5408    
  12  norm          .19457E-03    442.78        .91642E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .96535        .44711        .69783E-02   -1.5511    
  14  Prefactor     .10000E-03    3.1014        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.5651        3.2357        .36451E-02   -1.5158    
  18  Prefactor     12.837        91.725        .28108E-02   -1.4991    
  19  norm          .10000E-03    11.975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0792        9.6800        .40712E-02   -1.5215    
  21  Normalizat    .39369        .32946        .12253       -1.1763    
  22  Prefactor     1.1928        .15350        .34804E-01   -.86554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6282e-06
Minuit parameter uncertainties:
  1  18.5015
  2  8.44227e-08
  3  22.8754
  4  4.33597
  5  41.2311
  6  0.000237522
  7  4.73549
  8  11.7751
  9  3.30087
  10  3.25567e-06
  11  0.879646
  12  0.412352
  13  0.447115
  14  2.82773e-06
  15  3.902e-06
  16  4.54012e-05
  17  3.23582
  18  68.7784
  19  1.43585e-05
  20  9.68254
  21  0.331098
  22  0.153559
Done.

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

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  2.557e+00  3.301e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.474e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.193e+00  1.536e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  3.937e-01  3.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 34.747 36.718
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.07e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.36e-05

TS (Fixed Index): 1.03
Ra Dec: 34.747 36.718
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/296221/likelihoodResults_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.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) = 4931.62077809
delta logL = 0.38753949461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4931.62026821
delta logL = 0.388049377667

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5004       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7061       1.0000          .0000       5.0000    
     3 'Normalizat'    .40608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4931.620     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      263 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5100        251.50        .47447E-02    .11826E-03
   2  alpha         1.7080        4.1253        .44141        .17183E-04
   3  Normalizat    .40604        .26227        .12072        .28813E-04
   4  Prefactor     1.1881        .10685        .34918E-01   -.54037E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51005
  alpha      = 1.70797
  Normalizat = 0.406037
  Prefactor  = 1.18809
 **********
 **   18 **HESSE 
 **********

 FCN=   4931.620     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5100        4.6115        .14857E-03   -1.5283    
   2  alpha         1.7080        .78135        .19535E-01   -.32237    
   3  Normalizat    .40604        .27722        .53496E-03   -1.1699    
   4  Prefactor     1.1881        .14306        .16544E-03   -.86699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46818e-11
Minuit parameter uncertainties:
  1  4.61185
  2  0.796226
  3  0.278167
  4  0.143109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/296221': 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) = 4931.62026313
delta logL = 0.388054457881

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  4.510e+00  4.612e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.708e+00  7.962e-01  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.188e+00  1.431e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  4.060e-01  2.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 34.747 36.718
Photon Index (Free Index): 1.71 +/- 0.80
Photon Flux (Free Index): 2.19e-08 +/- 2.59e-08
Energy Flux (Free Index): 2.02e-05 +/- 2.56e-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/296221/cmap_HighResolution_434764801_435024001_4FGL_J0218.9+3643_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-05', comment='SUCCESS', photon_flux='3.07e-08', energy_flux2='2.02e-05', photon_flux_error='3.96e-08', dlogl='3.88e-01', energy_flux='1.06e-05', photon_flux2='2.19e-08', job_status='DONE', time_completed='2021-08-15 17:15:29.022604', photon_index_error2='0.80', photon_index2='1.71', ts='1.03', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.56e-05', EG='0.39', time_epoch_completed='1629072929.02', return_code='0', job_id='296221', GAL2='1.19', EG2='0.41', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='2.59e-08', ts2='1.80', photon_index='2.47' WHERE bin_id='754' AND source_name='4FGL J0218.9+3643' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:15:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0181>
Subject: Job 296221: <4FGL_J0218.9+3643_daily_bin754> in cluster <slac> Done

Job <4FGL_J0218.9+3643_daily_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 17:00:39 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:02:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 17:02:27 2021
Terminated at Sun Aug 15 17:15:30 2021
Results reported at Sun Aug 15 17:15:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9+3643_daily_bin754 34.7473 36.7176 434764801 435024001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0218.9+3643 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            891 sec.

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

