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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin75
RA = 264.584, Dec = 32.4823
tmin = 258768001, tmax = 259027201
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='950320', job_status='RUN', time_executed='2021-09-18 01:19:39.952711', time_epoch_executed='1631953179.95' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950320

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950320/ft1_4FGL_J1738.3+3228_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950320/ft2_4FGL_J1738.3+3228_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950320/ft1_4FGL_J1738.3+3228_daily_bin75.fits outfile=/scratch/kocevski/950320/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin75.fits ra=264.584 dec=32.4823 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.12
user 0.93
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950320/ft1_filtered_4FGL_J1738.3+3228_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/950320/ft2_4FGL_J1738.3+3228_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/950320/ltcube_258768001_259027201_4FGL_J1738.3+3228_daily_bin75.fits outfile=/scratch/kocevski/950320/expmap_258768001_259027201_4FGL_J1738.3+3228_daily_bin75.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/950320/ltcube_258768001_259027201_4FGL_J1738.3+3228_daily_bin75.fits
.....................!
real 190.55
user 185.21
sys 5.02

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/950320/ft1_filtered_4FGL_J1738.3+3228_daily_bin75.fits scfile=/scratch/kocevski/950320/ft2_4FGL_J1738.3+3228_daily_bin75.fits outfile=/scratch/kocevski/950320/cmap_258768001_259027201_4FGL_J1738.3+3228_daily_bin75.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/950320/ft1_filtered_4FGL_J1738.3+3228_daily_bin75.fits scfile=/scratch/kocevski/950320/ft2_4FGL_J1738.3+3228_daily_bin75.fits outfile=/scratch/kocevski/950320/cmap_HighResolution_258768001_259027201_4FGL_J1738.3+3228_daily_bin75.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9829       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.489       1.0000         .10000E-03   10000.    
     3 'norm      '    10.504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    45.218       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1892       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31402E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5849       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3897       1.0000         .10000E-03   10000.    
    16 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.3121       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.989       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .59869       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1861       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=   7369.460     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2164 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9829        2.2107        .14023E-07    .13336E-03
   2  Prefactor     26.487        29.016       -.16036E-05    .27449E-05
   3  norm          10.503        9.8022        .22578E-06   -.79726E-06
   4  Prefactor     .10000E-03    32.263       -.95680E-05** at limit **
   5  norm          45.218        11.102        .92352E-07    .19621E-03
   6  norm          .10000E-03    40.028        .19229E-04** at limit **
   7  Prefactor     .10000E-03    56.872       -.19723E-04** at limit **
   8  Prefactor     .10000E-03    47.979        .17157E-04** at limit **
   9  Prefactor     5.1782        16.618       -.67889E-06   -.54402E-04
  10  Prefactor     .10000E-03    154.43       -.66376E-04** at limit **
  11  Prefactor     7.5845        8.7401        .16340E-06   -.43110E-04
  12  Prefactor     .10000E-03    22.396        .46612E-05** at limit **
  13  Prefactor     .10000E-03    32.502       -.84738E-05** at limit **
  14  Prefactor     .10000E-03    5.7615        .13326E-06** at limit **
  15  norm          1.3902        1.5232       -.48198E-07   -.24896E-03
  16  norm          .10000E-03    22.915       -.23548E-05** at limit **
  17  Prefactor     .10000E-03    7.5011        .17199E-05** at limit **
  18  norm          6.3115        7.2684       -.96353E-07   -.34968E-04
  19  Prefactor     .10000E-03    1.3759        .20612E-07** at limit **
  20  Prefactor     .10000E-03    7.6978       -.17941E-05** at limit **
  21  norm          10.986        33.023       -.46952E-05   -.73882E-05
  22  Normalizat    .59872        .24109       -.58492E-06    .98381E-04
  23  Prefactor     1.1861        .12198        .48557E-06    .31088E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.98287
  Prefactor  = 26.487
  norm       = 10.503
  Prefactor  = 0.0001
  norm       = 45.2183
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.17819
  Prefactor  = 0.000100002
  Prefactor  = 7.58445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39017
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.31153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9857
  Normalizat = 0.598721
  Prefactor  = 1.18609
 **********
 **   18 **HESSE 
 **********

 FCN=   7369.460     FROM HESSE     STATUS=OK           362 CALLS     2526 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9829        2.2120        .82865E-04   -1.5261    
   2  Prefactor     26.487        29.015        .77837E-04   -1.4678    
   3  norm          10.503        9.7939        .12363E-03   -1.5060    
   4  Prefactor     .10000E-03    32.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          45.218        11.095        .59623E-04   -1.4362    
   6  norm          .10000E-03    40.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1782        16.565        .17647E-03   -1.5253    
  10  Prefactor     .10000E-03    155.10        .21370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.5845        8.7352        .14561E-03   -1.5157    
  12  Prefactor     .10000E-03    22.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.8075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3902        1.5011        .10736E-03   -1.5472    
  16  norm          .10000E-03    22.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.3115        7.2728        .15977E-03   -1.5205    
  19  Prefactor     .10000E-03    1.3809        .98328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.986        33.154        .12086E-03   -1.5045    
  22  Normalizat    .59872        .26355        .44159E-03   -1.0804    
  23  Prefactor     1.1861        .13472        .16607E-03   -.86760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02806e-10
