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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin212
RA = 264.584, Dec = 32.4823
tmin = 294278401, tmax = 294537601
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='951578', job_status='RUN', time_executed='2021-09-18 01:20:36.545929', time_epoch_executed='1631953236.55' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='212'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951578

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951578/ft1_4FGL_J1738.3+3228_daily_bin212.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951578/ft2_4FGL_J1738.3+3228_daily_bin212.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951578/ft1_4FGL_J1738.3+3228_daily_bin212.fits outfile=/scratch/kocevski/951578/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin212.fits ra=264.584 dec=32.4823 rad=12.0 tmin=294278401.0 tmax=294537601.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.38
user 2.17
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951578/ft1_filtered_4FGL_J1738.3+3228_daily_bin212.fits evtable="EVENTS" scfile=/scratch/kocevski/951578/ft2_4FGL_J1738.3+3228_daily_bin212.fits sctable="SC_DATA" expcube=/scratch/kocevski/951578/ltcube_294278401_294537601_4FGL_J1738.3+3228_daily_bin212.fits outfile=/scratch/kocevski/951578/expmap_294278401_294537601_4FGL_J1738.3+3228_daily_bin212.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/951578/ltcube_294278401_294537601_4FGL_J1738.3+3228_daily_bin212.fits
.....................!
real 191.56
user 185.46
sys 5.26

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/951578/ft1_filtered_4FGL_J1738.3+3228_daily_bin212.fits scfile=/scratch/kocevski/951578/ft2_4FGL_J1738.3+3228_daily_bin212.fits outfile=/scratch/kocevski/951578/cmap_294278401_294537601_4FGL_J1738.3+3228_daily_bin212.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9206       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.267       1.0000         .10000E-03   10000.    
     3 'norm      '    14.367       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.152       1.0000         .10000E-03   10000.    
     6 'norm      '    77.847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    107.36       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11831E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.594       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.519       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7758       1.0000         .10000E-03   10000.    
    16 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4016       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2491       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94808       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92332       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=   7602.842     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2550 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9207        2.2289       -.24604E-07    .61080E-05
   2  Prefactor     23.267        34.848       -.52812E-06    .56313E-06
   3  norm          14.368        9.7028        .30066E-06    .66712E-05
   4  Prefactor     .10000E-03    38.143        .78382E-08** at limit **
   5  norm          11.153        7.4258        .91125E-06    .12076E-04
   6  norm          77.845        89.621       -.15428E-05   -.40302E-06
   7  Prefactor     107.35        91.741       -.98411E-05   -.32415E-05
   8  Prefactor     .10000E-03    134.17        .79584E-07** at limit **
   9  Prefactor     19.591        13.862        .14321E-07    .27387E-05
  10  Prefactor     .10000E-03    13.762        .24467E-08** at limit **
  11  Prefactor     10.520        11.212        .25267E-06    .32786E-05
  12  Prefactor     .10000E-03    9.2206        .33054E-07** at limit **
  13  Prefactor     .10000E-03    16.432        .52994E-06** at limit **
  14  Prefactor     .10000E-03    11.057        .40351E-07** at limit **
  15  norm          2.7755        1.8490       -.13030E-07    .29638E-05
  16  norm          .10000E-03    62.906       -.11912E-06** at limit **
  17  Prefactor     2.4011        1.1547        .37727E-07   -.69530E-03
  18  norm          .10000E-03    2.1503       -.76888E-08** at limit **
  19  Prefactor     2.2492        4.6552       -.11359E-06   -.36155E-04
  20  Prefactor     .10000E-03    16.245       -.58333E-06** at limit **
  21  norm          .10000E-03    8.8058       -.22488E-08** at limit **
  22  Normalizat    .94788        .20365        .10435E-05   -.18261E-04
  23  Prefactor     .92342        .10173       -.14309E-06    .64105E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.92068
  Prefactor  = 23.2666
  norm       = 14.3676
  Prefactor  = 0.0001
  norm       = 11.153
  norm       = 77.8455
  Prefactor  = 107.348
  Prefactor  = 0.0001
  Prefactor  = 19.5907
  Prefactor  = 0.0001
  Prefactor  = 10.5195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77545
  norm       = 0.0001
  Prefactor  = 2.40115
  norm       = 0.0001
  Prefactor  = 2.24922
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.947877
  Prefactor  = 0.923416
 **********
 **   18 **HESSE 
 **********

 FCN=   7602.842     FROM HESSE     STATUS=OK           366 CALLS     2916 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9207        2.2305        .77741E-04   -1.5221    
   2  Prefactor     23.267        34.874        .83041E-04   -1.4743    
   3  norm          14.368        9.7105        .10567E-03   -1.4950    
   4  Prefactor     .10000E-03    38.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.153        7.4236        .11997E-03   -1.5040    
   6  norm          77.845        89.649        .45514E-04   -1.3941    
   7  Prefactor     107.35        91.788        .38814E-04   -1.3632    
   8  Prefactor     .10000E-03    134.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.591        13.871        .90483E-04   -1.4822    
  10  Prefactor     .10000E-03    13.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.520        11.213        .12354E-03   -1.5059    
  12  Prefactor     .10000E-03    9.2320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7755        1.8526        .93834E-04   -1.5375    
  16  norm          .10000E-03    62.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4011        5.2104        .13211E-02   -1.5398    
  18  norm          .10000E-03    2.1511        .12487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2492        4.6321        .25713E-03   -1.5408    
  20  Prefactor     .10000E-03    16.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.8075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94788        .24132        .33198E-03   -.94798    
  23  Prefactor     .92342        .12080        .17253E-03   -.95328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17775e-10
