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


Performing analysis on: 4FGL_J1738.0+8717_monthly_bin104
RA = 264.501, Dec = 87.2851
tmin = 506563201, tmax = 509155201
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='674833', job_status='RUN', time_executed='2021-10-31 06:30:51.990749', time_epoch_executed='1635687051.99' WHERE source_name='4FGL J1738.0+8717' and cadence='monthly' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674833

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674833/ft1_4FGL_J1738.0+8717_monthly_bin104.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674833/ft1_4FGL_J1738.0+8717_monthly_bin104.fits outfile=/scratch/kocevski/674833/ft1_filteredMKT_4FGL_J1738.0+8717_monthly_bin104.fits ra=264.501 dec=87.2851 rad=12.0 tmin=506563201.0 tmax=509155201.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 33.47
user 31.78
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.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/674833/ft1_filteredMKT_4FGL_J1738.0+8717_monthly_bin104.fits evtable="EVENTS" outfile="/scratch/kocevski/674833/ft1_filtered_4FGL_J1738.0+8717_monthly_bin104.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.83
user 0.65
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/674833/ft1_filtered_4FGL_J1738.0+8717_monthly_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/674833/ltcube_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.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/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits
.....................!
real 112.44
user 109.96
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674833/ft1_filtered_4FGL_J1738.0+8717_monthly_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/674833/ltcube_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.fits outfile=/scratch/kocevski/674833/expmap_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.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/674833/ltcube_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.fits
.....................!
real 193.61
user 186.15
sys 4.47

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 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1738.0+8717 @ 264.501 87.2851

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/674833/ft1_filtered_4FGL_J1738.0+8717_monthly_bin104.fits scfile=/scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits outfile=/scratch/kocevski/674833/cmap_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.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.501 yref=87.2851 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.79
user 0.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/674833/ft1_filtered_4FGL_J1738.0+8717_monthly_bin104.fits scfile=/scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits outfile=/scratch/kocevski/674833/cmap_HighResolution_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.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.501 yref=87.2851 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.84
user 0.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/674833/ft1_filtered_4FGL_J1738.0+8717_monthly_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/674833/Model_4FGL_J1738.0+8717_monthly_bin104.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/674833/ft1_filtered_4FGL_J1738.0+8717_monthly_bin104.fits.....................!
real 1437.45
user 1414.11
sys 1.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/674833/ft1_filtered_4FGL_J1738.0+8717_monthly_bin104.fits', '/scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits', expMap='/scratch/kocevski/674833/expmap_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.fits', expCube='/scratch/kocevski/674833/ltcube_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/674833/Model_4FGL_J1738.0+8717_monthly_bin104.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.0+8717'

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  5.760e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
502        Scale:  1.993e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/674833/ft1_filtered_4FGL_J1738.0+8717_monthly_bin104.fits
Spacecraft file(s): /scratch/kocevski/674833/ft2_4FGL_J1738.0+8717_monthly_bin104.fits
Exposure map: /scratch/kocevski/674833/expmap_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.fits
Exposure cube: /scratch/kocevski/674833/ltcube_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/674833/Model_4FGL_J1738.0+8717_monthly_bin104.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) = 118207.603527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    2.8324       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7629       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3719       1.0000         .10000E-03   10000.    
     6 'norm      '    3.1037       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.986       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4453       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5611       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41790       1.0000         .10000E-03   10000.    
    15 'norm      '    13.919       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2351       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.094       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1521       1.0000         .10000E-03   10000.    
    19 'norm      '    .82375       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8063       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7866       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97861       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97140       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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=   118207.1     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     2590 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9062        .18142E-02** at limit **
   2  Prefactor     2.8326        1.8142        .12082E-02    .84820E-02
   3  Prefactor     .10000E-03    1.9910        .36285E-03** at limit **
   4  Prefactor     7.7629        2.3046        .71961E-03    .23349E-02
   5  Prefactor     1.3723        2.7638        .37215E-03    .45603E-03
   6  norm          3.1036        1.6727        .23018E-03    .11593E-02
   7  Prefactor     20.986        4.1430        .87434E-04    .40152E-03
   8  Prefactor     .10000E-03    1.1464        .36285E-03** at limit **
   9  norm          1.4453        .62372        .17401E-03    .56866E-03
  10  Prefactor     3.5897        4.6695        .21328E-03    .27292E-04
  11  Prefactor     .10000E-03    1.5617        .18142E-02** at limit **
  12  Prefactor     1.5611        3.2653        .34055E-03    .20778E-03
  13  Prefactor     .10000E-03    4.3823        .18142E-02** at limit **
  14  Prefactor     .41035        3.5046        .19832        .16024E-02
  15  norm          13.919        5.0975        .10736E-03    .76244E-04
  16  Prefactor     7.2350        1.0954        .14912E-04    .39277E-03
  17  Prefactor     15.094        7.0847        .10309E-03    .33525E-04
  18  Prefactor     6.1484        11.784        .16186E-03    .21353E-04
  19  norm          .82374        .17518        .64188E-04    .13631E-02
  20  norm          2.8065        .87719        .17292E-03    .54491E-03
  21  Prefactor     2.7868        3.2216        .12188E-02    .36965E-02
  22  Normalizat    .97864        .55985E-01    .34604E-03    .67232E-03
  23  Prefactor     .97139        .24559E-01    .16036E-03    .20545E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.8326
  Prefactor  = 0.0001
  Prefactor  = 7.76291
  Prefactor  = 1.37225
  norm       = 3.10363
  Prefactor  = 20.9855
  Prefactor  = 0.0001
  norm       = 1.44527
  Prefactor  = 3.5897
  Prefactor  = 0.0001
  Prefactor  = 1.56111
  Prefactor  = 0.0001
  Prefactor  = 0.410348
  norm       = 13.9193
  Prefactor  = 7.23499
  Prefactor  = 15.0944
  Prefactor  = 6.1484
  norm       = 0.823737
  norm       = 2.80646
  Prefactor  = 2.78682
  Normalizat = 0.978635
  Prefactor  = 0.971388
 **********
 **   18 **HESSE 
 **********

 FCN=   118207.1     FROM HESSE     STATUS=OK           356 CALLS     2946 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8326        1.8135        .48327E-04   -1.5371    
   3  Prefactor     .10000E-03    1.9911        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7629        2.3043        .28784E-04   -1.5151    
   5  Prefactor     1.3723        2.7622        .14886E-04   -1.5474    
   6  norm          3.1036        1.6714        .92070E-05   -1.5356    
   7  Prefactor     20.986        4.1398        .34974E-05   -1.4791    
   8  Prefactor     .10000E-03    1.1465        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4453        .62370        .69604E-05   -1.5468    
  10  Prefactor     3.5897        4.6692        .85311E-05   -1.5329    
  11  Prefactor     .10000E-03    1.5629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5611        3.2652        .13622E-04   -1.5458    
  13  Prefactor     .10000E-03    4.3835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .41035        3.5381        .19677       -1.5580    
  15  norm          13.919        5.0966        .42943E-05   -1.4962    
  16  Prefactor     7.2350        1.0953        .29824E-05   -1.5170    
  17  Prefactor     15.094        7.0848        .41236E-05   -1.4931    
  18  Prefactor     6.1484        11.775        .64743E-05   -1.5212    
  19  norm          .82374        .17517        .25675E-05   -1.5526    
  20  norm          2.8065        .87693        .69166E-05   -1.5373    
  21  Prefactor     2.7868        3.2200        .48750E-04   -1.5374    
  22  Normalizat    .97864        .55999E-01    .13841E-04   -.93750    
  23  Prefactor     .97139        .24568E-01    .32072E-04   -.93689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75982e-08
