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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1324
RA = 264.584, Dec = 32.4823
tmin = 582508801, tmax = 582768001
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='957422', job_status='RUN', time_executed='2021-09-18 01:41:05.868803', time_epoch_executed='1631954465.87' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957422

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957422/ft1_4FGL_J1738.3+3228_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957422/ft2_4FGL_J1738.3+3228_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957422/ft1_4FGL_J1738.3+3228_daily_bin1324.fits outfile=/scratch/kocevski/957422/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1324.fits ra=264.584 dec=32.4823 rad=12.0 tmin=582508801.0 tmax=582768001.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.92
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957422/ft2_4FGL_J1738.3+3228_daily_bin1324.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/957422/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/957422/ft1_filtered_4FGL_J1738.3+3228_daily_bin1324.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.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957422/ft1_filtered_4FGL_J1738.3+3228_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/957422/ft2_4FGL_J1738.3+3228_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/957422/ltcube_582508801_582768001_4FGL_J1738.3+3228_daily_bin1324.fits outfile=/scratch/kocevski/957422/expmap_582508801_582768001_4FGL_J1738.3+3228_daily_bin1324.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/957422/ltcube_582508801_582768001_4FGL_J1738.3+3228_daily_bin1324.fits
.....................!
real 190.81
user 185.61
sys 4.88

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/957422/ft1_filtered_4FGL_J1738.3+3228_daily_bin1324.fits scfile=/scratch/kocevski/957422/ft2_4FGL_J1738.3+3228_daily_bin1324.fits outfile=/scratch/kocevski/957422/cmap_582508801_582768001_4FGL_J1738.3+3228_daily_bin1324.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957422/ft1_filtered_4FGL_J1738.3+3228_daily_bin1324.fits scfile=/scratch/kocevski/957422/ft2_4FGL_J1738.3+3228_daily_bin1324.fits outfile=/scratch/kocevski/957422/cmap_HighResolution_582508801_582768001_4FGL_J1738.3+3228_daily_bin1324.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1277       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.609       1.0000         .10000E-03   10000.    
     3 'norm      '    3.8650       1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.962       1.0000         .10000E-03   10000.    
     5 'norm      '    11.011       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.432       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.409       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.310       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8306       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59679       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78897       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98924       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=   8413.025     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2561 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1276        1.5434       -.20832E-07    .50972E-04
   2  Prefactor     19.608        20.461        .48292E-07    .61121E-05
   3  norm          3.8641        8.5294       -.33714E-05   -.12060E-03
   4  Prefactor     52.959        38.894       -.14139E-05    .42807E-06
   5  norm          11.011        6.1269        .30065E-06    .10051E-03
   6  norm          .10000E-03    97.158        .68386E-05** at limit **
   7  Prefactor     .10000E-03    23.451       -.34559E-05** at limit **
   8  Prefactor     .10000E-03    110.23       -.18749E-04** at limit **
   9  Prefactor     1.9250        4.5529        .16072E-05   -.13424E-02
  10  Prefactor     33.420        49.576       -.96328E-05   -.58369E-04
  11  Prefactor     11.408        9.6381       -.30437E-06   -.49073E-05
  12  Prefactor     .10000E-03    18.427        .11287E-05** at limit **
  13  Prefactor     .10000E-03    75.073        .11290E-04** at limit **
  14  Prefactor     .10000E-03    3.4408        .10178E-06** at limit **
  15  norm          .10066E-03    .74789       -.30156E-06** at limit **
  16  norm          18.305        42.752       -.52217E-05   -.55407E-05
  17  Prefactor     7.8304        6.1556       -.10157E-05   -.64591E-04
  18  norm          .10000E-03    1.9404       -.30135E-07** at limit **
  19  Prefactor     5.5347        4.0008       -.10934E-07   -.12492E-02
  20  Prefactor     .49684        9.6877       -.51475E-06    .49065E-04
  21  norm          .10000E-03    26.140        .10419E-04** at limit **
  22  Normalizat    .78898        .18722        .17910E-05    .88891E-04
  23  Prefactor     .98927        .96816E-01    .23451E-06    .16153E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12763
  Prefactor  = 19.6082
  norm       = 3.86412
  Prefactor  = 52.9592
  norm       = 11.0107
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.92498
  Prefactor  = 33.4205
  Prefactor  = 11.4085
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100659
  norm       = 18.305
  Prefactor  = 7.83039
  norm       = 0.0001
  Prefactor  = 5.53468
  Prefactor  = 0.496835
  norm       = 0.0001
  Normalizat = 0.788983
  Prefactor  = 0.989272
 **********
 **   18 **HESSE 
 **********

 FCN=   8413.025     FROM HESSE     STATUS=OK           380 CALLS     2941 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1276        1.5458        .77978E-04   -1.5354    
   2  Prefactor     19.608        20.463        .90448E-04   -1.4822    
   3  norm          3.8641        8.5274        .20526E-03   -1.5315    
   4  Prefactor     52.959        38.896        .55113E-04   -1.4251    
   5  norm          11.011        6.1165        .12074E-03   -1.5044    
   6  norm          .10000E-03    97.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    110.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9250        13.375        .14969E-02   -1.5430    
  10  Prefactor     33.420        49.820        .69304E-04   -1.4551    
  11  Prefactor     11.408        9.6396        .11860E-03   -1.5032    
  12  Prefactor     .10000E-03    18.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    75.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4572        .16613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10066E-03    .99338        .30612E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.305        43.003        .93600E-04   -1.4852    
  17  Prefactor     7.8304        6.1490        .14329E-03   -1.5148    
  18  norm          .10000E-03    1.9411        .12477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5347        4.1304        .74639E-03   -1.5237    
  20  Prefactor     .49684        113.23        .52790E-02   -1.5567    
  21  norm          .10000E-03    26.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .78898        .21843        .35111E-03   -1.0048    
  23  Prefactor     .98927        .11381        .16730E-03   -.93088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13567e-08
