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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin444
RA = 264.584, Dec = 32.4823
tmin = 354412801, tmax = 354672001
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='953024', job_status='RUN', time_executed='2021-09-18 01:25:38.700323', time_epoch_executed='1631953538.7' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953024

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953024/ft1_4FGL_J1738.3+3228_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953024/ft2_4FGL_J1738.3+3228_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953024/ft1_4FGL_J1738.3+3228_daily_bin444.fits outfile=/scratch/kocevski/953024/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin444.fits ra=264.584 dec=32.4823 rad=12.0 tmin=354412801.0 tmax=354672001.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.88
user 3.21
sys 0.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953024/ft1_filtered_4FGL_J1738.3+3228_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/953024/ft2_4FGL_J1738.3+3228_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/953024/ltcube_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.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/953024/ft2_4FGL_J1738.3+3228_daily_bin444.fits
.....................!
real 12.25
user 11.93
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953024/ft1_filtered_4FGL_J1738.3+3228_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/953024/ft2_4FGL_J1738.3+3228_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/953024/ltcube_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.fits outfile=/scratch/kocevski/953024/expmap_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.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/953024/ltcube_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.fits
.....................!
real 191.91
user 186.69
sys 4.89

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/953024/ft1_filtered_4FGL_J1738.3+3228_daily_bin444.fits scfile=/scratch/kocevski/953024/ft2_4FGL_J1738.3+3228_daily_bin444.fits outfile=/scratch/kocevski/953024/cmap_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=264.584 yref=32.4823 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953024/ft1_filtered_4FGL_J1738.3+3228_daily_bin444.fits', '/scratch/kocevski/953024/ft2_4FGL_J1738.3+3228_daily_bin444.fits', expMap='/scratch/kocevski/953024/expmap_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.fits', expCube='/scratch/kocevski/953024/ltcube_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953024/Model_4FGL_J1738.3+3228_daily_bin444.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/953024/ft1_filtered_4FGL_J1738.3+3228_daily_bin444.fits
Spacecraft file(s): /scratch/kocevski/953024/ft2_4FGL_J1738.3+3228_daily_bin444.fits
Exposure map: /scratch/kocevski/953024/expmap_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.fits
Exposure cube: /scratch/kocevski/953024/ltcube_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953024/Model_4FGL_J1738.3+3228_daily_bin444.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7574.17835011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5381       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12952E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8698       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45295       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .92744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    35.672       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81367       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97844       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=   7574.097     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2170 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3159        2.4583       -.11443E-08   -.13082E-05
   2  Prefactor     .10000E-03    27.253        .17498E-05** at limit **
   3  norm          4.5375        6.1263       -.38497E-06   -.16749E-03
   4  Prefactor     .10000E-03    17.689       -.21175E-05** at limit **
   5  norm          .10000E-03    2.9798       -.44765E-07** at limit **
   6  norm          .10002E-03    63.482       -.49432E-05** at limit **
   7  Prefactor     .10000E-03    19.656        .28040E-06** at limit **
   8  Prefactor     .10002E-03    31.839       -.48510E-05** at limit **
   9  Prefactor     .10010E-03    67.708       -.17666E-04** at limit **
  10  Prefactor     .10000E-03    20.069        .86260E-06** at limit **
  11  Prefactor     .10000E-03    3.7265       -.28622E-07** at limit **
  12  Prefactor     .10000E-03    12.782        .82201E-06** at limit **
  13  Prefactor     .10001E-03    25.406        .29535E-05** at limit **
  14  Prefactor     5.8730        9.1639       -.31590E-07    .69166E-04
  15  norm          .10000E-03    .59935       -.12498E-07** at limit **
  16  norm          .10000E-03    18.919       -.69780E-06** at limit **
  17  Prefactor     .45395        3.0821       -.31628E-06    .76222E-03
  18  norm          .10000E-03    1.9148        .64274E-08** at limit **
  19  Prefactor     .92548        2.5810        .12216E-06    .59570E-03
  20  Prefactor     .10000E-03    11.602       -.29142E-06** at limit **
  21  norm          35.656        29.736        .21585E-05    .48188E-03
  22  Normalizat    .81411        .18678       -.12545E-06    .28902E-03
  23  Prefactor     .97824        .98005E-01    .20844E-06    .75252E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.31586
  Prefactor  = 0.000100002
  norm       = 4.53751
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100096
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 5.87304
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.453952
  norm       = 0.0001
  Prefactor  = 0.925484
  Prefactor  = 0.0001
  norm       = 35.6564
  Normalizat = 0.814105
  Prefactor  = 0.97824
 **********
 **   18 **HESSE 
 **********

 FCN=   7574.097     FROM HESSE     STATUS=OK           362 CALLS     2532 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3159        2.4591        .82775E-04   -1.5205    
   2  Prefactor     .10000E-03    27.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5375        6.1256        .18898E-03   -1.5282    
   4  Prefactor     .10000E-03    17.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0240        .14663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10002E-03    64.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    33.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10010E-03    72.593        .54621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7418        .16408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    25.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8730        9.1885        .16576E-03   -1.5223    
  15  norm          .10000E-03    .60518        .65772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .45395        3.2117        .30589E-03   -1.5573    
  18  norm          .10000E-03    1.9156        .11761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .92548        2.5959        .22404E-03   -1.5516    
  20  Prefactor     .10000E-03    11.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          35.656        30.356        .67099E-04   -1.4513    
  22  Normalizat    .81411        .21963        .33525E-03   -.99548    
  23  Prefactor     .97824        .11704        .16119E-03   -.93458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33925e-09
