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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin619
RA = 264.584, Dec = 32.4823
tmin = 399772801, tmax = 400032001
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='954311', job_status='RUN', time_executed='2021-09-18 01:31:01.375030', time_epoch_executed='1631953861.38' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954311/ft1_4FGL_J1738.3+3228_daily_bin619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954311/ft2_4FGL_J1738.3+3228_daily_bin619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954311/ft1_4FGL_J1738.3+3228_daily_bin619.fits outfile=/scratch/kocevski/954311/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin619.fits ra=264.584 dec=32.4823 rad=12.0 tmin=399772801.0 tmax=400032001.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 5.37
user 5.08
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954311/ft1_filtered_4FGL_J1738.3+3228_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/954311/ft2_4FGL_J1738.3+3228_daily_bin619.fits sctable="SC_DATA" expcube=/scratch/kocevski/954311/ltcube_399772801_400032001_4FGL_J1738.3+3228_daily_bin619.fits outfile=/scratch/kocevski/954311/expmap_399772801_400032001_4FGL_J1738.3+3228_daily_bin619.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/954311/ltcube_399772801_400032001_4FGL_J1738.3+3228_daily_bin619.fits
.....................!
real 192.76
user 186.77
sys 5.62

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/954311/ft1_filtered_4FGL_J1738.3+3228_daily_bin619.fits scfile=/scratch/kocevski/954311/ft2_4FGL_J1738.3+3228_daily_bin619.fits outfile=/scratch/kocevski/954311/cmap_399772801_400032001_4FGL_J1738.3+3228_daily_bin619.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954311/ft1_filtered_4FGL_J1738.3+3228_daily_bin619.fits scfile=/scratch/kocevski/954311/ft2_4FGL_J1738.3+3228_daily_bin619.fits outfile=/scratch/kocevski/954311/cmap_HighResolution_399772801_400032001_4FGL_J1738.3+3228_daily_bin619.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7761       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .51491E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6407       1.0000         .10000E-03   10000.    
     6 'norm      '    .20536       1.0000         .10000E-03   10000.    
     7 'Prefactor '    119.05       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.793       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.287       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .65978E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15822E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .21083E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4796       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7862       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.2930       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0248       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84528       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=   7821.806     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2815 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7762        2.7912        .31408E-07    .24452E-04
   2  Prefactor     .10000E-03    18.387        .13042E-06** at limit **
   3  norm          .10000E-03    6.3351       -.38077E-06** at limit **
   4  Prefactor     .10000E-03    16.288       -.19590E-06** at limit **
   5  norm          1.6363        13.104        .38632E-05   -.64577E-04
   6  norm          1.0007        56.471       -.32561E-07   -.11742E-05
   7  Prefactor     119.12        119.15       -.23934E-05    .89981E-04
   8  Prefactor     33.806        82.141        .44905E-05    .77093E-04
   9  Prefactor     17.290        12.391        .28270E-06    .32574E-03
  10  Prefactor     .10000E-03    14.677        .41104E-07** at limit **
  11  Prefactor     .17924E-02    4.7581        .70489E-07** at limit **
  12  Prefactor     55.240        48.674        .90450E-06    .41291E-03
  13  Prefactor     68.425        104.74        .68791E-05    .25586E-03
  14  Prefactor     .10000E-03    2.3882        .50435E-07** at limit **
  15  norm          .10000E-03    .90805       -.50354E-07** at limit **
  16  norm          .36227E-03    62.466       -.52893E-05** at limit **
  17  Prefactor     .10000E-03    6.4255       -.96213E-07** at limit **
  18  norm          3.4797        3.7287       -.98809E-07    .36229E-04
  19  Prefactor     5.7867        4.6403        .13777E-05   -.86659E-03
  20  Prefactor     .10000E-03    20.012       -.34490E-06** at limit **
  21  norm          6.2931        12.442        .11537E-07   -.13917E-04
  22  Normalizat    1.0249        .20775       -.15357E-05    .15644E-03
  23  Prefactor     .84520        .96403E-01   -.23645E-06    .22659E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.77618
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.63629
  norm       = 1.00074
  Prefactor  = 119.118
  Prefactor  = 33.8063
  Prefactor  = 17.2899
  Prefactor  = 0.0001
  Prefactor  = 0.00179242
  Prefactor  = 55.2397
  Prefactor  = 68.4253
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000362268
  Prefactor  = 0.0001
  norm       = 3.47975
  Prefactor  = 5.78675
  Prefactor  = 0.0001
  norm       = 6.29307
  Normalizat = 1.02486
  Prefactor  = 0.845203
 **********
 **   18 **HESSE 
 **********

 FCN=   7821.806     FROM HESSE     STATUS=OK           400 CALLS     3215 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7762        2.7937        .86127E-04   -1.5150    
   2  Prefactor     .10000E-03    18.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    41.954        .40457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6363        12.287        .32987E-03   -1.5452    
   6  norm          1.0007        54.371        .23817       -1.5508    
   7  Prefactor     119.12        115.54        .36881E-04   -1.3521    
   8  Prefactor     33.806        82.569        .68933E-04   -1.4544    
   9  Prefactor     17.290        12.405        .96328E-04   -1.4876    
  10  Prefactor     .10000E-03    14.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17924E-02    6.0686        .72547E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     55.240        48.734        .53967E-04   -1.4220    
  13  Prefactor     68.425        106.81        .48536E-04   -1.4052    
  14  Prefactor     .10000E-03    2.3963        .13346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8146        .30388E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .36227E-03    51.721        .19137       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4797        3.7335        .17249E-03   -1.5335    
  19  Prefactor     5.7867        4.7567        .83484E-03   -1.5227    
  20  Prefactor     .10000E-03    20.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.2931        12.440        .16001E-03   -1.5206    
  22  Normalizat    1.0249        .24523        .33272E-03   -.92202    
  23  Prefactor     .84520        .11516        .17316E-03   -.98083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56782e-09
