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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1412
RA = 264.584, Dec = 32.4823
tmin = 605318401, tmax = 605577601
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='958545', job_status='RUN', time_executed='2021-09-18 01:45:29.387876', time_epoch_executed='1631954729.39' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958545

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958545/ft1_4FGL_J1738.3+3228_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958545/ft2_4FGL_J1738.3+3228_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958545/ft1_4FGL_J1738.3+3228_daily_bin1412.fits outfile=/scratch/kocevski/958545/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1412.fits ra=264.584 dec=32.4823 rad=12.0 tmin=605318401.0 tmax=605577601.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.48
user 5.23
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958545/ft1_filtered_4FGL_J1738.3+3228_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/958545/ft2_4FGL_J1738.3+3228_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/958545/ltcube_605318401_605577601_4FGL_J1738.3+3228_daily_bin1412.fits outfile=/scratch/kocevski/958545/expmap_605318401_605577601_4FGL_J1738.3+3228_daily_bin1412.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/958545/ltcube_605318401_605577601_4FGL_J1738.3+3228_daily_bin1412.fits
.....................!
real 189.67
user 185.61
sys 3.61

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/958545/ft1_filtered_4FGL_J1738.3+3228_daily_bin1412.fits scfile=/scratch/kocevski/958545/ft2_4FGL_J1738.3+3228_daily_bin1412.fits outfile=/scratch/kocevski/958545/cmap_605318401_605577601_4FGL_J1738.3+3228_daily_bin1412.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4228       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1989       1.0000         .10000E-03   10000.    
     3 'norm      '    .55659E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.723       1.0000         .10000E-03   10000.    
     5 'norm      '    7.5768       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.852       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.301       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .80433E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.265       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8280       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5143       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5657       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6194       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0618       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85848       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0405       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0194       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97279       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=   9074.663     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2653 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4228        1.2840       -.20526E-07   -.28460E-04
   2  Prefactor     8.1963        30.893        .39554E-06   -.41177E-05
   3  norm          .10792E-01    5.9445       -.37226E-06    .43945E-03
   4  Prefactor     40.730        51.248       -.37362E-06    .99655E-05
   5  norm          7.5806        5.8758       -.25266E-06   -.32888E-04
   6  norm          .10000E-03    31.970        .16972E-07** at limit **
   7  Prefactor     39.875        58.952       -.81374E-06    .41370E-04
   8  Prefactor     .10000E-03    41.024       -.14194E-06** at limit **
   9  Prefactor     .10000E-03    11.286       -.13362E-05** at limit **
  10  Prefactor     43.238        67.777        .22200E-06    .48346E-04
  11  Prefactor     .10000E-03    2.7229        .10685E-06** at limit **
  12  Prefactor     .10001E-03    149.64       -.20485E-04** at limit **
  13  Prefactor     47.153        84.391        .37995E-06    .61457E-04
  14  Prefactor     6.8291        6.7601        .90121E-07    .90751E-04
  15  norm          2.5141        1.6407       -.68038E-07    .13447E-03
  16  norm          2.6378        159.64       -.36251E-05   -.39329E-04
  17  Prefactor     1.6189        3.0160        .24333E-06    .12001E-03
  18  norm          .10000E-03    2.6534       -.45687E-07** at limit **
  19  Prefactor     9.0611        4.8710        .12455E-05    .11092E-02
  20  Prefactor     .87459        12.396       -.31632E-05    .51413E-03
  21  norm          3.0426        22.867        .67559E-06    .25742E-04
  22  Normalizat    1.0198        .19392       -.18495E-05    .28224E-03
  23  Prefactor     .97263        .99149E-01    .40869E-06    .40530E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42283
  Prefactor  = 8.19629
  norm       = 0.0107915
  Prefactor  = 40.7301
  norm       = 7.58058
  norm       = 0.0001
  Prefactor  = 39.8755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.2379
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 47.1525
  Prefactor  = 6.82914
  norm       = 2.51409
  norm       = 2.63783
  Prefactor  = 1.61893
  norm       = 0.0001
  Prefactor  = 9.0611
  Prefactor  = 0.874588
  norm       = 3.04255
  Normalizat = 1.01979
  Prefactor  = 0.972627
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.663     FROM HESSE     STATUS=OK           382 CALLS     3035 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4228        1.2887        .76659E-04   -1.5397    
   2  Prefactor     8.1963        30.897        .14002E-03   -1.5135    
   3  norm          .10792E-01    10.660        .63278E-01   -1.5687    
   4  Prefactor     40.730        51.264        .62814E-04   -1.4431    
   5  norm          7.5806        5.8809        .14569E-03   -1.5157    
   6  norm          .10000E-03    31.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.875        59.052        .63495E-04   -1.4444    
   8  Prefactor     .10000E-03    41.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.238        67.755        .60923E-04   -1.4392    
  11  Prefactor     .10000E-03    2.7295        .15353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    149.72        .41798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.153        83.953        .58323E-04   -1.4334    
  14  Prefactor     6.8291        6.7600        .15355E-03   -1.5185    
  15  norm          2.5141        1.6368        .95689E-04   -1.5391    
  16  norm          2.6378        163.06        .25485E-03   -1.5383    
  17  Prefactor     1.6189        2.9820        .21879E-03   -1.5453    
  18  norm          .10000E-03    2.6554        .15152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.0611        4.8906        .66571E-03   -1.5106    
  20  Prefactor     .87459        74.740        .55843E-02   -1.5521    
  21  norm          3.0426        22.935        .23269E-03   -1.5359    
  22  Normalizat    1.0198        .22686        .33476E-03   -.92371    
  23  Prefactor     .97263        .11758        .17790E-03   -.93648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01681e-08
