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

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

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

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

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

number of points = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1738.3+3228_daily_bin15
RA = 264.584, Dec = 32.4823
tmin = 243216001, tmax = 243475201
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='950232', job_status='RUN', time_executed='2021-09-18 01:19:09.027414', time_epoch_executed='1631953149.03' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950232

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950232/ft1_4FGL_J1738.3+3228_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950232/ft2_4FGL_J1738.3+3228_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950232/ft1_4FGL_J1738.3+3228_daily_bin15.fits outfile=/scratch/kocevski/950232/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin15.fits ra=264.584 dec=32.4823 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.35
user 1.19
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950232/ft2_4FGL_J1738.3+3228_daily_bin15.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/950232/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/950232/ft1_filtered_4FGL_J1738.3+3228_daily_bin15.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950232/ft1_filtered_4FGL_J1738.3+3228_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/950232/ft2_4FGL_J1738.3+3228_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/950232/ltcube_243216001_243475201_4FGL_J1738.3+3228_daily_bin15.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/950232/ft2_4FGL_J1738.3+3228_daily_bin15.fits
.....................!
real 12.55
user 12.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950232/ft1_filtered_4FGL_J1738.3+3228_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/950232/ft2_4FGL_J1738.3+3228_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/950232/ltcube_243216001_243475201_4FGL_J1738.3+3228_daily_bin15.fits outfile=/scratch/kocevski/950232/expmap_243216001_243475201_4FGL_J1738.3+3228_daily_bin15.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/950232/ltcube_243216001_243475201_4FGL_J1738.3+3228_daily_bin15.fits
.....................!
real 191.47
user 186.14
sys 4.49

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/950232/ft1_filtered_4FGL_J1738.3+3228_daily_bin15.fits scfile=/scratch/kocevski/950232/ft2_4FGL_J1738.3+3228_daily_bin15.fits outfile=/scratch/kocevski/950232/cmap_243216001_243475201_4FGL_J1738.3+3228_daily_bin15.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950232/ft1_filtered_4FGL_J1738.3+3228_daily_bin15.fits scfile=/scratch/kocevski/950232/ft2_4FGL_J1738.3+3228_daily_bin15.fits outfile=/scratch/kocevski/950232/cmap_HighResolution_243216001_243475201_4FGL_J1738.3+3228_daily_bin15.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.214       1.0000         .10000E-03   10000.    
     3 'norm      '    .10197       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3966       1.0000         .10000E-03   10000.    
     5 'norm      '    .56280       1.0000         .10000E-03   10000.    
     6 'norm      '    15.409       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12433E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.576       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.292       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.656       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3951       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.313       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87314       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21999E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.934       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .42526       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1210       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=   6761.281     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2626 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6947        1.8628        .35688E-07   -.88547E-05
   2  Prefactor     26.193        45.265        .14710E-05    .38922E-05
   3  norm          .47629E-01    385.76        .96080E-05   -.76593E-05
   4  Prefactor     4.4144        94.967       -.23736E-05    .12809E-04
   5  norm          .55395        4.8679        .17032E-05    .19879E-03
   6  norm          15.426        176.97       -.53915E-06    .36950E-08
   7  Prefactor     .10000E-03    36.426        .29996E-06** at limit **
   8  Prefactor     20.521        97.654        .87250E-05    .94531E-05
   9  Prefactor     21.289        14.811       -.16679E-06    .41411E-04
  10  Prefactor     .10000E-03    158.45        .27496E-06** at limit **
  11  Prefactor     .10000E-03    4.7501        .96863E-07** at limit **
  12  Prefactor     19.695        41.281        .14486E-05    .43671E-04
  13  Prefactor     .10000E-03    511.53       -.15083E-04** at limit **
  14  Prefactor     1.3949        18.530        .99042E-06    .52289E-04
  15  norm          .10000E-03    .74723       -.18861E-06** at limit **
  16  norm          26.331        44.168        .19515E-06    .15703E-04
  17  Prefactor     .86455        10.285        .39085E-05    .16383E-03
  18  norm          .10000E-03    4.6916       -.41234E-06** at limit **
  19  Prefactor     .10003E-03    8.7880       -.28203E-05** at limit **
  20  Prefactor     38.933        23.303        .12722E-06    .73185E-04
  21  norm          .10000E-03    8.1626       -.41106E-08** at limit **
  22  Normalizat    .42549        .23228       -.32259E-05    .74646E-04
  23  Prefactor     1.1209        .11906        .20537E-06    .21558E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.69471
  Prefactor  = 26.1926
  norm       = 0.0476292
  Prefactor  = 4.41442
  norm       = 0.553947
  norm       = 15.4259
  Prefactor  = 0.0001
  Prefactor  = 20.5212
  Prefactor  = 21.2895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.695
  Prefactor  = 0.0001
  Prefactor  = 1.39486
  norm       = 0.0001
  norm       = 26.3312
  Prefactor  = 0.864552
  norm       = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 38.9331
  norm       = 0.0001
  Normalizat = 0.425485
  Prefactor  = 1.12093
 **********
 **   18 **HESSE 
 **********

 FCN=   6761.281     FROM HESSE     STATUS=OK           390 CALLS     3016 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6947        1.8645        .77482E-04   -1.5324    
   2  Prefactor     26.193        45.365        .78243E-04   -1.4684    
   3  norm          .47629E-01    10.736        .59343E-01   -1.5664    
   4  Prefactor     4.4144        92.775        .19207E-03   -1.5288    
   5  norm          .55395        10.507        .26303E-02   -1.5559    
   6  norm          15.426        177.62        .10203E-03   -1.4922    
   7  Prefactor     .10000E-03    36.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.521        97.524        .88299E-04   -1.4802    
   9  Prefactor     21.289        14.783        .86804E-04   -1.4785    
  10  Prefactor     .10000E-03    158.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7656        .17508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.695        41.129        .90341E-04   -1.4820    
  13  Prefactor     .10000E-03    509.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3949        19.242        .36765E-03   -1.5472    
  15  norm          .10000E-03    .75372        .69443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.331        44.132        .78095E-04   -1.4681    
  17  Prefactor     .86455        14.707        .28907E-02   -1.5522    
  18  norm          .10000E-03    4.7012        .17391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    27.770        .29598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.933        23.054        .64236E-04   -1.4459    
  21  norm          .10000E-03    8.1636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .42549        .24152        .45067E-03   -1.1600    
  23  Prefactor     1.1209        .12673        .15349E-03   -.88800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8489e-09
