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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1339
RA = 264.584, Dec = 32.4823
tmin = 586396801, tmax = 586656001
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='957444', job_status='RUN', time_executed='2021-09-18 01:43:58.831762', time_epoch_executed='1631954638.83' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957444

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957444/ft1_4FGL_J1738.3+3228_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957444/ft2_4FGL_J1738.3+3228_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957444/ft1_4FGL_J1738.3+3228_daily_bin1339.fits outfile=/scratch/kocevski/957444/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1339.fits ra=264.584 dec=32.4823 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.57
user 2.38
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957444/ft1_filtered_4FGL_J1738.3+3228_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/957444/ft2_4FGL_J1738.3+3228_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/957444/ltcube_586396801_586656001_4FGL_J1738.3+3228_daily_bin1339.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/957444/ft2_4FGL_J1738.3+3228_daily_bin1339.fits
.....................!
real 8.34
user 7.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957444/ft1_filtered_4FGL_J1738.3+3228_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/957444/ft2_4FGL_J1738.3+3228_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/957444/ltcube_586396801_586656001_4FGL_J1738.3+3228_daily_bin1339.fits outfile=/scratch/kocevski/957444/expmap_586396801_586656001_4FGL_J1738.3+3228_daily_bin1339.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/957444/ltcube_586396801_586656001_4FGL_J1738.3+3228_daily_bin1339.fits
.....................!
real 190.64
user 184.97
sys 5.31

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/957444/ft1_filtered_4FGL_J1738.3+3228_daily_bin1339.fits scfile=/scratch/kocevski/957444/ft2_4FGL_J1738.3+3228_daily_bin1339.fits outfile=/scratch/kocevski/957444/cmap_586396801_586656001_4FGL_J1738.3+3228_daily_bin1339.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.54
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957444/ft1_filtered_4FGL_J1738.3+3228_daily_bin1339.fits scfile=/scratch/kocevski/957444/ft2_4FGL_J1738.3+3228_daily_bin1339.fits outfile=/scratch/kocevski/957444/cmap_HighResolution_586396801_586656001_4FGL_J1738.3+3228_daily_bin1339.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.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9521       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.547       1.0000         .10000E-03   10000.    
     3 'norm      '    10.867       1.0000         .10000E-03   10000.    
     4 'Prefactor '    84.376       1.0000         .10000E-03   10000.    
     5 'norm      '    6.7424       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    85.163       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    105.56       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13288E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.362       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8226       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3845       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0550       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0184       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=   5945.336     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2508 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9522        3.1104       -.17666E-06   -.96600E-05
   2  Prefactor     45.562        42.396        .13304E-04    .63914E-05
   3  norm          10.869        12.223        .70174E-06   -.16481E-04
   4  Prefactor     84.364        65.804       -.10870E-04    .12292E-04
   5  norm          6.7428        7.0453        .13577E-05   -.17175E-04
   6  norm          .10000E-03    52.765        .11773E-04** at limit **
   7  Prefactor     .10000E-03    47.650       -.15680E-04** at limit **
   8  Prefactor     85.115        157.16       -.50527E-04    .17118E-04
   9  Prefactor     7.5224        14.008        .10755E-06   -.69633E-03
  10  Prefactor     105.55        87.019       -.15074E-04    .43808E-04
  11  Prefactor     .10000E-03    3.3362        .18863E-06** at limit **
  12  Prefactor     .10000E-03    76.656       -.20141E-04** at limit **
  13  Prefactor     34.371        106.49        .16285E-04    .47882E-04
  14  Prefactor     .10000E-03    4.6911       -.12897E-06** at limit **
  15  norm          2.8219        3.6943        .39799E-06   -.29556E-03
  16  norm          .10000E-03    57.280        .23409E-04** at limit **
  17  Prefactor     .10000E-03    4.8020       -.30021E-07** at limit **
  18  norm          3.5918        10.693       -.15979E-05   -.84030E-04
  19  Prefactor     3.3836        6.5777       -.86095E-05   -.35979E-03
  20  Prefactor     .10000E-03    18.480       -.42610E-06** at limit **
  21  norm          .10000E-03    12.838       -.14564E-06** at limit **
  22  Normalizat    1.0545        .26790        .47964E-05    .67281E-04
  23  Prefactor     1.0186        .13423        .12824E-05    .18923E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.95222
  Prefactor  = 45.5619
  norm       = 10.8694
  Prefactor  = 84.3643
  norm       = 6.74277
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.115
  Prefactor  = 7.52237
  Prefactor  = 105.548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3711
  Prefactor  = 0.0001
  norm       = 2.82191
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.59184
  Prefactor  = 3.38358
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05453
  Prefactor  = 1.01862
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.336     FROM HESSE     STATUS=OK           362 CALLS     2870 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9522        3.1111        .88351E-04   -1.5181    
   2  Prefactor     45.562        42.344        .59409E-04   -1.4357    
   3  norm          10.869        12.231        .12154E-03   -1.5048    
   4  Prefactor     84.364        65.737        .43732E-04   -1.3868    
   5  norm          6.7428        7.0286        .15453E-03   -1.5189    
   6  norm          .10000E-03    52.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     85.115        156.52        .43531E-04   -1.3860    
   9  Prefactor     7.5224        14.010        .73116E-03   -1.5159    
  10  Prefactor     105.55        87.026        .39139E-04   -1.3650    
  11  Prefactor     .10000E-03    3.3385        .13754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    76.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.371        106.51        .68362E-04   -1.4535    
  14  Prefactor     .10000E-03    4.7003        .16307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8219        3.6840        .15979E-03   -1.5372    
  16  norm          .10000E-03    57.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8398        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5918        10.705        .21315E-03   -1.5329    
  19  Prefactor     3.3836        6.6218        .21993E-03   -1.5340    
  20  Prefactor     .10000E-03    18.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0545        .31718        .35951E-03   -.91225    
  23  Prefactor     1.0186        .16002        .18547E-03   -.92111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64529e-09
