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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1422
RA = 264.584, Dec = 32.4823
tmin = 607910401, tmax = 608169601
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='958559', job_status='RUN', time_executed='2021-09-18 01:45:27.280736', time_epoch_executed='1631954727.28' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958559/ft1_4FGL_J1738.3+3228_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958559/ft2_4FGL_J1738.3+3228_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958559/ft1_4FGL_J1738.3+3228_daily_bin1422.fits outfile=/scratch/kocevski/958559/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1422.fits ra=264.584 dec=32.4823 rad=12.0 tmin=607910401.0 tmax=608169601.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.30
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958559/ft1_filtered_4FGL_J1738.3+3228_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/958559/ft2_4FGL_J1738.3+3228_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/958559/ltcube_607910401_608169601_4FGL_J1738.3+3228_daily_bin1422.fits outfile=/scratch/kocevski/958559/expmap_607910401_608169601_4FGL_J1738.3+3228_daily_bin1422.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/958559/ltcube_607910401_608169601_4FGL_J1738.3+3228_daily_bin1422.fits
.....................!
real 190.16
user 186.15
sys 3.70

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/958559/ft1_filtered_4FGL_J1738.3+3228_daily_bin1422.fits scfile=/scratch/kocevski/958559/ft2_4FGL_J1738.3+3228_daily_bin1422.fits outfile=/scratch/kocevski/958559/cmap_607910401_608169601_4FGL_J1738.3+3228_daily_bin1422.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/958559/ft1_filtered_4FGL_J1738.3+3228_daily_bin1422.fits scfile=/scratch/kocevski/958559/ft2_4FGL_J1738.3+3228_daily_bin1422.fits outfile=/scratch/kocevski/958559/cmap_HighResolution_607910401_608169601_4FGL_J1738.3+3228_daily_bin1422.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.6887       1.0000         .10000E-03   10000.    
     6 'norm      '    48.181       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.257       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    69.190       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29879       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37282E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.133       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .16479E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6654       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    44.966       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81207       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1050       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=   9884.265     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2564 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6117        1.5462        .13319E-07    .84497E-05
   2  Prefactor     .10000E-03    13.293        .17757E-06** at limit **
   3  norm          .10000E-03    3.0868        .19565E-06** at limit **
   4  Prefactor     .10000E-03    46.668        .18195E-06** at limit **
   5  norm          8.6898        4.5787       -.62823E-07   -.25913E-04
   6  norm          48.179        64.680       -.12712E-06    .10691E-05
   7  Prefactor     .10000E-03    24.598        .16053E-06** at limit **
   8  Prefactor     43.244        100.72        .36797E-06    .31577E-05
   9  Prefactor     10.407        15.285        .75235E-06   -.13376E-04
  10  Prefactor     69.193        57.457       -.17713E-06    .47687E-04
  11  Prefactor     .29077        6.3099       -.27855E-06    .16693E-03
  12  Prefactor     .10000E-03    61.649       -.23027E-04** at limit **
  13  Prefactor     38.946        88.262        .17020E-05    .54464E-05
  14  Prefactor     .10000E-03    3.6177       -.40780E-06** at limit **
  15  norm          .10243E-03    .78332        .32914E-06** at limit **
  16  norm          .10000E-03    97.896       -.45392E-08** at limit **
  17  Prefactor     .10000E-03    1.6247        .72002E-07** at limit **
  18  norm          .10000E-03    4.4724       -.50458E-06** at limit **
  19  Prefactor     4.6657        3.8658        .25790E-07    .49705E-04
  20  Prefactor     .10000E-03    11.301       -.67630E-06** at limit **
  21  norm          44.969        33.427       -.15300E-06    .11099E-04
  22  Normalizat    .81232        .19797       -.23169E-05    .14598E-03
  23  Prefactor     1.1049        .99756E-01    .99444E-06    .42141E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.68978
  norm       = 48.1795
  Prefactor  = 0.0001
  Prefactor  = 43.2437
  Prefactor  = 10.4067
  Prefactor  = 69.1934
  Prefactor  = 0.290772
  Prefactor  = 0.000100002
  Prefactor  = 38.9462
  Prefactor  = 0.0001
  norm       = 0.000102429
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.66572
  Prefactor  = 0.0001
  norm       = 44.9695
  Normalizat = 0.812317
  Prefactor  = 1.10492
 **********
 **   18 **HESSE 
 **********

 FCN=   9884.265     FROM HESSE     STATUS=OK           374 CALLS     2938 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6117        1.5469        .92516E-04   -1.5385    
   2  Prefactor     .10000E-03    13.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.1214        .17056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.6898        4.5790        .13599E-03   -1.5118    
   6  norm          48.179        64.701        .57769E-04   -1.4319    
   7  Prefactor     .10000E-03    24.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.244        100.81        .60954E-04   -1.4392    
   9  Prefactor     10.407        15.248        .12409E-03   -1.5063    
  10  Prefactor     69.193        57.426        .48257E-04   -1.4042    
  11  Prefactor     .29077        97.324        .47441E-02   -1.5600    
  12  Prefactor     .10000E-03    62.148        .21295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.946        88.591        .32036E-03   -1.4459    
  14  Prefactor     .10000E-03    3.6334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10243E-03    1.1645        .31986E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    98.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.6295        .12374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6657        3.8662        .17171E-03   -1.5276    
  20  Prefactor     .10000E-03    11.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          44.969        33.507        .59790E-04   -1.4366    
  22  Normalizat    .81232        .22428        .38090E-03   -.99613    
  23  Prefactor     1.1049        .11343        .17108E-03   -.89310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34055e-09
