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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin93
RA = 264.584, Dec = 32.4823
tmin = 263433601, tmax = 263692801
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='950346', job_status='RUN', time_executed='2021-09-18 01:16:01.838974', time_epoch_executed='1631952961.84' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950346

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950346/ft1_4FGL_J1738.3+3228_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950346/ft2_4FGL_J1738.3+3228_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950346/ft1_4FGL_J1738.3+3228_daily_bin93.fits outfile=/scratch/kocevski/950346/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin93.fits ra=264.584 dec=32.4823 rad=12.0 tmin=263433601.0 tmax=263692801.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.46
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950346/ft2_4FGL_J1738.3+3228_daily_bin93.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/950346/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/950346/ft1_filtered_4FGL_J1738.3+3228_daily_bin93.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/950346/ft1_filtered_4FGL_J1738.3+3228_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/950346/ft2_4FGL_J1738.3+3228_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/950346/ltcube_263433601_263692801_4FGL_J1738.3+3228_daily_bin93.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/950346/ft2_4FGL_J1738.3+3228_daily_bin93.fits
.....................!
real 12.20
user 11.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950346/ft1_filtered_4FGL_J1738.3+3228_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/950346/ft2_4FGL_J1738.3+3228_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/950346/ltcube_263433601_263692801_4FGL_J1738.3+3228_daily_bin93.fits outfile=/scratch/kocevski/950346/expmap_263433601_263692801_4FGL_J1738.3+3228_daily_bin93.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/950346/ltcube_263433601_263692801_4FGL_J1738.3+3228_daily_bin93.fits
.....................!
real 189.81
user 185.08
sys 4.42

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/950346/ft1_filtered_4FGL_J1738.3+3228_daily_bin93.fits scfile=/scratch/kocevski/950346/ft2_4FGL_J1738.3+3228_daily_bin93.fits outfile=/scratch/kocevski/950346/cmap_263433601_263692801_4FGL_J1738.3+3228_daily_bin93.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950346/ft1_filtered_4FGL_J1738.3+3228_daily_bin93.fits scfile=/scratch/kocevski/950346/ft2_4FGL_J1738.3+3228_daily_bin93.fits outfile=/scratch/kocevski/950346/cmap_HighResolution_263433601_263692801_4FGL_J1738.3+3228_daily_bin93.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9368       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6568       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.681       1.0000         .10000E-03   10000.    
     5 'norm      '    9.8156       1.0000         .10000E-03   10000.    
     6 'norm      '    .10391E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    95.083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25503E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25382E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15501E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.887       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5950       1.0000         .10000E-03   10000.    
    16 'norm      '    .10954E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3819       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2223       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97797       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=   9269.919     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2540 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9369        2.0159        .50914E-08   -.17870E-04
   2  Prefactor     1.4712        401.02       -.12771E-04   -.26365E-05
   3  norm          1.8634        8.8174        .21527E-05    .87418E-05
   4  Prefactor     10.675        39.895        .31893E-06   -.52048E-05
   5  norm          9.8103        6.6779       -.75196E-07   -.44483E-04
   6  norm          .10000E-03    35.765       -.37421E-07** at limit **
   7  Prefactor     95.097        74.230       -.13627E-06   -.60445E-05
   8  Prefactor     .10000E-03    214.38        .60229E-05** at limit **
   9  Prefactor     .10002E-03    6.7050       -.31520E-06** at limit **
  10  Prefactor     8.7047        54.474        .17555E-05   -.75919E-05
  11  Prefactor     13.754        9.2622        .63871E-07    .29278E-05
  12  Prefactor     .10000E-03    22.445        .28070E-05** at limit **
  13  Prefactor     49.972        69.513       -.13231E-07    .47812E-05
  14  Prefactor     .10000E-03    2.7619        .15666E-06** at limit **
  15  norm          1.5949        1.2814        .11444E-07   -.29033E-04
  16  norm          .10000E-03    29.660        .18436E-06** at limit **
  17  Prefactor     .10000E-03    3.1323        .14706E-06** at limit **
  18  norm          .10000E-03    3.6002        .12293E-06** at limit **
  19  Prefactor     1.3832        4.3448        .26286E-05    .40530E-04
  20  Prefactor     .10000E-03    8.3764        .11971E-06** at limit **
  21  norm          .10000E-03    29.685        .18353E-06** at limit **
  22  Normalizat    1.2221        .20508       -.45963E-06   -.12520E-03
  23  Prefactor     .97797        .10113       -.85140E-06   -.11865E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.93689
  Prefactor  = 1.47124
  norm       = 1.86336
  Prefactor  = 10.6751
  norm       = 9.81032
  norm       = 0.0001
  Prefactor  = 95.0969
  Prefactor  = 0.000100004
  Prefactor  = 0.000100024
  Prefactor  = 8.70475
  Prefactor  = 13.754
  Prefactor  = 0.0001
  Prefactor  = 49.9724
  Prefactor  = 0.0001
  norm       = 1.59491
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.38321
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.22207
  Prefactor  = 0.977974
 **********
 **   18 **HESSE 
 **********

 FCN=   9269.919     FROM HESSE     STATUS=OK           372 CALLS     2912 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9369        2.0171        .85130E-04   -1.5264    
   2  Prefactor     1.4712        416.68        .32786E-02   -1.5465    
   3  norm          1.8634        8.8228        .30585E-03   -1.5435    
   4  Prefactor     10.675        39.853        .12259E-03   -1.5054    
   5  norm          9.8103        6.6502        .12790E-03   -1.5081    
   6  norm          .10000E-03    35.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     95.097        74.246        .41218E-04   -1.3755    
   8  Prefactor     .10000E-03    218.91        .19998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    43.872        .48073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7047        54.461        .13588E-03   -1.5118    
  11  Prefactor     13.754        9.2642        .10802E-03   -1.4966    
  12  Prefactor     .10000E-03    22.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.972        69.497        .56777E-04   -1.4293    
  14  Prefactor     .10000E-03    2.7883        .15629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5949        1.2828        .95106E-04   -1.5455    
  16  norm          .10000E-03    29.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1602        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6250        .17840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3832        4.3557        .34111E-03   -1.5473    
  20  Prefactor     .10000E-03    8.3940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    29.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2221        .24514        .33472E-03   -.85924    
  23  Prefactor     .97797        .12059        .18407E-03   -.93467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10019e-09
