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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1099
RA = 264.584, Dec = 32.4823
tmin = 524188801, tmax = 524448001
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='957088', job_status='RUN', time_executed='2021-09-18 01:40:43.644338', time_epoch_executed='1631954443.64' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957088

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957088/ft1_4FGL_J1738.3+3228_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957088/ft2_4FGL_J1738.3+3228_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957088/ft1_4FGL_J1738.3+3228_daily_bin1099.fits outfile=/scratch/kocevski/957088/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1099.fits ra=264.584 dec=32.4823 rad=12.0 tmin=524188801.0 tmax=524448001.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.42
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957088/ft2_4FGL_J1738.3+3228_daily_bin1099.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/957088/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1099.fits evtable="EVENTS" outfile="/scratch/kocevski/957088/ft1_filtered_4FGL_J1738.3+3228_daily_bin1099.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957088/ft1_filtered_4FGL_J1738.3+3228_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/957088/ft2_4FGL_J1738.3+3228_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/957088/ltcube_524188801_524448001_4FGL_J1738.3+3228_daily_bin1099.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/957088/ft2_4FGL_J1738.3+3228_daily_bin1099.fits
.....................!
real 11.68
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957088/ft1_filtered_4FGL_J1738.3+3228_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/957088/ft2_4FGL_J1738.3+3228_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/957088/ltcube_524188801_524448001_4FGL_J1738.3+3228_daily_bin1099.fits outfile=/scratch/kocevski/957088/expmap_524188801_524448001_4FGL_J1738.3+3228_daily_bin1099.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/957088/ltcube_524188801_524448001_4FGL_J1738.3+3228_daily_bin1099.fits
.....................!
real 191.50
user 185.81
sys 5.29

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/957088/ft1_filtered_4FGL_J1738.3+3228_daily_bin1099.fits scfile=/scratch/kocevski/957088/ft2_4FGL_J1738.3+3228_daily_bin1099.fits outfile=/scratch/kocevski/957088/cmap_524188801_524448001_4FGL_J1738.3+3228_daily_bin1099.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957088/ft1_filtered_4FGL_J1738.3+3228_daily_bin1099.fits scfile=/scratch/kocevski/957088/ft2_4FGL_J1738.3+3228_daily_bin1099.fits outfile=/scratch/kocevski/957088/cmap_HighResolution_524188801_524448001_4FGL_J1738.3+3228_daily_bin1099.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1481       1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.520       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0136       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.172       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.844       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5690       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.074       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .82773       1.0000         .10000E-03   10000.    
    16 'norm      '    30.882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9800       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2693       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96579       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91893       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=   8190.976     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2493 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1481        1.3925       -.64477E-07    .76300E-04
   2  Prefactor     50.521        38.373       -.35315E-06    .78734E-05
   3  norm          3.0132        7.8102        .26590E-05   -.30198E-03
   4  Prefactor     .10000E-03    23.767       -.17189E-05** at limit **
   5  norm          24.170        7.5417       -.29784E-06    .41490E-04
   6  norm          .10000E-03    52.062        .33730E-05** at limit **
   7  Prefactor     .10000E-03    118.64       -.35807E-05** at limit **
   8  Prefactor     30.825        74.812       -.27510E-04   -.11116E-06
   9  Prefactor     7.5697        9.0651        .21666E-05    .59974E-04
  10  Prefactor     28.064        46.624       -.11317E-04   -.25147E-05
  11  Prefactor     16.162        11.981       -.46949E-06    .46753E-05
  12  Prefactor     .10000E-03    25.282        .72621E-05** at limit **
  13  Prefactor     .10000E-03    28.230       -.70911E-05** at limit **
  14  Prefactor     .10000E-03    3.2644        .34755E-07** at limit **
  15  norm          .82651        1.6381        .54996E-06    .62542E-03
  16  norm          30.852        67.873       -.40530E-04   -.85295E-05
  17  Prefactor     6.9801        5.4227       -.30534E-05   -.12952E-03
  18  norm          .10000E-03    2.6748       -.32142E-07** at limit **
  19  Prefactor     5.2697        3.5675        .16454E-06   -.12186E-03
  20  Prefactor     .10000E-03    9.4340       -.10387E-06** at limit **
  21  norm          .10000E-03    11.372       -.47726E-07** at limit **
  22  Normalizat    .96571        .19396        .43385E-05   -.89862E-04
  23  Prefactor     .91897        .96615E-01    .60357E-06    .41508E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1481
  Prefactor  = 50.5208
  norm       = 3.01325
  Prefactor  = 0.0001
  norm       = 24.1701
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.825
  Prefactor  = 7.56968
  Prefactor  = 28.0636
  Prefactor  = 16.1623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.826509
  norm       = 30.8525
  Prefactor  = 6.98012
  norm       = 0.0001
  Prefactor  = 5.26975
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.965712
  Prefactor  = 0.918972
 **********
 **   18 **HESSE 
 **********

 FCN=   8190.976     FROM HESSE     STATUS=OK           372 CALLS     2865 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1481        1.3931        .83835E-04   -1.5415    
   2  Prefactor     50.521        38.387        .56422E-04   -1.4285    
   3  norm          3.0132        7.7606        .23379E-03   -1.5361    
   4  Prefactor     .10000E-03    23.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.170        7.5372        .81474E-04   -1.4724    
   6  norm          .10000E-03    52.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    119.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.825        74.944        .72144E-04   -1.4597    
   9  Prefactor     7.5697        9.0539        .14577E-03   -1.5158    
  10  Prefactor     28.064        46.672        .75611E-04   -1.4648    
  11  Prefactor     16.162        11.998        .99623E-04   -1.4904    
  12  Prefactor     .10000E-03    25.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2805        .15966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .82651        1.3925        .15622E-02   -1.5526    
  16  norm          30.852        67.620        .72100E-04   -1.4596    
  17  Prefactor     6.9801        5.4277        .15185E-03   -1.5180    
  18  norm          .10000E-03    2.6789        .14455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2697        3.5652        .13615E-03   -1.5249    
  20  Prefactor     .10000E-03    9.4795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    11.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96571        .22573        .32989E-03   -.94188    
  23  Prefactor     .91897        .11308        .17404E-03   -.95481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09746e-10