Minuit parameter uncertainties:
  1  1.28873
  2  30.9574
  3  0.675308
  4  51.3194
  5  5.8813
  6  9.62445e-07
  7  59.1391
  8  1.51831e-05
  9  1.60759e-05
  10  67.8761
  11  4.04542e-06
  12  0.0020166
  13  84.1649
  14  6.76071
  15  1.63684
  16  41.5974
  17  2.98227
  18  2.42502e-06
  19  4.89086
  20  16.19
  21  16.7156
  22  0.227079
  23  0.117606
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.518e-05  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.726e-01  1.176e-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.020e+00  2.271e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958545/likelihoodResults_605318401_605577601_4FGL_J1738.3+3228_daily_bin1412.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) = 9074.66283105
delta logL = -0.000116020029964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9074.66271506
delta logL = -3.26454028254e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5209       1.0000          .0000       10.000    
     3 'Normalizat'    1.0198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97263       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=   9074.663     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.895        .90712E-02** at limit **
   2  Index         2.5125        6.2449        .50000        .18460E-05
   3  Normalizat    1.0198        .18351        .75645E-01    .26541E-04
   4  Prefactor     .97263        .96047E-01    .45924E-01    .34662E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51247
  Normalizat = 1.01978
  Prefactor  = 0.972628
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.663     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5125        6.2562        .50000       -.52072    
   3  Normalizat    1.0198        .21527        .33476E-03   -.92371    
   4  Prefactor     .97263        .11286        .17790E-03   -.93648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55474e-12
Minuit parameter uncertainties:
  1  1.60548e-05
  2  4.54779
  3  0.215458
  4  0.112884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958545': 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) = 9074.66271505
delta logL = -2.44108377956e-08

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.605e-05  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.512e+00  4.548e+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:  9.726e-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.020e+00  2.155e-01  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/958545/cmap_HighResolution_605318401_605577601_4FGL_J1738.3+3228_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2021-09-18 02:01:27.042742', job_id='958545', GAL2='0.97', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631955687.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-2.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1412' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 958545: <4FGL_J1738.3+3228_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1412 264.584 32.4823 605318401 605577601 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 :                                   949.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