Minuit parameter uncertainties:
  1  1.54585
  2  20.47
  3  8.53006
  4  38.9151
  5  6.11686
  6  0.000241751
  7  6.26961e-05
  8  0.000792546
  9  10.1513
  10  49.8826
  11  9.64087
  12  7.41029e-05
  13  0.000631932
  14  8.72628e-06
  15  0.00161768
  16  43.0756
  17  6.14952
  18  8.92817e-08
  19  4.13066
  20  15.0283
  21  0.000176178
  22  0.218671
  23  0.113834
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  7.925e-04  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.893e-01  1.138e-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:  7.890e-01  2.187e-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: 8.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/957422/likelihoodResults_582508801_582768001_4FGL_J1738.3+3228_daily_bin1324.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) = 8413.02502143
delta logL = -4.3000700316e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8413.02497945
delta logL = -1.02047306427e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29571E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4191       1.0000          .0000       10.000    
     3 'Normalizat'    .78898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98927       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=   8413.025     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      242 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2257.1        .10698E-01** at limit **
   2  Index         2.4205        7.9139        .50000       -.55402E-05
   3  Normalizat    .78898        .24248E-01    .79310E-01    .54369E-04
   4  Prefactor     .98927        .12885E-01    .46133E-01    .36679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4205
  Normalizat = 0.788983
  Prefactor  = 0.989272
 **********
 **   18 **HESSE 
 **********

 FCN=   8413.025     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8210.8        .21396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4205        7.6147        .50000       -.54206    
   3  Normalizat    .78898        .49583E-01    .35111E-03   -1.0048    
   4  Prefactor     .98927        .26402E-01    .16730E-03   -.93088    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33014e-09
Minuit parameter uncertainties:
  1  0.00272354
  2  40.4395
  3  0.0495856
  4  0.0264019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957422': 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) = 8413.02497847
delta logL = -4.48726495961e-08

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  2.724e-03  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.421e+00  4.044e+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:  9.893e-01  2.640e-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:  7.890e-01  4.959e-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/957422/cmap_HighResolution_582508801_582768001_4FGL_J1738.3+3228_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-09-18 01:55:45.031119', job_id='957422', GAL2='0.99', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1631955345.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-4.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1324' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 957422: <4FGL_J1738.3+3228_daily_bin1324> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1324 264.584 32.4823 582508801 582768001 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 :                                   860.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