Minuit parameter uncertainties:
  1  2.212
  2  29.0302
  3  9.79538
  4  2.02163e-06
  5  11.0952
  6  1.59978e-06
  7  4.64978e-06
  8  2.91214e-06
  9  16.5799
  10  0.00106822
  11  8.73666
  12  1.57369e-05
  13  1.55065e-05
  14  4.32288e-06
  15  1.50112
  16  2.8843e-06
  17  1.41033e-05
  18  7.27379
  19  2.1577e-07
  20  6.84431e-07
  21  33.2092
  22  0.264102
  23  0.134756
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  2.912e-06  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:  1.186e+00  1.348e-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:  5.987e-01  2.641e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950320/likelihoodResults_258768001_259027201_4FGL_J1738.3+3228_daily_bin75.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) = 7369.46041274
delta logL = -9.91419728962e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7369.46031397
delta logL = -3.72884642275e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7882       1.0000          .0000       10.000    
     3 'Normalizat'    .59872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1861       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=   7369.460     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      276 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10179E-03    238.20        .18142E-02** at limit **
   2  Index         2.7268        8.1024        .50000        .62735E-05
   3  Normalizat    .59872        .13975E-01    .44159E-03   -.17635E-04
   4  Prefactor     1.1861        .72469E-02    .16607E-03   -.59215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101791
  Index      = 2.72676
  Normalizat = 0.598721
  Prefactor  = 1.18609
 **********
 **   18 **HESSE 
 **********

 FCN=   7369.460     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10179E-03    1005.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7268        5.1011        .50000       -.47198    
   3  Normalizat    .59872        .29785E-01    .17664E-04   -1.0804    
   4  Prefactor     1.1861        .15445E-01    .66429E-05   -.86760    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.16339e-09
Minuit parameter uncertainties:
  1  0.0863855
  2  849.02
  3  0.0297856
  4  0.0154449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950320': 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) = 7369.4603139
delta logL = -3.02171429212e-07

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.018e-04  8.639e-02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.727e+00  8.490e+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:  1.186e+00  1.544e-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:  5.987e-01  2.979e-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/950320/cmap_HighResolution_258768001_259027201_4FGL_J1738.3+3228_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.98e-08', time_completed='2021-09-18 01:31:59.272133', job_id='950320', GAL2='1.19', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1631953919.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='-3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='75' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:31:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 950320: <4FGL_J1738.3+3228_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin75 264.584 32.4823 258768001 259027201 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 :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

