/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 8 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1738.3+3228_daily_bin210
RA = 264.584, Dec = 32.4823
tmin = 293760001, tmax = 294019201
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='951575', job_status='RUN', time_executed='2021-09-18 01:20:37.518489', time_epoch_executed='1631953237.52' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951575/ft1_4FGL_J1738.3+3228_daily_bin210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951575/ft2_4FGL_J1738.3+3228_daily_bin210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951575/ft1_4FGL_J1738.3+3228_daily_bin210.fits outfile=/scratch/kocevski/951575/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin210.fits ra=264.584 dec=32.4823 rad=12.0 tmin=293760001.0 tmax=294019201.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.57
user 3.34
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951575/ft1_filtered_4FGL_J1738.3+3228_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/951575/ft2_4FGL_J1738.3+3228_daily_bin210.fits sctable="SC_DATA" expcube=/scratch/kocevski/951575/ltcube_293760001_294019201_4FGL_J1738.3+3228_daily_bin210.fits outfile=/scratch/kocevski/951575/expmap_293760001_294019201_4FGL_J1738.3+3228_daily_bin210.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/951575/ltcube_293760001_294019201_4FGL_J1738.3+3228_daily_bin210.fits
.....................!
real 191.87
user 186.20
sys 5.30

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/951575/ft1_filtered_4FGL_J1738.3+3228_daily_bin210.fits scfile=/scratch/kocevski/951575/ft2_4FGL_J1738.3+3228_daily_bin210.fits outfile=/scratch/kocevski/951575/cmap_293760001_294019201_4FGL_J1738.3+3228_daily_bin210.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951575/ft1_filtered_4FGL_J1738.3+3228_daily_bin210.fits scfile=/scratch/kocevski/951575/ft2_4FGL_J1738.3+3228_daily_bin210.fits outfile=/scratch/kocevski/951575/cmap_HighResolution_293760001_294019201_4FGL_J1738.3+3228_daily_bin210.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2490       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7906       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94331E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5117       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    96.082       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.564       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13323E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2982       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12128E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5433       1.0000         .10000E-03   10000.    
    18 'norm      '    7.8627       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    30.067       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3613       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70233       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=   8598.747     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2643 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2489        1.6948       -.11699E-08    .90700E-05
   2  Prefactor     .10000E-03    21.359        .60439E-07** at limit **
   3  norm          8.7925        7.1579       -.15846E-06    .57468E-04
   4  Prefactor     .10595E-03    46.113       -.37710E-05** at limit **
   5  norm          5.5123        6.4886        .96816E-06    .16502E-03
   6  norm          .10000E-03    197.55        .23043E-05** at limit **
   7  Prefactor     96.047        87.157       -.20062E-06    .23362E-04
   8  Prefactor     16.611        71.276       -.29238E-05    .74387E-05
   9  Prefactor     14.125        16.214        .26304E-06    .27709E-04
  10  Prefactor     .10000E-03    13.865       -.86592E-07** at limit **
  11  Prefactor     .10000E-03    14.824       -.92544E-07** at limit **
  12  Prefactor     63.082        32.620        .22656E-05    .11279E-03
  13  Prefactor     .10003E-03    594.79       -.20277E-04** at limit **
  14  Prefactor     9.2980        7.7725       -.83702E-07    .27177E-04
  15  norm          .10000E-03    .36442       -.13654E-07** at limit **
  16  norm          .10000E-03    28.532       -.50386E-07** at limit **
  17  Prefactor     2.5430        3.4028        .30890E-07    .62567E-05
  18  norm          7.8632        7.6274        .44518E-07    .84006E-05
  19  Prefactor     .10000E-03    2.1857       -.12974E-07** at limit **
  20  Prefactor     .10000E-03    6.7073       -.13093E-07** at limit **
  21  norm          30.064        24.193        .98761E-06   -.18024E-04
  22  Normalizat    1.3614        .19031        .68811E-07    .13361E-03
  23  Prefactor     .70231        .93590E-01   -.44681E-06    .14668E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.24895
  Prefactor  = 0.0001
  norm       = 8.79247
  Prefactor  = 0.000105953
  norm       = 5.51227
  norm       = 0.0001
  Prefactor  = 96.0467
  Prefactor  = 16.6114
  Prefactor  = 14.1254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.0815
  Prefactor  = 0.000100026
  Prefactor  = 9.29798
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.54302
  norm       = 7.86319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.0638
  Normalizat = 1.36142
  Prefactor  = 0.702312
 **********
 **   18 **HESSE 
 **********

 FCN=   8598.747     FROM HESSE     STATUS=OK           376 CALLS     3019 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2489        1.6967        .74330E-04   -1.5296    
   2  Prefactor     .10000E-03    21.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.7925        7.1498        .13519E-03   -1.5115    
   4  Prefactor     .10595E-03    35.471        .16127       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5123        6.7171        .85569E-03   -1.5238    
   6  norm          .10000E-03    198.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     96.047        87.012        .41005E-04   -1.3745    
   8  Prefactor     16.611        70.891        .98410E-04   -1.4893    
   9  Prefactor     14.125        16.215        .10656E-03   -1.4956    
  10  Prefactor     .10000E-03    13.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     63.082        33.319        .50552E-04   -1.4118    
  13  Prefactor     .10003E-03    638.91        .36358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2980        7.7791        .13143E-03   -1.5098    
  15  norm          .10000E-03    .36478        .54661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5430        3.3915        .19161E-03   -1.5389    
  18  norm          7.8632        7.6349        .14300E-03   -1.5147    
  19  Prefactor     .10000E-03    2.2542        .26766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.7252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          30.064        24.102        .73068E-04   -1.4611    
  22  Normalizat    1.3614        .22466        .28368E-03   -.81751    
  23  Prefactor     .70231        .10979        .19250E-03   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54599e-10
