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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1045
RA = 264.584, Dec = 32.4823
tmin = 510192001, tmax = 510451201
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='957014', job_status='RUN', time_executed='2021-09-18 01:40:37.546091', time_epoch_executed='1631954437.55' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957014

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957014/ft1_4FGL_J1738.3+3228_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957014/ft2_4FGL_J1738.3+3228_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957014/ft1_4FGL_J1738.3+3228_daily_bin1045.fits outfile=/scratch/kocevski/957014/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1045.fits ra=264.584 dec=32.4823 rad=12.0 tmin=510192001.0 tmax=510451201.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 4.30
user 4.09
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957014/ft1_filtered_4FGL_J1738.3+3228_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/957014/ft2_4FGL_J1738.3+3228_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/957014/ltcube_510192001_510451201_4FGL_J1738.3+3228_daily_bin1045.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/957014/ft2_4FGL_J1738.3+3228_daily_bin1045.fits
.....................!
real 11.90
user 11.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957014/ft1_filtered_4FGL_J1738.3+3228_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/957014/ft2_4FGL_J1738.3+3228_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/957014/ltcube_510192001_510451201_4FGL_J1738.3+3228_daily_bin1045.fits outfile=/scratch/kocevski/957014/expmap_510192001_510451201_4FGL_J1738.3+3228_daily_bin1045.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/957014/ltcube_510192001_510451201_4FGL_J1738.3+3228_daily_bin1045.fits
.....................!
real 190.52
user 185.41
sys 4.71

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/957014/ft1_filtered_4FGL_J1738.3+3228_daily_bin1045.fits scfile=/scratch/kocevski/957014/ft2_4FGL_J1738.3+3228_daily_bin1045.fits outfile=/scratch/kocevski/957014/cmap_510192001_510451201_4FGL_J1738.3+3228_daily_bin1045.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/957014/ft1_filtered_4FGL_J1738.3+3228_daily_bin1045.fits scfile=/scratch/kocevski/957014/ft2_4FGL_J1738.3+3228_daily_bin1045.fits outfile=/scratch/kocevski/957014/cmap_HighResolution_510192001_510451201_4FGL_J1738.3+3228_daily_bin1045.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.56
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.642       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.8418       1.0000         .10000E-03   10000.    
     6 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    101.46       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.688       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0217       1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.155       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3992       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.205       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1878       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5554       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.643       1.0000         .10000E-03   10000.    
    21 'norm      '    44.798       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .36968       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1518       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=   6998.831     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2583 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2631        1.7588       -.73668E-08   -.24204E-04
   2  Prefactor     .10000E-03    30.809       -.32462E-06** at limit **
   3  norm          10.636        11.419       -.63265E-07    .16715E-05
   4  Prefactor     .10000E-03    129.73       -.29780E-05** at limit **
   5  norm          6.8459        6.3686       -.47630E-06    .10586E-04
   6  norm          .10000E-03    48.968       -.41465E-06** at limit **
   7  Prefactor     .10000E-03    61.767        .61748E-06** at limit **
   8  Prefactor     101.68        99.116        .44852E-05    .15993E-03
   9  Prefactor     .12741        13.391       -.30523E-06    .14492E-03
  10  Prefactor     43.683        54.892       -.11390E-05   -.16911E-04
  11  Prefactor     8.3349        8.0086       -.42428E-07   -.86591E-05
  12  Prefactor     2.9922        81.963       -.36510E-06    .90509E-06
  13  Prefactor     64.182        79.067       -.39960E-06    .10130E-04
  14  Prefactor     .10000E-03    10.496       -.19822E-06** at limit **
  15  norm          2.4007        1.7130       -.34439E-06    .65643E-05
  16  norm          .10000E-03    24.574       -.32052E-07** at limit **
  17  Prefactor     11.207        6.7946       -.44547E-06    .28412E-04
  18  norm          4.1872        7.1542        .50828E-05   -.33594E-04
  19  Prefactor     3.5548        4.8133        .18138E-06    .90845E-06
  20  Prefactor     21.639        23.796       -.17475E-05   -.38901E-04
  21  norm          44.810        37.358        .92254E-07   -.10941E-04
  22  Normalizat    .37013        .26096        .13117E-05    .24829E-04
  23  Prefactor     1.1517        .13163       -.17706E-05    .61524E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26306
  Prefactor  = 0.0001
  norm       = 10.6356
  Prefactor  = 0.0001
  norm       = 6.84589
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.677
  Prefactor  = 0.127406
  Prefactor  = 43.6832
  Prefactor  = 8.33492
  Prefactor  = 2.99217
  Prefactor  = 64.182
  Prefactor  = 0.0001
  norm       = 2.40066
  norm       = 0.0001
  Prefactor  = 11.207
  norm       = 4.18716
  Prefactor  = 3.55479
  Prefactor  = 21.6387
  norm       = 44.81
  Normalizat = 0.370129
  Prefactor  = 1.15166
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.831     FROM HESSE     STATUS=OK           384 CALLS     2967 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2631        1.7570        .79281E-04   -1.5347    
   2  Prefactor     .10000E-03    30.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.636        11.302        .12282E-03   -1.5056    
   4  Prefactor     .10000E-03    130.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8459        6.3254        .15339E-03   -1.5185    
   6  norm          .10000E-03    48.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    61.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     101.68        103.10        .19957E-03   -1.3688    
   9  Prefactor     .12741        19.202        .81639E-01   -1.5637    
  10  Prefactor     43.683        54.803        .60654E-04   -1.4385    
  11  Prefactor     8.3349        8.0024        .13884E-03   -1.5130    
  12  Prefactor     2.9922        78.407        .23346E-03   -1.5362    
  13  Prefactor     64.182        77.594        .50102E-04   -1.4104    
  14  Prefactor     .10000E-03    10.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4007        1.7134        .89615E-04   -1.5398    
  16  norm          .10000E-03    24.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.207        6.7746        .11968E-03   -1.5038    
  18  norm          4.1872        7.1713        .98468E-03   -1.5299    
  19  Prefactor     3.5548        4.7777        .19581E-03   -1.5331    
  20  Prefactor     21.639        23.709        .86097E-04   -1.4777    
  21  norm          44.810        37.422        .59901E-04   -1.4368    
  22  Normalizat    .37013        .25182        .49023E-03   -1.1887    
  23  Prefactor     1.1517        .13126        .15575E-03   -.87832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10379e-10