Minuit parameter uncertainties:
  1  1.86455
  2  45.4244
  3  1.42893
  4  40.546
  5  4.82567
  6  105.084
  7  1.04284e-06
  8  89.7109
  9  14.7854
  10  0.000137904
  11  4.75216e-07
  12  41.1883
  13  0.000370603
  14  10.3651
  15  2.27481e-06
  16  44.1872
  17  7.13335
  18  1.33275e-05
  19  0.00194909
  20  23.0591
  21  9.27719e-08
  22  0.24211
  23  0.12676
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  2.052e+01  8.971e+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:  1.121e+00  1.268e-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:  4.255e-01  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950232/likelihoodResults_243216001_243475201_4FGL_J1738.3+3228_daily_bin15.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) = 6761.24835
delta logL = 0.032797746856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6761.24141883
delta logL = 0.0397289146049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.029       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9758       1.0000          .0000       10.000    
     3 'Normalizat'    .41810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1227       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=   6761.241     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.019        183.48        .11097E-03   -.28601E-03
   2  Index         2.9772        2.9413        .10084E-01   -.20416E-03
   3  Normalizat    .41737        .23179        .45488E-03    .38448E-03
   4  Prefactor     1.1231        .12388        .15335E-03    .12442E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0186
  Index      = 2.97724
  Normalizat = 0.417369
  Prefactor  = 1.12309
 **********
 **   18 **HESSE 
 **********

 FCN=   6761.241     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.019        71.272        .22194E-04   -1.4986    
   2  Index         2.9772        1.9247        .40336E-03   -.41649    
   3  Normalizat    .41737        .23182        .18195E-04   -1.1641    
   4  Prefactor     1.1231        .12372        .30670E-04   -.88732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71853e-09
Minuit parameter uncertainties:
  1  61.0339
  2  1.98661
  3  0.232356
  4  0.123755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950232': 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) = 6761.2414134
delta logL = 0.039734347065

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.302e+01  6.103e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.977e+00  1.987e+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:  1.123e+00  1.238e-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:  4.174e-01  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 264.584 32.482

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/950232/cmap_HighResolution_243216001_243475201_4FGL_J1738.3+3228_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', job_status='DONE', photon_flux_upper_limit='9.75e-08', time_completed='2021-09-18 01:31:49.865559', job_id='950232', GAL2='1.12', fit_tolerance='1e-08', EG2='0.42', EG='0.43', time_epoch_completed='1631953909.87', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.97e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='15' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:31:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 950232: <4FGL_J1738.3+3228_daily_bin15> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin15> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep 18 01:15:39 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:15:42 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:15:42 2021
Terminated at Sat Sep 18 01:31:50 2021
Results reported at Sat Sep 18 01:31:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin15 264.584 32.4823 243216001 243475201 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 :                                   758.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

