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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin495
RA = 264.584, Dec = 32.4823
tmin = 367632001, tmax = 367891201
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='954099', job_status='RUN', time_executed='2021-09-18 01:30:43.317708', time_epoch_executed='1631953843.32' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954099

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954099/ft1_4FGL_J1738.3+3228_daily_bin495.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954099/ft1_4FGL_J1738.3+3228_daily_bin495.fits outfile=/scratch/kocevski/954099/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin495.fits ra=264.584 dec=32.4823 rad=12.0 tmin=367632001.0 tmax=367891201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.11
user 4.84
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.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/954099/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin495.fits evtable="EVENTS" outfile="/scratch/kocevski/954099/ft1_filtered_4FGL_J1738.3+3228_daily_bin495.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954099/ft1_filtered_4FGL_J1738.3+3228_daily_bin495.fits" evtable="EVENTS" scfile=/scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits sctable="SC_DATA" outfile=/scratch/kocevski/954099/ltcube_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.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/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits
.....................!
real 12.19
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954099/ft1_filtered_4FGL_J1738.3+3228_daily_bin495.fits evtable="EVENTS" scfile=/scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits sctable="SC_DATA" expcube=/scratch/kocevski/954099/ltcube_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.fits outfile=/scratch/kocevski/954099/expmap_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.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/954099/ltcube_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.fits
.....................!
real 190.69
user 184.70
sys 5.38

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/954099/ft1_filtered_4FGL_J1738.3+3228_daily_bin495.fits scfile=/scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits outfile=/scratch/kocevski/954099/cmap_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.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=264.584 yref=32.4823 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954099/ft1_filtered_4FGL_J1738.3+3228_daily_bin495.fits scfile=/scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits outfile=/scratch/kocevski/954099/cmap_HighResolution_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.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=264.584 yref=32.4823 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/954099/ft1_filtered_4FGL_J1738.3+3228_daily_bin495.fits evtable="EVENTS" scfile=/scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/954099/Model_4FGL_J1738.3+3228_daily_bin495.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/954099/ft1_filtered_4FGL_J1738.3+3228_daily_bin495.fits.....................!
real 65.27
user 63.70
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954099/ft1_filtered_4FGL_J1738.3+3228_daily_bin495.fits', '/scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits', expMap='/scratch/kocevski/954099/expmap_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.fits', expCube='/scratch/kocevski/954099/ltcube_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954099/Model_4FGL_J1738.3+3228_daily_bin495.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/954099/ft1_filtered_4FGL_J1738.3+3228_daily_bin495.fits
Spacecraft file(s): /scratch/kocevski/954099/ft2_4FGL_J1738.3+3228_daily_bin495.fits
Exposure map: /scratch/kocevski/954099/expmap_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.fits
Exposure cube: /scratch/kocevski/954099/ltcube_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954099/Model_4FGL_J1738.3+3228_daily_bin495.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) = 8127.93139448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5484       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.188       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    94.130       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18852E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5133       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11667E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9348       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5608       1.0000         .10000E-03   10000.    
    16 'norm      '    28.479       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .46156E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .57261       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1709       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8127.929     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2537 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5488        2.4265       -.14796E-06   -.75761E-05
   2  Prefactor     .10000E-03    18.487        .11939E-04** at limit **
   3  norm          6.8578        6.8753        .29190E-06   -.22746E-03
   4  Prefactor     15.188        18.492        .72564E-07   -.36219E-04
   5  norm          .10000E-03    1.6372       -.23603E-06** at limit **
   6  norm          2.6223        317.14       -.47975E-03    .91696E-04
   7  Prefactor     .10000E-03    47.703        .26276E-04** at limit **
   8  Prefactor     94.078        102.32       -.49397E-04   -.96434E-04
   9  Prefactor     .10016E-03    7.9975        .46259E-05** at limit **
  10  Prefactor     .10000E-03    14.201       -.71672E-05** at limit **
  11  Prefactor     4.5137        6.2925        .63747E-05   -.15141E-03
  12  Prefactor     .10000E-03    29.258       -.20009E-04** at limit **
  13  Prefactor     .10001E-03    152.14       -.50523E-04** at limit **
  14  Prefactor     2.9335        8.4120       -.22949E-05   -.19295E-03
  15  norm          2.5602        1.7847        .26168E-06   -.24057E-03
  16  norm          28.461        41.451       -.20179E-04   -.15137E-03
  17  Prefactor     .10000E-03    4.4364       -.58708E-07** at limit **
  18  norm          .10000E-03    4.3098       -.63595E-06** at limit **
  19  Prefactor     .10000E-03    1.5620       -.36641E-07** at limit **
  20  Prefactor     .10000E-03    11.651        .80008E-06** at limit **
  21  norm          .10000E-03    12.141        .11743E-05** at limit **
  22  Normalizat    .57247        .20283       -.53950E-06   -.32862E-04
  23  Prefactor     1.1709        .10842        .38212E-05   -.43839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.54876
  Prefactor  = 0.0001
  norm       = 6.85777
  Prefactor  = 15.1881
  norm       = 0.0001
  norm       = 2.62225
  Prefactor  = 0.0001
  Prefactor  = 94.0778
  Prefactor  = 0.000100157
  Prefactor  = 0.0001
  Prefactor  = 4.5137
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 2.93353
  norm       = 2.56017
  norm       = 28.4608
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.572465
  Prefactor  = 1.17086
 **********
 **   18 **HESSE 
 **********

 FCN=   8127.929     FROM HESSE     STATUS=OK           374 CALLS     2911 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5488        2.4261        .82762E-04   -1.5196    
   2  Prefactor     .10000E-03    18.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8578        6.8676        .15321E-03   -1.5184    
   4  Prefactor     15.188        18.490        .10277E-03   -1.4928    
   5  norm          .10000E-03    1.6451        .11261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6223        324.10        .24668E-03   -1.5384    
   7  Prefactor     .10000E-03    47.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     94.078        101.88        .20712E-03   -1.3765    
   9  Prefactor     .10016E-03    44.254        .48052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5137        6.2815        .18951E-03   -1.5283    
  12  Prefactor     .10000E-03    29.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    155.02        .21187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9335        8.4145        .23710E-03   -1.5365    
  15  norm          2.5602        1.7820        .97372E-04   -1.5388    
  16  norm          28.461        41.168        .75073E-04   -1.4640    
  17  Prefactor     .10000E-03    4.5060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4927        .65764E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5725        .11002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .57247        .22093        .40836E-03   -1.0917    
  23  Prefactor     1.1709        .11975        .15954E-03   -.87233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30284e-09