Minuit parameter uncertainties:
  1  1.75703
  2  4.25738e-05
  3  11.3045
  4  1.54687e-05
  5  6.32599
  6  1.85369e-05
  7  0.000196001
  8  103.285
  9  3.12798
  10  54.8664
  11  8.00341
  12  30.6781
  13  77.717
  14  6.69052e-05
  15  1.71347
  16  1.94653e-05
  17  6.77504
  18  7.17278
  19  4.77824
  20  23.7189
  21  37.4419
  22  0.252593
  23  0.131301
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.017e+02  1.033e+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.152e+00  1.313e-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:  3.701e-01  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 4.20e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/957014/likelihoodResults_510192001_510451201_4FGL_J1738.3+3228_daily_bin1045.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) = 6998.15692669
delta logL = 0.67457230135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6998.14102608
delta logL = 0.690472912674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.145       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3293       1.0000          .0000       10.000    
     3 'Normalizat'    .32212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6998.141     FROM MIGRAD    STATUS=FAILED        93 CALLS      320 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.173        87.808        .71796E-04   -.14251E-05
   2  Index         3.3290        1.3003        .42759E-02    .67764E-03
   3  Normalizat    .32218        .24003        .52442E-03    .45959E-05
   4  Prefactor     1.1662        .12835        .15482E-03   -.12336E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6998.141     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      398 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.173        87.808        .48116E-03   -1.4591    
   2  Index         3.3290        1.3003        .62828E-03   -.34076    
   3  Normalizat    .32218        .24003        .57660E-03   -1.2154    
   4  Prefactor     1.1662        .12835        .16878E-03   -.87377    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6998.141     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      434 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.173        57.270        .28718E-05   -.15835E-05
   2  Index         3.3290        .85171        .85518E-03    .16219E-05
   3  Normalizat    .32218        .23961        .20977E-04    .65036E-07
   4  Prefactor     1.1662        .12809        .61928E-05   -.14686E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1728
  Index      = 3.329
  Normalizat = 0.322175
  Prefactor  = 1.16623
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.141     FROM HESSE     STATUS=OK            23 CALLS      457 TOTAL
                     EDM=   .49E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.173        53.398        .57437E-06   -1.4591    
   2  Index         3.3290        .79555        .34207E-04   -.34076    
   3  Normalizat    .32218        .23960        .20977E-04   -1.2154    
   4  Prefactor     1.1662        .12807        .61928E-05   -.87377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93032e-14
Minuit parameter uncertainties:
  1  53.4798
  2  0.799383
  3  0.240367
  4  0.128106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957014': 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) = 6998.14102584
delta logL = 0.690473155857

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.117e+01  5.348e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  3.329e+00  7.994e-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:  1.166e+00  1.281e-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:  3.222e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 264.584 32.482
Photon Index (Free Index): 3.33 +/- 0.80
Photon Flux (Free Index): 7.71e-08 +/- 5.54e-08
Energy Flux (Free Index): 1.35e-05 +/- 9.50e-06

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/957014/cmap_HighResolution_510192001_510451201_4FGL_J1738.3+3228_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.90e-03', comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='1.35e-05', photon_flux_error='4.20e-08', dlogl='6.90e-01', energy_flux='1.27e-05', photon_flux2='7.71e-08', job_status='DONE', time_completed='2021-09-18 01:54:12.683149', photon_index_error2='0.80', photon_index2='3.33', ts='1.45', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='9.50e-06', EG='0.37', time_epoch_completed='1631955252.68', return_code='0', job_id='957014', GAL2='1.17', EG2='0.32', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.54e-08', ts2='2.95', photon_index='2.45' WHERE bin_id='1045' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:54:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 957014: <4FGL_J1738.3+3228_daily_bin1045> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1045 264.584 32.4823 510192001 510451201 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 :                                   807.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

