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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1329
RA = 264.584, Dec = 32.4823
tmin = 583804801, tmax = 584064001
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='957429', job_status='RUN', time_executed='2021-09-18 01:43:24.389971', time_epoch_executed='1631954604.39' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957429

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957429/ft1_4FGL_J1738.3+3228_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957429/ft2_4FGL_J1738.3+3228_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957429/ft1_4FGL_J1738.3+3228_daily_bin1329.fits outfile=/scratch/kocevski/957429/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1329.fits ra=264.584 dec=32.4823 rad=12.0 tmin=583804801.0 tmax=584064001.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 2.59
user 2.41
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957429/ft1_filtered_4FGL_J1738.3+3228_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/957429/ft2_4FGL_J1738.3+3228_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/957429/ltcube_583804801_584064001_4FGL_J1738.3+3228_daily_bin1329.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/957429/ft2_4FGL_J1738.3+3228_daily_bin1329.fits
.....................!
real 8.79
user 8.49
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957429/ft1_filtered_4FGL_J1738.3+3228_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/957429/ft2_4FGL_J1738.3+3228_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/957429/ltcube_583804801_584064001_4FGL_J1738.3+3228_daily_bin1329.fits outfile=/scratch/kocevski/957429/expmap_583804801_584064001_4FGL_J1738.3+3228_daily_bin1329.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/957429/ltcube_583804801_584064001_4FGL_J1738.3+3228_daily_bin1329.fits
.....................!
real 143.28
user 139.89
sys 3.16

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/957429/ft1_filtered_4FGL_J1738.3+3228_daily_bin1329.fits scfile=/scratch/kocevski/957429/ft2_4FGL_J1738.3+3228_daily_bin1329.fits outfile=/scratch/kocevski/957429/cmap_583804801_584064001_4FGL_J1738.3+3228_daily_bin1329.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.46
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957429/ft1_filtered_4FGL_J1738.3+3228_daily_bin1329.fits scfile=/scratch/kocevski/957429/ft2_4FGL_J1738.3+3228_daily_bin1329.fits outfile=/scratch/kocevski/957429/cmap_HighResolution_583804801_584064001_4FGL_J1738.3+3228_daily_bin1329.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.45
user 0.31
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6110       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.5474       1.0000         .10000E-03   10000.    
     6 'norm      '    35.533       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .83362E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.597       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0468       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10905E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    24.040       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2301       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2749       1.0000         .10000E-03   10000.    
    21 'norm      '    16.252       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1581       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89591       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=   8121.994     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     2980 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6112        2.3139        .94159E-04    .49503E-05
   2  Prefactor     .10000E-03    27.763        .18142E-02** at limit **
   3  norm          2.2501        6.8224        .13696E-02    .32090E-04
   4  Prefactor     .10000E-03    127.57        .36285E-03** at limit **
   5  norm          7.5466        5.6745        .72989E-03    .97271E-04
   6  norm          35.553        67.876        .67230E-04    .94697E-05
   7  Prefactor     .10000E-03    60.318        .18043    ** at limit **
   8  Prefactor     12.615        187.81        .11286E-03    .75550E-05
   9  Prefactor     .10000E-03    8.1007        .18142E-02** at limit **
  10  Prefactor     .10000E-03    12.585        .18142E-02** at limit **
  11  Prefactor     6.0471        7.5100        .16328E-03    .26458E-05
  12  Prefactor     .10000E-03    112.60        .36285E-03** at limit **
  13  Prefactor     .10000E-03    108.71        .18142E-02** at limit **
  14  Prefactor     .10000E-03    17.995        .32006E-02** at limit **
  15  norm          .10000E-03    1.6323        .13932E-02** at limit **
  16  norm          23.989        44.708        .81698E-04   -.80710E-05
  17  Prefactor     .10000E-03    1.3568        .10240E-02** at limit **
  18  norm          1.2300        10.176        .40550E-03   -.66446E-05
  19  Prefactor     .10000E-03    1.4511        .10574E-02** at limit **
  20  Prefactor     9.2725        12.495        .65798E-03    .90538E-05
  21  norm          16.258        21.211        .99348E-04    .14830E-05
  22  Normalizat    1.1579        .22432        .30313E-03    .93086E-04
  23  Prefactor     .89602        .11381        .17647E-03    .67707E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.61124
  Prefactor  = 0.0001
  norm       = 2.25011
  Prefactor  = 0.0001
  norm       = 7.54656
  norm       = 35.553
  Prefactor  = 0.0001
  Prefactor  = 12.6151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.04712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 23.9891
  Prefactor  = 0.0001
  norm       = 1.22998
  Prefactor  = 0.0001
  Prefactor  = 9.27255
  norm       = 16.2576
  Normalizat = 1.15786
  Prefactor  = 0.896025
 **********
 **   18 **HESSE 
 **********

 FCN=   8121.994     FROM HESSE     STATUS=OK           360 CALLS     3340 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6112        2.3138        .37664E-05   -1.5278    
   2  Prefactor     .10000E-03    27.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2501        6.8172        .54785E-04   -1.5408    
   4  Prefactor     .10000E-03    127.58        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.5466        5.6873        .29196E-04   -1.5158    
   6  norm          35.553        67.875        .13446E-04   -1.4515    
   7  Prefactor     .10000E-03    66.073        .17064       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.615        187.08        .45144E-05   -1.4997    
   9  Prefactor     .10000E-03    8.1021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0471        7.5099        .65312E-05   -1.5216    
  12  Prefactor     .10000E-03    112.60        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    108.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.157        .64013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6463        .27863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.989        44.696        .32679E-05   -1.4728    
  17  Prefactor     .10000E-03    1.3568        .20479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2300        10.168        .16220E-04   -1.5486    
  19  Prefactor     .10000E-03    1.4512        .21148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.2725        12.491        .26319E-04   -1.5099    
  21  norm          16.258        21.211        .99348E-04   -1.4901    
  22  Normalizat    1.1579        .22444        .12125E-04   -.87915    
  23  Prefactor     .89602        .11389        .70590E-05   -.96280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71438e-10