Minuit parameter uncertainties:
  1  2.42609
  2  4.47847e-05
  3  6.86835
  4  18.4971
  5  5.93157e-06
  6  58.6318
  7  0.000188268
  8  102.073
  9  0.005276
  10  1.39631e-05
  11  6.28246
  12  0.000360856
  13  0.00186948
  14  8.41792
  15  1.78205
  16  41.209
  17  2.51774e-07
  18  0.000272064
  19  5.74123e-06
  20  4.71335e-05
  21  1.72945e-05
  22  0.221275
  23  0.119782
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  9.408e+01  1.021e+02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.171e+00  1.198e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  5.725e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.83e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.27e-05

TS (Fixed Index): 1.07
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954099/likelihoodResults_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.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) = 8127.92492138
delta logL = 0.00440582288957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8127.91987565
delta logL = 0.00945155444697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.04       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3313       1.0000          .0000       10.000    
     3 'Normalizat'    .57755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+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=   8127.920     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      278 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.01        161.93        .38693E-04    .11418E-03
   2  Index         2.3310        .95249        .94288E-02    .82651E-04
   3  Normalizat    .57783        .22026        .40653E-03   -.28015E-03
   4  Prefactor     1.1691        .11815        .15964E-03   -.10557E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.015
  Index      = 2.33098
  Normalizat = 0.577831
  Prefactor  = 1.16906
 **********
 **   18 **HESSE 
 **********

 FCN=   8127.920     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.01        147.93        .77386E-05   -1.3626    
   2  Index         2.3310        .86872        .37715E-03   -.56309    
   3  Normalizat    .57783        .21965        .16261E-04   -1.0893    
   4  Prefactor     1.1691        .11799        .31928E-04   -.87289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94627e-10
Minuit parameter uncertainties:
  1  148.435
  2  0.874955
  3  0.219979
  4  0.118021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954099': 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) = 8127.91987478
delta logL = 0.00945242258331

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.080e+02  1.484e+02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.331e+00  8.750e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.169e+00  1.180e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  5.778e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.33 +/- 0.87
Photon Flux (Free Index): 3.48e-08 +/- 4.67e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/954099/cmap_HighResolution_367632001_367891201_4FGL_J1738.3+3228_daily_bin495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', comment='SUCCESS', photon_flux='3.83e-08', energy_flux2='1.26e-05', photon_flux_error='4.15e-08', dlogl='9.45e-03', energy_flux='1.17e-05', photon_flux2='3.48e-08', job_status='DONE', time_completed='2021-09-18 01:45:03.505113', photon_index_error2='0.87', photon_index2='2.33', ts='1.07', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.52e-05', EG='0.57', time_epoch_completed='1631954703.51', return_code='0', job_id='954099', GAL2='1.17', EG2='0.58', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.67e-08', ts2='1.08', photon_index='2.45' WHERE bin_id='495' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:45:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 954099: <4FGL_J1738.3+3228_daily_bin495> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin495> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 01:30:27 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:30:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 01:30:28 2021
Terminated at Sat Sep 18 01:45:04 2021
Results reported at Sat Sep 18 01:45:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin495 264.584 32.4823 367632001 367891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.3+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   854.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