Minuit parameter uncertainties:
  1  1.39315
  2  38.4057
  3  7.76324
  4  4.90341e-06
  5  7.53751
  6  1.85369e-05
  7  0.000242201
  8  75.1747
  9  9.0555
  10  46.733
  11  11.9993
  12  7.69157e-05
  13  4.27675e-05
  14  6.90643e-07
  15  1.39256
  16  67.7886
  17  5.42812
  18  2.66931e-06
  19  3.56535
  20  1.66633e-05
  21  6.54709e-06
  22  0.225953
  23  0.113107
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.082e+01  7.517e+01  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:  9.190e-01  1.131e-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:  9.657e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/957088/likelihoodResults_524188801_524448001_4FGL_J1738.3+3228_daily_bin1099.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) = 8190.56786699
delta logL = 0.408152634565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8190.5476826
delta logL = 0.428337025556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1004       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0680       1.0000          .0000       10.000    
     3 'Normalizat'    .91167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93462       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.

 FCN=   8190.548     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      261 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0538        78.142        .49772E-02    .81714E-03
   2  Index         4.0734        2.4798        .14609        .20057E-03
   3  Normalizat    .91118        .48995E-01    .76552E-01    .10087E-03
   4  Prefactor     .93499        .24848E-01    .45445E-01    .16320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.05382
  Index      = 4.07338
  Normalizat = 0.911177
  Prefactor  = 0.934987
 **********
 **   18 **HESSE 
 **********

 FCN=   8190.548     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0538        201.07        .17782E-03   -1.5305    
   2  Index         4.0734        7.0300        .53077E-02   -.18640    
   3  Normalizat    .91118        .19476        .33880E-03   -.96069    
   4  Prefactor     .93499        .96841E-01    .17270E-03   -.94929    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6543e-09
Minuit parameter uncertainties:
  1  57.3038
  2  6.4432
  3  0.194914
  4  0.0968593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957088': 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) = 8190.54767452
delta logL = 0.428345104239

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.054e+00  5.730e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  4.073e+00  6.443e+00  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:  9.350e-01  9.686e-02  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:  9.112e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 264.584 32.482
Photon Index (Free Index): 4.07 +/- 6.44
Photon Flux (Free Index): 5.28e-08 +/- 6.09e-08
Energy Flux (Free Index): 7.80e-06 +/- 8.65e-06

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/957088/cmap_HighResolution_524188801_524448001_4FGL_J1738.3+3228_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', comment='SUCCESS', energy_flux2='7.80e-06', dlogl='4.28e-01', photon_flux2='5.28e-08', job_status='DONE', time_completed='2021-09-18 01:55:06.957665', photon_index_error2='6.44', photon_index2='4.07', ts='0.20', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.00e-08', energy_flux_error2='8.65e-06', EG='0.97', time_epoch_completed='1631955306.96', return_code='0', job_id='957088', GAL2='0.93', EG2='0.91', return_code2='102', photon_flux_error2='6.09e-08', ts2='1.13', photon_index='2.45' WHERE bin_id='1099' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:55:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 957088: <4FGL_J1738.3+3228_daily_bin1099> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1099 264.584 32.4823 524188801 524448001 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.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            882 sec.

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