Minuit parameter uncertainties:
  1  1.54693
  2  1.32389e-06
  3  2.88635e-06
  4  7.89511e-05
  5  4.57921
  6  64.7959
  7  1.65402e-05
  8  101.216
  9  15.2538
  10  57.4724
  11  10.6551
  12  0.000616332
  13  88.8922
  14  3.10871e-06
  15  0.00336341
  16  5.96233e-05
  17  3.37643e-07
  18  6.49066e-06
  19  3.86641
  20  9.26708e-06
  21  33.5211
  22  0.224531
  23  0.113451
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.324e+01  1.012e+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.105e+00  1.135e-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:  8.123e-01  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958559/likelihoodResults_607910401_608169601_4FGL_J1738.3+3228_daily_bin1422.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) = 9884.17964064
delta logL = 0.0853315161148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9884.14973197
delta logL = 0.115240182189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.283       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0305       1.0000          .0000       10.000    
     3 'Normalizat'    .79648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1091       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=   9884.150     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      255 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.283        1127.3        .20322E-02    .40551E-03
   2  Index         3.0310        3.5811        .16227        .15849E-03
   3  Normalizat    .79606        .51092E-01    .86815E-01    .41747E-04
   4  Prefactor     1.1093        .25317E-01    .37251E-01   -.73818E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2827
  Index      = 3.03099
  Normalizat = 0.796056
  Prefactor  = 1.1093
 **********
 **   18 **HESSE 
 **********

 FCN=   9884.150     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.283        189.00        .81289E-04   -1.4722    
   2  Index         3.0310        2.4306        .94858E-02   -.40477    
   3  Normalizat    .79606        .21923        .38448E-03   -1.0022    
   4  Prefactor     1.1093        .11199        .17077E-03   -.89170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25957e-08
Minuit parameter uncertainties:
  1  136.091
  2  2.56105
  3  0.219473
  4  0.112018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958559': 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) = 9884.14972986
delta logL = 0.115242291804

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  2.428e+01  1.361e+02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  3.031e+00  2.561e+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.109e+00  1.120e-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.961e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/958559/cmap_HighResolution_607910401_608169601_4FGL_J1738.3+3228_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.13e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-18 02:01:30.202299', job_id='958559', GAL2='1.11', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1631955690.2', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.15e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1422' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:01:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 958559: <4FGL_J1738.3+3228_daily_bin1422> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin1422> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 01:45:18 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:45:20 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:45:20 2021
Terminated at Sat Sep 18 02:01:30 2021
Results reported at Sat Sep 18 02:01:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1422 264.584 32.4823 607910401 608169601 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 :                                   957.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             350.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