Minuit parameter uncertainties:
  1  2.01709
  2  49.8718
  3  8.111
  4  39.9527
  5  6.65069
  6  3.39303e-05
  7  74.319
  8  0.00180961
  9  0.00204727
  10  43.6046
  11  9.2652
  12  2.12794e-05
  13  69.6101
  14  3.72346e-06
  15  1.28279
  16  3.5485e-05
  17  5.71321e-07
  18  1.74007e-09
  19  4.35669
  20  1.35644e-05
  21  2.84335e-05
  22  0.245375
  23  0.12062
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.810e-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.780e-01  1.206e-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.222e+00  2.454e-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: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950346/likelihoodResults_263433601_263692801_4FGL_J1738.3+3228_daily_bin93.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) = 9269.91949198
delta logL = -2.16225325858e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9269.91949198
delta logL = -2.16222906602e-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'    1.2221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97797       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=   9269.919     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      203 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    138.39        .90712E-02** at limit **
   2  Index         2.4535        5.4270        .50000        .37198E-07
   3  Normalizat    1.2221        .41487E-02    .75628E-01    .15298E-03
   4  Prefactor     .97797        .20776E-02    .45991E-01    .67862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Index      = 2.45351
  Normalizat = 1.22207
  Prefactor  = 0.977973
 **********
 **   18 **HESSE 
 **********

 FCN=   9269.919     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    762.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4535        5.8796        .50000       -.53437    
   3  Normalizat    1.2221        .97957E-02    .33472E-03   -.85924    
   4  Prefactor     .97797        .49115E-02    .18407E-03   -.93467    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.18651e-10
Minuit parameter uncertainties:
  1  0.00932556
  2  380.672
  3  0.00979568
  4  0.00491155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950346': 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) = 9269.91947036
delta logL = -6.54836185277e-11

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  9.326e-03  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.454e+00  3.807e+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.780e-01  4.912e-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:  1.222e+00  9.796e-03  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/950346/cmap_HighResolution_263433601_263692801_4FGL_J1738.3+3228_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-18 01:31:18.763911', job_id='950346', GAL2='0.98', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631953878.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-6.55e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='93' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:31:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 950346: <4FGL_J1738.3+3228_daily_bin93> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin93> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep 18 01:15:49 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:15:51 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:15:51 2021
Terminated at Sat Sep 18 01:31:19 2021
Results reported at Sat Sep 18 01:31:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin93 264.584 32.4823 263433601 263692801 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 :                                   914.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

