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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1106
RA = 264.584, Dec = 32.4823
tmin = 526003201, tmax = 526262401
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='957097', job_status='RUN', time_executed='2021-09-18 01:40:48.613169', time_epoch_executed='1631954448.61' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957097

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957097/ft1_4FGL_J1738.3+3228_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957097/ft2_4FGL_J1738.3+3228_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957097/ft1_4FGL_J1738.3+3228_daily_bin1106.fits outfile=/scratch/kocevski/957097/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1106.fits ra=264.584 dec=32.4823 rad=12.0 tmin=526003201.0 tmax=526262401.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.73
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957097/ft1_filtered_4FGL_J1738.3+3228_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/957097/ft2_4FGL_J1738.3+3228_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/957097/ltcube_526003201_526262401_4FGL_J1738.3+3228_daily_bin1106.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/957097/ft2_4FGL_J1738.3+3228_daily_bin1106.fits
.....................!
real 12.19
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957097/ft1_filtered_4FGL_J1738.3+3228_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/957097/ft2_4FGL_J1738.3+3228_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/957097/ltcube_526003201_526262401_4FGL_J1738.3+3228_daily_bin1106.fits outfile=/scratch/kocevski/957097/expmap_526003201_526262401_4FGL_J1738.3+3228_daily_bin1106.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/957097/ltcube_526003201_526262401_4FGL_J1738.3+3228_daily_bin1106.fits
.....................!
real 190.72
user 185.18
sys 5.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/957097/ft1_filtered_4FGL_J1738.3+3228_daily_bin1106.fits scfile=/scratch/kocevski/957097/ft2_4FGL_J1738.3+3228_daily_bin1106.fits outfile=/scratch/kocevski/957097/cmap_526003201_526262401_4FGL_J1738.3+3228_daily_bin1106.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/957097/ft1_filtered_4FGL_J1738.3+3228_daily_bin1106.fits scfile=/scratch/kocevski/957097/ft2_4FGL_J1738.3+3228_daily_bin1106.fits outfile=/scratch/kocevski/957097/cmap_HighResolution_526003201_526262401_4FGL_J1738.3+3228_daily_bin1106.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/957097/ft1_filtered_4FGL_J1738.3+3228_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/957097/ft2_4FGL_J1738.3+3228_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/957097/Model_4FGL_J1738.3+3228_daily_bin1106.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/957097/ft1_filtered_4FGL_J1738.3+3228_daily_bin1106.fits.....................!
real 72.32
user 71.00
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10571E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.132       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.659       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.558       1.0000         .10000E-03   10000.    
     8 'Prefactor '    83.731       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.984       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.267       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    71.855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9449       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5353       1.0000         .10000E-03   10000.    
    16 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .41869E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .12417E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4685       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32109       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80008       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0267       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8434.572     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     3079 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    .68510        .28593E-01** at limit **
   2  Prefactor     .10000E-03    8.7272        .18142E-02** at limit **
   3  norm          10.131        9.3764        .12589E-03    .11090E-03
   4  Prefactor     .10000E-03    16.579        .18142E-02** at limit **
   5  norm          13.655        8.8315        .54190E-03    .30894E-03
   6  norm          .10000E-03    62.150        .18142E-02** at limit **
   7  Prefactor     62.664        95.325        .50733E-04   -.95640E-04
   8  Prefactor     83.703        118.51        .43899E-04    .28280E-04
   9  Prefactor     43.979        23.337        .60450E-04    .82750E-05
  10  Prefactor     16.254        59.302        .99304E-04    .10532E-04
  11  Prefactor     .10000E-03    3.0064        .15542E-02** at limit **
  12  Prefactor     71.876        48.701        .47360E-04   -.17793E-03
  13  Prefactor     .10001E-03    103.71        .18142E-02** at limit **
  14  Prefactor     8.9398        13.288        .13401E-03    .26298E-04
  15  norm          3.5351        2.2308        .10465E-03    .23683E-04
  16  norm          .10000E-03    45.344        .18142E-02** at limit **
  17  Prefactor     .10180E-03    9.6450        .52924E-01** at limit **
  18  norm          .10000E-03    22.521        .35460E-02** at limit **
  19  Prefactor     8.4775        5.0227        .13775E-03    .20995E-03
  20  Prefactor     .50439E-01    28.391        .10315        .29330E-03
  21  norm          .10000E-03    16.562        .18142E-02** at limit **
  22  Normalizat    .79986        .25172        .39513E-03    .10249E-03
  23  Prefactor     1.0270        .12424        .17585E-03    .24567E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100048
  Prefactor  = 0.0001
  norm       = 10.131
  Prefactor  = 0.000100001
  norm       = 13.655
  norm       = 0.000100001
  Prefactor  = 62.6644
  Prefactor  = 83.7032
  Prefactor  = 43.9791
  Prefactor  = 16.254
  Prefactor  = 0.0001
  Prefactor  = 71.8756
  Prefactor  = 0.00010001
  Prefactor  = 8.93983
  norm       = 3.53509
  norm       = 0.0001
  Prefactor  = 0.000101804
  norm       = 0.0001
  Prefactor  = 8.47753
  Prefactor  = 0.0504393
  norm       = 0.0001
  Normalizat = 0.799856
  Prefactor  = 1.02697
 **********
 **   18 **HESSE 
 **********

 FCN=   8434.572     FROM HESSE     STATUS=OK           376 CALLS     3455 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    .68814        .28438E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.7272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.131        9.3761        .50354E-05   -1.5071    
   4  Prefactor     .10000E-03    16.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.655        8.8323        .21676E-04   -1.4969    
   6  norm          .10000E-03    62.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.664        95.337        .10147E-04   -1.4123    
   8  Prefactor     83.703        118.55        .87797E-05   -1.3876    
   9  Prefactor     43.979        23.339        .24180E-05   -1.4381    
  10  Prefactor     16.254        59.396        .39722E-05   -1.4901    
  11  Prefactor     .10000E-03    3.0065        .31084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     71.876        48.700        .94719E-05   -1.4010    
  13  Prefactor     .10001E-03    103.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9398        13.288        .53606E-05   -1.5110    
  15  norm          3.5351        2.2308        .41859E-05   -1.5332    
  16  norm          .10000E-03    45.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10180E-03    6.7376        .66036E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    22.928        .70921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.4775        5.0168        .55102E-05   -1.5126    
  20  Prefactor     .50439E-01    24.915        .11114       -1.5663    
  21  norm          .10000E-03    16.565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79986        .25190        .15805E-04   -1.0007    
  23  Prefactor     1.0270        .12430        .70339E-05   -.91836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69956e-09