Minuit parameter uncertainties:
  1  2.23055
  2  34.9041
  3  9.71158
  4  1.82202e-06
  5  7.42425
  6  89.8056
  7  91.9103
  8  4.06528e-05
  9  13.8734
  10  2.69411e-06
  11  11.2156
  12  2.23568e-06
  13  1.71909e-06
  14  1.28108e-05
  15  1.85263
  16  4.5116e-06
  17  5.21137
  18  1.56323e-07
  19  4.6328
  20  6.45917e-06
  21  2.3122e-07
  22  0.241596
  23  0.120833
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  4.065e-05  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.234e-01  1.208e-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:  9.479e-01  2.416e-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: 7.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/951578/likelihoodResults_294278401_294537601_4FGL_J1738.3+3228_daily_bin212.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) = 7602.84239824
delta logL = -3.52078468495e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7602.84239824
delta logL = -3.52073357135e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4540       1.0000          .0000       10.000    
     3 'Normalizat'    .94788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92342       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=   7602.842     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      249 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10842E-03    62.038        .18142E-01** at limit **
   2  Index         2.3211        8.3418        .50000        .41584E-05
   3  Normalizat    .94788        .26675E-02    .33197E-03    .37622E-03
   4  Prefactor     .92341        .13796E-02    .17253E-03    .32339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108419
  Index      = 2.32106
  Normalizat = 0.947882
  Prefactor  = 0.923414
 **********
 **   18 **HESSE 
 **********

 FCN=   7602.842     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10842E-03    1684.7        .72570E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3211        6.3151        .50000       -.56544    
   3  Normalizat    .94788        .14226E-01    .13279E-04   -.94797    
   4  Prefactor     .92341        .73573E-02    .34506E-04   -.95328    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.17394e-10
Minuit parameter uncertainties:
  1  0.245444
  2  528.176
  3  0.0142258
  4  0.00735733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951578': 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) = 7602.8423629
delta logL = 1.33680259751e-07

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.084e-04  2.454e-01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.321e+00  5.282e+02  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.234e-01  7.357e-03  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:  9.479e-01  1.423e-02  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/951578/cmap_HighResolution_294278401_294537601_4FGL_J1738.3+3228_daily_bin212.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-18 01:34:08.208765', job_id='951578', GAL2='0.92', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631954048.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='212' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:34:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 951578: <4FGL_J1738.3+3228_daily_bin212> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin212> 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) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:20: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:20:21 2021
Terminated at Sat Sep 18 01:34:08 2021
Results reported at Sat Sep 18 01:34:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin212 264.584 32.4823 294278401 294537601 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 :                                   808.26 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             364.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

