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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1313
RA = 264.584, Dec = 32.4823
tmin = 579657601, tmax = 579916801
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='957407', job_status='RUN', time_executed='2021-09-18 01:41:01.899847', time_epoch_executed='1631954461.9' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957407/ft1_4FGL_J1738.3+3228_daily_bin1313.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957407/ft2_4FGL_J1738.3+3228_daily_bin1313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957407/ft1_4FGL_J1738.3+3228_daily_bin1313.fits outfile=/scratch/kocevski/957407/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1313.fits ra=264.584 dec=32.4823 rad=12.0 tmin=579657601.0 tmax=579916801.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.44
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957407/ft1_filtered_4FGL_J1738.3+3228_daily_bin1313.fits" evtable="EVENTS" scfile=/scratch/kocevski/957407/ft2_4FGL_J1738.3+3228_daily_bin1313.fits sctable="SC_DATA" outfile=/scratch/kocevski/957407/ltcube_579657601_579916801_4FGL_J1738.3+3228_daily_bin1313.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/957407/ft2_4FGL_J1738.3+3228_daily_bin1313.fits
.....................!
real 12.04
user 11.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957407/ft1_filtered_4FGL_J1738.3+3228_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/957407/ft2_4FGL_J1738.3+3228_daily_bin1313.fits sctable="SC_DATA" expcube=/scratch/kocevski/957407/ltcube_579657601_579916801_4FGL_J1738.3+3228_daily_bin1313.fits outfile=/scratch/kocevski/957407/expmap_579657601_579916801_4FGL_J1738.3+3228_daily_bin1313.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/957407/ltcube_579657601_579916801_4FGL_J1738.3+3228_daily_bin1313.fits
.....................!
real 190.39
user 185.86
sys 4.21

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/957407/ft1_filtered_4FGL_J1738.3+3228_daily_bin1313.fits scfile=/scratch/kocevski/957407/ft2_4FGL_J1738.3+3228_daily_bin1313.fits outfile=/scratch/kocevski/957407/cmap_579657601_579916801_4FGL_J1738.3+3228_daily_bin1313.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.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9927       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16167E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7779       1.0000         .10000E-03   10000.    
     6 'norm      '    25.512       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.402       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41345E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.641       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2287       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6383       1.0000         .10000E-03   10000.    
    16 'norm      '    30.610       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95627       1.0000         .10000E-03   10000.    
    18 'norm      '    10.315       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    24.870       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66405       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99383       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=   8161.963     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2543 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9926        1.5875       -.25511E-07    .21998E-04
   2  Prefactor     .10001E-03    190.73       -.50989E-05** at limit **
   3  norm          .10000E-03    4.6915       -.39876E-06** at limit **
   4  Prefactor     .10000E-03    21.502       -.20583E-06** at limit **
   5  norm          6.7809        6.7784        .72855E-07    .12101E-03
   6  norm          25.425        138.63        .23519E-05    .13485E-04
   7  Prefactor     46.408        72.908        .37803E-06    .21240E-04
   8  Prefactor     .10000E-03    59.375        .44954E-06** at limit **
   9  Prefactor     .10004E-03    50.360        .19141E-04** at limit **
  10  Prefactor     24.616        32.655       -.83875E-06   -.20981E-04
  11  Prefactor     .10000E-03    7.7564       -.40110E-06** at limit **
  12  Prefactor     7.2304        11.612        .73825E-09    .13422E-05
  13  Prefactor     .10000E-03    15.563       -.84176E-07** at limit **
  14  Prefactor     .10000E-03    1.7037       -.67004E-07** at limit **
  15  norm          1.6407        1.9700        .37729E-06    .46966E-03
  16  norm          30.760        55.979        .18116E-05   -.76714E-04
  17  Prefactor     .95684        3.4662       -.16670E-06    .37930E-03
  18  norm          10.315        6.7773       -.58199E-07   -.87681E-05
  19  Prefactor     .10000E-03    1.6255       -.98912E-07** at limit **
  20  Prefactor     .10000E-03    9.3840       -.27721E-06** at limit **
  21  norm          24.869        26.347       -.47838E-06   -.10051E-04
  22  Normalizat    .66405        .18110       -.17495E-05    .31252E-03
  23  Prefactor     .99383        .92106E-01    .20246E-05    .19080E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.99264
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.78085
  norm       = 25.4247
  Prefactor  = 46.408
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 24.6163
  Prefactor  = 0.0001
  Prefactor  = 7.23037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64071
  norm       = 30.7596
  Prefactor  = 0.956845
  norm       = 10.315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.8686
  Normalizat = 0.664054
  Prefactor  = 0.993832
 **********
 **   18 **HESSE 
 **********

 FCN=   8161.963     FROM HESSE     STATUS=OK           366 CALLS     2909 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9926        1.5862        .80771E-04   -1.5362    
   2  Prefactor     .10001E-03    196.72        .40822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.7315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7809        6.7381        .15412E-03   -1.5187    
   6  norm          25.425        139.44        .79310E-04   -1.4699    
   7  Prefactor     46.408        72.848        .58861E-04   -1.4344    
   8  Prefactor     .10000E-03    59.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    52.165        .55924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.616        32.702        .80696E-04   -1.4715    
  11  Prefactor     .10000E-03    7.8728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2304        11.604        .14919E-03   -1.5170    
  13  Prefactor     .10000E-03    15.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7070        .11517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6407        1.9435        .13288E-03   -1.5452    
  16  norm          30.760        56.097        .72419E-04   -1.4598    
  17  Prefactor     .95684        3.4644        .30940E-03   -1.5512    
  18  norm          10.315        6.7815        .12475E-03   -1.5066    
  19  Prefactor     .10000E-03    1.6490        .11250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          24.869        26.422        .80326E-04   -1.4710    
  22  Normalizat    .66405        .20889        .35848E-03   -1.0533    
  23  Prefactor     .99383        .11027        .15812E-03   -.92935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51766e-09