Minuit parameter uncertainties:
  1  2.31389
  2  1.92985e-05
  3  6.81956
  4  8.41636e-05
  5  5.68775
  6  68.0227
  7  0.000273987
  8  97.5287
  9  1.53668e-05
  10  4.45658e-06
  11  7.51106
  12  0.000336135
  13  0.000120772
  14  0.000128918
  15  4.99742e-05
  16  44.7587
  17  6.66198e-07
  18  7.07436
  19  5.70741e-07
  20  12.495
  21  21.2208
  22  0.224627
  23  0.113917
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.262e+01  9.753e+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:  8.960e-01  1.139e-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.158e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/957429/likelihoodResults_583804801_584064001_4FGL_J1738.3+3228_daily_bin1329.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) = 8121.85815173
delta logL = 0.135488846196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8121.79156238
delta logL = 0.20207819232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37687       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9364       1.0000          .0000       10.000    
     3 'Normalizat'    1.1141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90964       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=   8121.792     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      289 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34871        7.9991        .10757E-01    .24871E-02
   2  Index         4.9696        2.5642        .13092        .17469E-03
   3  Normalizat    1.1147        .32574E-01    .69693E-01   -.12710E-04
   4  Prefactor     .90937        .16993E-01    .45128E-01   -.44200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.348709
  Index      = 4.96964
  Normalizat = 1.11466
  Prefactor  = 0.909367
 **********
 **   18 **HESSE 
 **********

 FCN=   8121.792     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      322 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34871        39.518        .78535E-04   -1.5590    
   2  Index         4.9696        7.4150        .74752E-02   -.60728E-02
   3  Normalizat    1.1147        .16344        .30837E-03   -.89283    
   4  Prefactor     .90937        .82872E-01    .17532E-03   -.95815    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69297e-06
Minuit parameter uncertainties:
  1  7.42828
  2  9.00759
  3  0.163511
  4  0.0828837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957429': 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) = 8121.79154353
delta logL = 0.202097043591

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  3.487e-01  7.428e+00  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  4.970e+00  9.008e+00  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  9.094e-01  8.288e-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.115e+00  1.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/957429/cmap_HighResolution_583804801_584064001_4FGL_J1738.3+3228_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.74e-08', time_completed='2021-09-18 01:55:10.708977', job_id='957429', GAL2='0.91', fit_tolerance='1e-08', EG2='1.11', EG='1.16', time_epoch_completed='1631955310.71', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.02e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1329' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:55:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 957429: <4FGL_J1738.3+3228_daily_bin1329> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1329 264.584 32.4823 583804801 584064001 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 :                                   694.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            860 sec.

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

