/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 171 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_bin1330
RA = 264.584, Dec = 32.4823
tmin = 584064001, tmax = 584323201
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='957430', job_status='RUN', time_executed='2021-09-18 01:43:54.190569', time_epoch_executed='1631954634.19' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957430/ft1_4FGL_J1738.3+3228_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957430/ft2_4FGL_J1738.3+3228_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957430/ft1_4FGL_J1738.3+3228_daily_bin1330.fits outfile=/scratch/kocevski/957430/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1330.fits ra=264.584 dec=32.4823 rad=12.0 tmin=584064001.0 tmax=584323201.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.50
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957430/ft1_filtered_4FGL_J1738.3+3228_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/957430/ft2_4FGL_J1738.3+3228_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/957430/ltcube_584064001_584323201_4FGL_J1738.3+3228_daily_bin1330.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/957430/ft2_4FGL_J1738.3+3228_daily_bin1330.fits
.....................!
real 9.01
user 8.71
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957430/ft1_filtered_4FGL_J1738.3+3228_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/957430/ft2_4FGL_J1738.3+3228_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/957430/ltcube_584064001_584323201_4FGL_J1738.3+3228_daily_bin1330.fits outfile=/scratch/kocevski/957430/expmap_584064001_584323201_4FGL_J1738.3+3228_daily_bin1330.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/957430/ltcube_584064001_584323201_4FGL_J1738.3+3228_daily_bin1330.fits
.....................!
real 145.24
user 141.58
sys 3.42

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/957430/ft1_filtered_4FGL_J1738.3+3228_daily_bin1330.fits scfile=/scratch/kocevski/957430/ft2_4FGL_J1738.3+3228_daily_bin1330.fits outfile=/scratch/kocevski/957430/cmap_584064001_584323201_4FGL_J1738.3+3228_daily_bin1330.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957430/ft1_filtered_4FGL_J1738.3+3228_daily_bin1330.fits scfile=/scratch/kocevski/957430/ft2_4FGL_J1738.3+3228_daily_bin1330.fits outfile=/scratch/kocevski/957430/cmap_HighResolution_584064001_584323201_4FGL_J1738.3+3228_daily_bin1330.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.484       1.0000         .10000E-03   10000.    
     3 'norm      '    3.8704       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.9815       1.0000         .10000E-03   10000.    
     6 'norm      '    122.22       1.0000         .10000E-03   10000.    
     7 'Prefactor '    118.45       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1393       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    62.755       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    54.765       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9631       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5436       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8567       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18895E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0075       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0109       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=   8446.647     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2514 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9471        1.2342       -.99942E-07    .45261E-04
   2  Prefactor     29.430        38.078       -.54880E-04    .17519E-04
   3  norm          3.8683        10.028       -.37342E-05   -.24799E-03
   4  Prefactor     .10000E-03    18.217        .14763E-04** at limit **
   5  norm          3.9806        4.8426       -.21678E-07   -.28432E-03
   6  norm          122.23        91.937        .91653E-05    .47967E-05
   7  Prefactor     118.46        86.191        .87392E-05    .33859E-04
   8  Prefactor     4.1387        125.93       -.26683E-05   -.79123E-06
   9  Prefactor     .10000E-03    4.7388        .82782E-06** at limit **
  10  Prefactor     .10000E-03    32.492        .12658E-04** at limit **
  11  Prefactor     4.6560        7.0907       -.86946E-06   -.11374E-03
  12  Prefactor     .10000E-03    21.722       -.22313E-04** at limit **
  13  Prefactor     62.740        62.832       -.15716E-04    .13810E-03
  14  Prefactor     .10000E-03    3.1756       -.39139E-07** at limit **
  15  norm          .10000E-03    .55590        .59243E-07** at limit **
  16  norm          54.730        57.596       -.36647E-04    .25714E-04
  17  Prefactor     4.9647        5.9356       -.24919E-05   -.12216E-03
  18  norm          1.5369        6.3358        .16877E-05   -.63048E-03
  19  Prefactor     1.8420        5.1872       -.59295E-05   -.10694E-02
  20  Prefactor     .10000E-03    75.449        .51894E-05** at limit **
  21  norm          .10000E-03    11.397       -.12512E-05** at limit **
  22  Normalizat    1.0077        .20239        .60809E-05    .16293E-03
  23  Prefactor     1.0108        .10275        .24385E-05    .18411E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94713
  Prefactor  = 29.4297
  norm       = 3.86828
  Prefactor  = 0.0001
  norm       = 3.98059
  norm       = 122.23
  Prefactor  = 118.457
  Prefactor  = 4.13869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.656
  Prefactor  = 0.000100001
  Prefactor  = 62.7397
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 54.7299
  Prefactor  = 4.96466
  norm       = 1.53689
  Prefactor  = 1.842
  Prefactor  = 0.000100004
  norm       = 0.0001
  Normalizat = 1.00771
  Prefactor  = 1.0108
 **********
 **   18 **HESSE 
 **********

 FCN=   8446.647     FROM HESSE     STATUS=OK           368 CALLS     2882 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9471        1.2309        .79294E-04   -1.5429    
   2  Prefactor     29.430        38.082        .73785E-04   -1.4622    
   3  norm          3.8683        9.9982        .20511E-03   -1.5315    
   4  Prefactor     .10000E-03    18.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9806        4.8106        .20213E-03   -1.5309    
   6  norm          122.23        91.954        .18203E-03   -1.3492    
   7  Prefactor     118.46        86.232        .36973E-04   -1.3527    
   8  Prefactor     4.1387        126.06        .19812E-03   -1.5301    
   9  Prefactor     .10000E-03    4.7490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6560        7.0819        .18650E-03   -1.5276    
  12  Prefactor     .10000E-03    21.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     62.740        62.682        .50654E-04   -1.4122    
  14  Prefactor     .10000E-03    3.1852        .15993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .56062        .66910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          54.730        57.524        .54203E-04   -1.4227    
  17  Prefactor     4.9647        5.9169        .18052E-03   -1.5262    
  18  norm          1.5369        6.2551        .34307E-03   -1.5460    
  19  Prefactor     1.8420        5.1794        .30588E-03   -1.5437    
  20  Prefactor     .10000E-03    77.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    11.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0077        .23754        .33546E-03   -.92773    
  23  Prefactor     1.0108        .12105        .17627E-03   -.92370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33799e-09