Minuit parameter uncertainties:
  1  2.79371
  2  2.79854e-05
  3  0.000551946
  4  2.14899e-05
  5  8.97021
  6  14.7662
  7  115.758
  8  82.8502
  9  12.407
  10  2.26062e-05
  11  0.202709
  12  48.7692
  13  107.112
  14  6.69264e-07
  15  1.83658e-05
  16  0.233138
  17  1.09228e-05
  18  3.73379
  19  4.75703
  20  7.04103e-05
  21  12.4448
  22  0.245496
  23  0.11519
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.381e+01  8.285e+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:  8.452e-01  1.152e-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.025e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/954311/likelihoodResults_399772801_400032001_4FGL_J1738.3+3228_daily_bin619.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) = 7821.64213771
delta logL = 0.163448278028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7821.64059368
delta logL = 0.164992311104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.422       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9214       1.0000          .0000       10.000    
     3 'Normalizat'    1.0309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84152       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=   7821.641     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      303 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.504        136.58        .21990E-03    .34898E-04
   2  Index         1.9221        .77175        .11555E-01   -.98875E-05
   3  Normalizat    1.0309        .23480        .33181E-03   -.56500E-04
   4  Prefactor     .84151        .11282        .17346E-03   -.84023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.5036
  Index      = 1.9221
  Normalizat = 1.03093
  Prefactor  = 0.841507
 **********
 **   18 **HESSE 
 **********

 FCN=   7821.641     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.504        134.74        .87958E-05   -1.3878    
   2  Index         1.9221        .76174        .46222E-03   -.66312    
   3  Normalizat    1.0309        .23496        .13272E-04   -.92001    
   4  Prefactor     .84151        .11290        .34692E-04   -.98216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67137e-11
Minuit parameter uncertainties:
  1  135.238
  2  0.766569
  3  0.235198
  4  0.112931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954311': 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) = 7821.64059291
delta logL = 0.164993076193

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  8.415e-01  1.129e-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.031e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/954311/cmap_HighResolution_399772801_400032001_4FGL_J1738.3+3228_daily_bin619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2021-09-18 01:45:39.324894', job_id='954311', GAL2='0.84', fit_tolerance='1e-08', EG2='1.03', EG='1.02', time_epoch_completed='1631954739.32', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.65e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='619' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 954311: <4FGL_J1738.3+3228_daily_bin619> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin619 264.584 32.4823 399772801 400032001 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 :                                   872.31 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             333.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