Minuit parameter uncertainties:
  1  1.58622
  2  0.00238743
  3  7.1438e-05
  4  9.73761e-05
  5  6.73887
  6  119.514
  7  72.9883
  8  0.000190151
  9  0.00273408
  10  32.7257
  11  8.95069e-05
  12  11.6076
  13  3.31418e-05
  14  7.07484e-06
  15  1.94354
  16  56.193
  17  3.46507
  18  6.78202
  19  1.16544e-05
  20  8.1369e-05
  21  26.4341
  22  0.209135
  23  0.110294
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.902e-04  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:  9.938e-01  1.103e-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:  6.641e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/957407/likelihoodResults_579657601_579916801_4FGL_J1738.3+3228_daily_bin1313.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) = 8161.96330326
delta logL = -8.00909629106e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8161.96322324
delta logL = -6.77155185258e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8300       1.0000          .0000       10.000    
     3 'Normalizat'    .66405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99383       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=   8161.963     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    31.911        .90712E-02** at limit **
   2  Index         2.8199        8.5455        .50000        .16867E-05
   3  Normalizat    .66406        .34217E-02    .80957E-01   -.17115E-03
   4  Prefactor     .99383        .18272E-02    .46190E-01   -.41067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100061
  Index      = 2.81986
  Normalizat = 0.66406
  Prefactor  = 0.993827
 **********
 **   18 **HESSE 
 **********

 FCN=   8161.963     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      272 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    298.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8199        6.0169        .50000       -.45118    
   3  Normalizat    .66406        .10506E-01    .35849E-03   -1.0533    
   4  Prefactor     .99383        .56230E-02    .15812E-03   -.92936    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.72349e-09
Minuit parameter uncertainties:
  1  0.00855835
  2  407.785
  3  0.0105057
  4  0.00562296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957407': 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) = 8161.96322323
delta logL = -6.36728145764e-08

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.001e-04  8.558e-03  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.820e+00  4.078e+02  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:  9.938e-01  5.623e-03  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:  6.641e-01  1.051e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/957407/cmap_HighResolution_579657601_579916801_4FGL_J1738.3+3228_daily_bin1313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2021-09-18 01:55:36.132551', job_id='957407', GAL2='0.99', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1631955336.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-6.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1313' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:55:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 957407: <4FGL_J1738.3+3228_daily_bin1313> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1313 264.584 32.4823 579657601 579916801 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 :                                   860.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