Minuit parameter uncertainties:
  1  1.69672
  2  8.24594e-06
  3  7.15053
  4  0.0290796
  5  6.71804
  6  8.24783e-05
  7  87.1275
  8  68.771
  9  16.2204
  10  1.22244e-05
  11  1.21335e-06
  12  33.3284
  13  0.00817017
  14  7.7799
  15  2.68206e-07
  16  5.10639e-06
  17  3.3918
  18  7.63585
  19  1.3641e-07
  20  9.05496e-07
  21  24.1098
  22  0.224826
  23  0.109827
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.661e+01  6.877e+01  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:  7.023e-01  1.098e-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.361e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/951575/likelihoodResults_293760001_294019201_4FGL_J1738.3+3228_daily_bin210.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8598.72653388
delta logL = 0.0207827031445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8597.75204546
delta logL = 0.995271128444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.5120       1.0000          .0000       10.000    
     3 'Normalizat'    1.2936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72569       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=   8597.752     FROM MIGRAD    STATUS=CONVERGED    271 CALLS      596 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .70145E-04    .34621E-03** at limit **
   2  Index         8.5120        .37342        .18848       -.17138E-03
   3  Normalizat    1.2937        .18396        .65480E-01   -.29118E-04
   4  Prefactor     .72565        .92223E-01    .42742E-01   -.44061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.512
  Normalizat = 1.2937
  Prefactor  = 0.725649
 **********
 **   18 **HESSE 
 **********

 FCN=   8597.752     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      637 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .17259E-01    .18848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.5120        5.4369        .70745E-02   -10.204    
   3  Normalizat    1.2937        .11281        .28967E-03   -.83755    
   4  Prefactor     .72565        .56958E-01    .18966E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69184e-09
Minuit parameter uncertainties:
  1  5.48556e-10
  2  4.60146
  3  0.112835
  4  0.0569629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951575': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8597.75204375
delta logL = 0.99527283564

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  5.486e-10  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  8.512e+00  4.601e+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:  7.256e-01  5.696e-02  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.294e+00  1.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 264.584 32.482
Photon Index (Free Index): 8.51 +/- 4.60
Photon Flux (Free Index): 5.59e-08 +/- 6.21e-07
Energy Flux (Free Index): 6.41e-06 +/- 7.10e-05

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/951575/cmap_HighResolution_293760001_294019201_4FGL_J1738.3+3228_daily_bin210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', comment='SUCCESS', energy_flux2='6.41e-06', dlogl='9.95e-01', photon_flux2='5.59e-08', job_status='DONE', time_completed='2021-09-18 01:36:31.719144', photon_index_error2='4.60', photon_index2='8.51', ts='0.07', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='8.22e-08', energy_flux_error2='7.10e-05', EG='1.36', time_epoch_completed='1631954191.72', return_code='0', job_id='951575', GAL2='0.73', EG2='1.29', return_code2='102', photon_flux_error2='6.21e-07', ts2='2.15', photon_index='2.45' WHERE bin_id='210' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:36:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 951575: <4FGL_J1738.3+3228_daily_bin210> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin210 264.584 32.4823 293760001 294019201 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 :                                   952.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             336.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

