/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 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7391
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1126
RA = 264.584, Dec = 32.4823
tmin = 531187201, tmax = 531446401
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='957129', job_status='RUN', time_executed='2021-09-18 01:40:40.840319', time_epoch_executed='1631954440.84' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957129

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957129/ft1_4FGL_J1738.3+3228_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957129/ft2_4FGL_J1738.3+3228_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957129/ft1_4FGL_J1738.3+3228_daily_bin1126.fits outfile=/scratch/kocevski/957129/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1126.fits ra=264.584 dec=32.4823 rad=12.0 tmin=531187201.0 tmax=531446401.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.97
user 3.73
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957129/ft2_4FGL_J1738.3+3228_daily_bin1126.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/957129/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/957129/ft1_filtered_4FGL_J1738.3+3228_daily_bin1126.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957129/ft1_filtered_4FGL_J1738.3+3228_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/957129/ft2_4FGL_J1738.3+3228_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/957129/ltcube_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.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/957129/ft2_4FGL_J1738.3+3228_daily_bin1126.fits
.....................!
real 11.64
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957129/ft1_filtered_4FGL_J1738.3+3228_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/957129/ft2_4FGL_J1738.3+3228_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/957129/ltcube_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.fits outfile=/scratch/kocevski/957129/expmap_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.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/957129/ltcube_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.fits
.....................!
real 191.28
user 185.58
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/957129/ft1_filtered_4FGL_J1738.3+3228_daily_bin1126.fits scfile=/scratch/kocevski/957129/ft2_4FGL_J1738.3+3228_daily_bin1126.fits outfile=/scratch/kocevski/957129/cmap_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957129/ft1_filtered_4FGL_J1738.3+3228_daily_bin1126.fits scfile=/scratch/kocevski/957129/ft2_4FGL_J1738.3+3228_daily_bin1126.fits outfile=/scratch/kocevski/957129/cmap_HighResolution_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.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.51
user 0.36
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/957129/ft1_filtered_4FGL_J1738.3+3228_daily_bin1126.fits', '/scratch/kocevski/957129/ft2_4FGL_J1738.3+3228_daily_bin1126.fits', expMap='/scratch/kocevski/957129/expmap_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.fits', expCube='/scratch/kocevski/957129/ltcube_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/957129/Model_4FGL_J1738.3+3228_daily_bin1126.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/957129/ft1_filtered_4FGL_J1738.3+3228_daily_bin1126.fits
Spacecraft file(s): /scratch/kocevski/957129/ft2_4FGL_J1738.3+3228_daily_bin1126.fits
Exposure map: /scratch/kocevski/957129/expmap_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.fits
Exposure cube: /scratch/kocevski/957129/ltcube_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/957129/Model_4FGL_J1738.3+3228_daily_bin1126.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) = 8916.51099902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60826       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4620       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7606       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.927       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34444E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.564       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13166E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8366       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3464       1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3413       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.017       1.0000         .10000E-03   10000.    
    21 'norm      '    19.293       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2446       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0350       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=   8916.502     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2543 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60835        1.1044       -.71173E-06   -.23879E-03
   2  Prefactor     .10000E-03    15.314        .17115E-07** at limit **
   3  norm          1.4626        13.578       -.25802E-06   -.15095E-04
   4  Prefactor     .10000E-03    35.498       -.12047E-06** at limit **
   5  norm          2.7649        5.4854       -.17226E-06   -.24337E-03
   6  norm          .10000E-03    32.313        .31161E-07** at limit **
   7  Prefactor     15.657        118.01        .21434E-06    .91057E-05
   8  Prefactor     .10000E-03    25.086       -.37909E-07** at limit **
   9  Prefactor     .10000E-03    5.2615        .11545E-07** at limit **
  10  Prefactor     .10000E-03    29.830        .53904E-07** at limit **
  11  Prefactor     .10000E-03    3.9617       -.79492E-06** at limit **
  12  Prefactor     15.522        38.171       -.71676E-07    .52087E-06
  13  Prefactor     .10000E-03    109.06       -.26662E-06** at limit **
  14  Prefactor     2.8359        4.6262        .36042E-07    .31903E-04
  15  norm          .10000E-03    .83576       -.48222E-07** at limit **
  16  norm          .10000E-03    32.851        .58821E-07** at limit **
  17  Prefactor     1.3454        7.3428        .38607E-07    .13065E-03
  18  norm          .10000E-03    4.4817       -.66572E-09** at limit **
  19  Prefactor     5.3397        5.2942        .68795E-07   -.81071E-05
  20  Prefactor     16.013        23.374        .14071E-06    .33777E-04
  21  norm          19.285        20.788        .10029E-06   -.40730E-05
  22  Normalizat    1.2443        .26137        .32372E-05    .84793E-04
  23  Prefactor     1.0352        .12845       -.16313E-05    .22127E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.608355
  Prefactor  = 0.0001
  norm       = 1.46263
  Prefactor  = 0.0001
  norm       = 2.76487
  norm       = 0.0001
  Prefactor  = 15.6569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.5221
  Prefactor  = 0.0001
  Prefactor  = 2.83587
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.34538
  norm       = 0.0001
  Prefactor  = 5.33972
  Prefactor  = 16.0133
  norm       = 19.285
  Normalizat = 1.2443
  Prefactor  = 1.03522
 **********
 **   18 **HESSE 
 **********

 FCN=   8916.502     FROM HESSE     STATUS=OK           374 CALLS     2917 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60835        1.1091        .16189E-02   -1.5552    
   2  Prefactor     .10000E-03    15.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4626        13.343        .35578E-03   -1.5466    
   4  Prefactor     .10000E-03    35.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7649        5.4733        .24498E-03   -1.5375    
   6  norm          .10000E-03    32.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.657        119.61        .10036E-03   -1.4916    
   8  Prefactor     .10000E-03    25.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.1089        .34805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.522        38.112        .10152E-03   -1.4920    
  13  Prefactor     .10000E-03    109.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8359        4.6090        .24144E-03   -1.5371    
  15  norm          .10000E-03    1.6099        .16770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    32.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.3454        7.4328        .37733E-03   -1.5476    
  18  norm          .10000E-03    4.4933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3397        5.2690        .17389E-03   -1.5246    
  20  Prefactor     16.013        23.318        .50038E-03   -1.4907    
  21  norm          19.285        20.789        .91186E-04   -1.4829    
  22  Normalizat    1.2443        .26579        .34618E-03   -.85245    
  23  Prefactor     1.0352        .13024        .18733E-03   -.91565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53343e-09