Minuit parameter uncertainties:
  1  0.000365108
  2  3.66917e-06
  3  9.37747
  4  0.000197765
  5  8.83316
  6  0.000399528
  7  95.5709
  8  118.892
  9  23.3442
  10  59.6133
  11  1.71563e-05
  12  48.7273
  13  0.00198913
  14  13.2927
  15  2.23086
  16  0.000145592
  17  0.00697281
  18  4.65123e-05
  19  5.01709
  20  2.24074
  21  3.79169e-05
  22  0.252268
  23  0.124336
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  8.370e+01  1.189e+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.027e+00  1.243e-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:  7.999e-01  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/957097/likelihoodResults_526003201_526262401_4FGL_J1738.3+3228_daily_bin1106.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) = 8434.56278169
delta logL = 0.00963756753663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8434.55863084
delta logL = 0.0137884232081

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8434.559     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      277 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.662        144.91        .20532E-03    .17718E-05
   2  Index         2.2708        1.1024        .10434E-01    .15752E-03
   3  Normalizat    .80690        .24127        .39358E-03   -.79493E-04
   4  Prefactor     1.0250        .11936        .17600E-03    .16663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.6615
  Index      = 2.27079
  Normalizat = 0.806903
  Prefactor  = 1.02499
 **********
 **   18 **HESSE 
 **********

 FCN=   8434.559     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.662        141.25        .82129E-05   -1.3749    
   2  Index         2.2708        1.0737        .20868E-02   -.57739    
   3  Normalizat    .80690        .24109        .15743E-04   -.99813    
   4  Prefactor     1.0250        .11936        .35200E-04   -.91901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81448e-10
Minuit parameter uncertainties:
  1  141.747
  2  1.0858
  3  0.241405
  4  0.119387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957097': 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) = 8434.55863006
delta logL = 0.0137892049243

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  9.566e+01  1.417e+02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.271e+00  1.086e+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:  1.025e+00  1.194e-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:  8.069e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
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/957097/cmap_HighResolution_526003201_526262401_4FGL_J1738.3+3228_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-18 01:56:33.755547', job_id='957097', GAL2='1.02', fit_tolerance='1e-08', EG2='0.81', EG='0.80', time_epoch_completed='1631955393.76', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.38e-02', ts2='0.73', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1106' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 957097: <4FGL_J1738.3+3228_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1106 264.584 32.4823 526003201 526262401 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 :                                   917.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             324.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