Minuit parameter uncertainties:
  1  2.44843e-06
  2  1.81357
  3  2.63445e-05
  4  2.30431
  5  2.76245
  6  1.67139
  7  4.13989
  8  5.07589e-06
  9  0.623699
  10  4.6697
  11  8.73248e-06
  12  3.26555
  13  1.38302e-05
  14  2.40976
  15  5.09676
  16  1.09532
  17  7.08521
  18  11.779
  19  0.175166
  20  0.876934
  21  3.22024
  22  0.0560026
  23  0.0245684
Done.

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

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  6.148e+00  1.178e+01  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
502        Scale:  1.993e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  9.714e-01  2.457e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  9.786e-01  5.600e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 264.501 87.285
Photon Flux Upper Limit: 1.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/674833/likelihoodResults_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.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) = 118206.782216
delta logL = 0.306106881166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 118206.753086
delta logL = 0.335236664934

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   118206.8     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      225 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4491        41.633        .47694E-02    .79878E-03
   2  Index         2.7677        .89838        .22697        .71822E-03
   3  Normalizat    .97355        .85338E-02    .78369E-01    .28705E-03
   4  Prefactor     .97182        .39128E-02    .45914E-01    .11808E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44905
  Index      = 2.76773
  Normalizat = 0.973554
  Prefactor  = 0.971817
 **********
 **   18 **HESSE 
 **********

 FCN=   118206.8     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4491        17.784        .19077E-03   -1.5286    
   2  Index         2.7677        1.5648        .11412E-01   -.46280    
   3  Normalizat    .97355        .52615E-01    .34685E-03   -.93922    
   4  Prefactor     .97182        .24234E-01    .16033E-03   -.93675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05548e-06
Minuit parameter uncertainties:
  1  17.7992
  2  1.59857
  3  0.0526178
  4  0.0242347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674833': 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) = 118206.753086
delta logL = 0.335237079416

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  4.449e+00  1.780e+01  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  2.768e+00  1.599e+00  0.000e+00  1.000e+01 (-1.000e+00)
502        Scale:  1.993e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  9.718e-01  2.423e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  9.736e-01  5.262e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 264.501 87.285
Photon Index (Free Index): 2.77 +/- 1.60
Photon Flux (Free Index): 9.96e-09 +/- 1.05e-08
Energy Flux (Free Index): 2.28e-06 +/- 3.48e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/674833/cmap_HighResolution_506563201_509155201_4FGL_J1738.0+8717_monthly_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-03', comment='SUCCESS', energy_flux2='2.28e-06', dlogl='3.35e-01', photon_flux2='9.96e-09', job_status='DONE', time_completed='2021-10-31 09:14:21.942722', photon_index_error2='1.60', photon_index2='2.77', ts='0.30', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.84e-08', energy_flux_error2='3.48e-06', EG='0.98', time_epoch_completed='1635696861.94', return_code='0', job_id='674833', GAL2='0.97', EG2='0.97', return_code2='0', photon_flux_error2='1.05e-08', ts2='1.01', photon_index='2.20' WHERE bin_id='104' AND source_name='4FGL J1738.0+8717' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 31 09:14:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 674833: <4FGL_J1738.0+8717_monthly_bin104> in cluster <slac> Done

Job <4FGL_J1738.0+8717_monthly_bin104> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Oct 31 06:30:12 2021
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 31 06:30:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 31 06:30:43 2021
Terminated at Sun Oct 31 09:14:22 2021
Results reported at Sun Oct 31 09:14:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.0+8717_monthly_bin104 264.501 87.2851 506563201 509155201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.0+8717 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9659.45 sec.
    Max Memory :                                 643 MB
    Average Memory :                             499.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2951 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   9819 sec.
    Turnaround time :                            9850 sec.

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