Minuit parameter uncertainties:
  1  1.23088
  2  38.1132
  3  10.0025
  4  5.18635e-05
  5  4.81106
  6  92.0617
  7  86.3237
  8  45.7878
  9  9.15799e-05
  10  3.18902e-05
  11  7.08321
  12  0.000329726
  13  62.7484
  14  1.42967e-05
  15  5.04827e-06
  16  57.5829
  17  5.91759
  18  6.20204
  19  5.18066
  20  0.00117825
  21  8.57312e-06
  22  0.237794
  23  0.121083
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.139e+00  4.579e+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.011e+00  1.211e-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.008e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/957430/likelihoodResults_584064001_584323201_4FGL_J1738.3+3228_daily_bin1330.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) = 8446.64668993
delta logL = 0.000264316782705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8446.64641619
delta logL = 0.000538048796443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8020       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5742       1.0000          .0000       10.000    
     3 'Normalizat'    1.0073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0109       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8446.646     FROM MIGRAD    STATUS=FAILED        90 CALLS      281 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8293        136.21        .20701E-03    .77983E-04
   2  Index         2.5783        3.4699        .10910E-01    .21398E-03
   3  Normalizat    1.0074        .22428        .33551E-03    .22654E-02
   4  Prefactor     1.0109        .11850        .17626E-03    .37320E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8446.646     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      366 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8293        136.21        .91497E-03   -1.5317    
   2  Index         2.5783        3.4699        .55660E-02   -.50561    
   3  Normalizat    1.0074        .22428        .49559E-03   -.92784    
   4  Prefactor     1.0109        .11850        .24077E-03   -.92368    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8446.646     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      395 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8328        122.11        .82805E-05    .10709E-03
   2  Index         2.5776        3.3357        .43639E-03    .87533E-05
   3  Normalizat    1.0074        .22445        .67103E-04    .23272E-03
   4  Prefactor     1.0109        .11858        .35252E-04    .37384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.83283
  Index      = 2.57761
  Normalizat = 1.00737
  Prefactor  = 1.01088
 **********
 **   18 **HESSE 
 **********

 FCN=   8446.646     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8328        116.71        .16561E-05   -1.5316    
   2  Index         2.5776        3.3199        .17456E-04   -.50577    
   3  Normalizat    1.0074        .22449        .13421E-04   -.92784    
   4  Prefactor     1.0109        .11861        .70505E-05   -.92368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91919e-10
Minuit parameter uncertainties:
  1  42.39
  2  3.76949
  3  0.224696
  4  0.118636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957430': 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) = 8446.64641463
delta logL = 0.000539607082828

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.833e+00  4.239e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.578e+00  3.769e+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.011e+00  1.186e-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.007e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/957430/cmap_HighResolution_584064001_584323201_4FGL_J1738.3+3228_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2021-09-18 01:55:30.915914', job_id='957430', GAL2='1.01', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631955330.92', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.40e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1330' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:55:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 957430: <4FGL_J1738.3+3228_daily_bin1330> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin1330> 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) <bullet0086>, 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:31 2021
Results reported at Sat Sep 18 01:55:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1330 264.584 32.4823 584064001 584323201 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 :                                   670.30 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