Minuit parameter uncertainties:
  1  1.10914
  2  1.20264e-05
  3  8.83758
  4  1.98861e-05
  5  5.47432
  6  1.15612e-06
  7  86.79
  8  5.40654e-06
  9  4.33205e-06
  10  2.53402e-05
  11  0.000299154
  12  38.1716
  13  0.000438837
  14  4.60954
  15  6.49843e-06
  16  1.88409e-05
  17  6.32553
  18  1.00831e-06
  19  5.26942
  20  23.3317
  21  20.7971
  22  0.266083
  23  0.130285
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  5.407e-06  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.035e+00  1.303e-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:  1.244e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/957129/likelihoodResults_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.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): 102
logL (Free Index) = 8916.50255579
delta logL = -0.000189830974705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8916.50236707
delta logL = -1.10960900201e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7587       1.0000          .0000       10.000    
     3 'Normalizat'    1.2443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0352       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=   8916.502     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      279 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10401E-03    10.760        .18142E-01** at limit **
   2  Index         2.6670        6.2506        .50000        .18714E-04
   3  Normalizat    1.2443        .41919E-02    .34617E-03    .57145E-05
   4  Prefactor     1.0352        .21053E-02    .18733E-03   -.98315E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010401
  Index      = 2.66703
  Normalizat = 1.2443
  Prefactor  = 1.03522
 **********
 **   18 **HESSE 
 **********

 FCN=   8916.502     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10401E-03    61.163        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6670        6.8920        .50000       -.48544    
   3  Normalizat    1.2443        .10026E-01    .13847E-04   -.85245    
   4  Prefactor     1.0352        .50354E-02    .74932E-05   -.91565    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7241e-09
Minuit parameter uncertainties:
  1  0.0313555
  2  207.554
  3  0.010026
  4  0.00503537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957129': 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) = 8916.50236677
delta logL = -8.0551035353e-07

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.040e-04  3.136e-02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.667e+00  2.076e+02  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.035e+00  5.035e-03  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:  1.244e+00  1.003e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.584 32.482

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/957129/cmap_HighResolution_531187201_531446401_4FGL_J1738.3+3228_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-09-18 01:55:37.325086', job_id='957129', GAL2='1.04', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1631955337.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-8.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1126' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:55:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 957129: <4FGL_J1738.3+3228_daily_bin1126> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin1126> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 18 01:40:31 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:40:32 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:40:32 2021
Terminated at Sat Sep 18 01:55:37 2021
Results reported at Sat Sep 18 01:55:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1126 264.584 32.4823 531187201 531446401 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 :                                   887.15 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             350.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            906 sec.

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