Minuit parameter uncertainties:
  1  2.45917
  2  0.000506338
  3  6.12648
  4  0.000491742
  5  3.48915e-06
  6  0.00221559
  7  7.80523e-05
  8  0.00154248
  9  0.00529904
  10  0.000213319
  11  2.7031e-06
  12  0.000164171
  13  0.000837568
  14  9.19074
  15  6.98904e-07
  16  0.000153121
  17  2.41485
  18  6.28943e-07
  19  2.5962
  20  5.21409e-05
  21  30.3695
  22  0.21987
  23  0.117071
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.542e-03  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:  9.782e-01  1.171e-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.141e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953024/likelihoodResults_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.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) = 7574.09750665
delta logL = -0.000143825019222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7574.0973629
delta logL = -7.75507942308e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5286       1.0000          .0000       10.000    
     3 'Normalizat'    .81410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97824       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=   7574.097     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    32.144        .90712E-02** at limit **
   2  Index         2.5123        6.2542        .50000        .45242E-05
   3  Normalizat    .81410        .18305        .75745E-01   -.21561E-03
   4  Prefactor     .97824        .96312E-01    .45995E-01    .87140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 2.51229
  Normalizat = 0.814101
  Prefactor  = 0.978241
 **********
 **   18 **HESSE 
 **********

 FCN=   7574.097     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    40.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5123        6.2472        .50000       -.52076    
   3  Normalizat    .81410        .21650        .33526E-03   -.99548    
   4  Prefactor     .97824        .11414        .16119E-03   -.93458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13492e-09
Minuit parameter uncertainties:
  1  0.00172781
  2  4.92198
  3  0.216726
  4  0.114172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953024': 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) = 7574.09736288
delta logL = -5.87315298617e-08

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.728e-03  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.512e+00  4.922e+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.782e-01  1.142e-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.141e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/953024/cmap_HighResolution_354412801_354672001_4FGL_J1738.3+3228_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-18 01:38:36.366330', job_id='953024', GAL2='0.98', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631954316.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-5.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='444' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:38:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 953024: <4FGL_J1738.3+3228_daily_bin444> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin444> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 01:25:20 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:25:21 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:25:21 2021
Terminated at Sat Sep 18 01:38:37 2021
Results reported at Sat Sep 18 01:38:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin444 264.584 32.4823 354412801 354672001 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 :                                   773.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