Minuit parameter uncertainties:
  1  3.11119
  2  42.3718
  3  12.2339
  4  65.7941
  5  7.02949
  6  1.13156e-05
  7  6.05445e-05
  8  157.286
  9  14.0166
  10  87.1312
  11  4.59786e-06
  12  0.000384571
  13  107.109
  14  1.25326e-05
  15  3.68429
  16  7.2496e-05
  17  1.53742e-05
  18  10.7103
  19  6.6232
  20  0.000147245
  21  1.18026e-06
  22  0.317748
  23  0.160094
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.019e+00  1.601e-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.055e+00  3.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 1.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/957444/likelihoodResults_586396801_586656001_4FGL_J1738.3+3228_daily_bin1339.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) = 5944.54475025
delta logL = 0.791197762966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5944.39145569
delta logL = 0.944492319503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11580E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6935       1.0000          .0000       10.000    
     3 'Normalizat'    .96755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0550       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=   5944.391     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      447 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11032E-02    .16499E-01    .56278E-03** at limit **
   2  Index         7.7129        2.2608        .13035       -.16984E-04
   3  Normalizat    .96811        .60555E-01    .84297E-01   -.22176E-03
   4  Prefactor     1.0547        .30922E-01    .39624E-01   -.43185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00110322
  Index      = 7.71285
  Normalizat = 0.96811
  Prefactor  = 1.05475
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.391     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      480 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11032E-02    .42553E-01    .22782E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.7129        7.6711        .50408E-02    .57349    
   3  Normalizat    .96811        .23045        .37320E-03   -.94107    
   4  Prefactor     1.0547        .11648        .18260E-03   -.90926    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.51083e-10
Minuit parameter uncertainties:
  1  0.0130675
  2  4.73437
  3  0.230685
  4  0.116513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957444': 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) = 5944.39144865
delta logL = 0.944499363164

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.103e-03  1.307e-02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  7.713e+00  4.734e+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.055e+00  1.165e-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.681e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 264.584 32.482
Photon Index (Free Index): 7.71 +/- 4.73
Photon Flux (Free Index): 8.60e-08 +/- 6.85e-08
Energy Flux (Free Index): 1.01e-05 +/- 8.45e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/957444/cmap_HighResolution_586396801_586656001_4FGL_J1738.3+3228_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='9.44e-01', photon_flux2='8.60e-08', job_status='DONE', time_completed='2021-09-18 01:55:53.350683', photon_index_error2='4.73', photon_index2='7.71', ts='0.35', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='8.45e-06', EG='1.05', time_epoch_completed='1631955353.35', return_code='0', job_id='957444', GAL2='1.05', EG2='0.97', return_code2='102', photon_flux_error2='6.85e-08', ts2='2.36', photon_index='2.45' WHERE bin_id='1339' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:55:53 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1339 264.584 32.4823 586396801 586656001 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 :                                   700.31 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             270.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

