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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1040
RA = 285.743, Dec = -67.8068
tmin = 508896001, tmax = 509155201
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='496063', job_status='RUN', time_executed='2021-09-21 22:16:20.563534', time_epoch_executed='1632287780.56' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496063

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496063/ft1_4FGL_J1902.9-6748_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496063/ft1_4FGL_J1902.9-6748_daily_bin1040.fits outfile=/scratch/kocevski/496063/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1040.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=508896001.0 tmax=509155201.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.71
user 3.48
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.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/496063/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1040.fits evtable="EVENTS" outfile="/scratch/kocevski/496063/ft1_filtered_4FGL_J1902.9-6748_daily_bin1040.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496063/ft1_filtered_4FGL_J1902.9-6748_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/496063/ltcube_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.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/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits
.....................!
real 12.67
user 12.00
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496063/ft1_filtered_4FGL_J1902.9-6748_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/496063/ltcube_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.fits outfile=/scratch/kocevski/496063/expmap_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.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/496063/ltcube_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.fits
.....................!
real 190.37
user 185.18
sys 4.77

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
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Added 217 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1902.9-6748 @ 285.743 -67.8068

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/496063/ft1_filtered_4FGL_J1902.9-6748_daily_bin1040.fits scfile=/scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits outfile=/scratch/kocevski/496063/cmap_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.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=285.743 yref=-67.8068 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496063/ft1_filtered_4FGL_J1902.9-6748_daily_bin1040.fits scfile=/scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits outfile=/scratch/kocevski/496063/cmap_HighResolution_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.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=285.743 yref=-67.8068 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496063/ft1_filtered_4FGL_J1902.9-6748_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496063/Model_4FGL_J1902.9-6748_daily_bin1040.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 FHES J1642.1-5428
adding source GAL_V02
Working on...
/scratch/kocevski/496063/ft1_filtered_4FGL_J1902.9-6748_daily_bin1040.fits.....................!
real 90.23
user 88.89
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496063/ft1_filtered_4FGL_J1902.9-6748_daily_bin1040.fits', '/scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits', expMap='/scratch/kocevski/496063/expmap_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.fits', expCube='/scratch/kocevski/496063/ltcube_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496063/Model_4FGL_J1902.9-6748_daily_bin1040.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1902.9-6748'

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.756e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/496063/ft1_filtered_4FGL_J1902.9-6748_daily_bin1040.fits
Spacecraft file(s): /scratch/kocevski/496063/ft2_4FGL_J1902.9-6748_daily_bin1040.fits
Exposure map: /scratch/kocevski/496063/expmap_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.fits
Exposure cube: /scratch/kocevski/496063/ltcube_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496063/Model_4FGL_J1902.9-6748_daily_bin1040.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) = 10243.6617762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4749       1.0000         .10000E-03   10000.    
     3 'norm      '    80.345       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .51003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.487       1.0000         .10000E-03   10000.    
    10 'norm      '    5.8592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .40687E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17417E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.907       1.0000         .10000E-03   10000.    
    15 'norm      '    8.6484       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27246E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6808       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10243.65     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1950 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    112.76        .11485E-05** at limit **
   2  norm          1.4792        6.5717       -.33276E-05   -.20489E-03
   3  norm          80.320        70.446        .15669E-05    .15000E-03
   4  Prefactor     .10000E-03    4.2279        .15044E-06** at limit **
   5  Prefactor     .10000E-03    12.797        .34167E-05** at limit **
   6  Prefactor     .10000E-03    27.072        .86637E-06** at limit **
   7  norm          1.3409        1.0170       -.16780E-06   -.11134E-02
   8  Prefactor     .10001E-03    69.475        .17760E-05** at limit **
   9  Prefactor     39.484        61.273        .45023E-06    .68029E-04
  10  norm          5.8603        18.279       -.79310E-07   -.64464E-04
  11  Prefactor     .10000E-03    29.933        .90916E-06** at limit **
  12  norm          .10002E-03    164.57       -.19274E-04** at limit **
  13  Prefactor     .10003E-03    22.073        .57726E-05** at limit **
  14  Prefactor     16.906        16.380        .43000E-07   -.23006E-04
  15  norm          8.6484        2.0198        .33993E-08   -.13692E-03
  16  norm          .10000E-03    12.401        .29698E-07** at limit **
  17  Prefactor     .10000E-03    25.526       -.84398E-05** at limit **
  18  Normalizat    1.6809        .23580       -.80647E-06   -.19040E-03
  19  Prefactor     .80799        .82166E-01   -.18032E-06   -.43547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.47919
  norm       = 80.3202
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  norm       = 1.34092
  Prefactor  = 0.000100006
  Prefactor  = 39.4839
  norm       = 5.8603
  Prefactor  = 0.000100004
  norm       = 0.000100018
  Prefactor  = 0.000100035
  Prefactor  = 16.9064
  norm       = 8.64843
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.68092
  Prefactor  = 0.807994
 **********
 **   18 **HESSE 
 **********

 FCN=   10243.65     FROM HESSE     STATUS=OK           280 CALLS     2230 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4792        8.6138        .17683E-02   -1.5465    
   3  norm          80.320        70.932        .22403E-03   -1.3913    
   4  Prefactor     .10000E-03    4.2482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    61.615        .61238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3409        1.0207        .85897E-04   -1.5476    
   8  Prefactor     .10001E-03    70.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.484        61.307        .63786E-04   -1.4450    
  10  norm          5.8603        18.270        .16591E-03   -1.5224    
  11  Prefactor     .10000E-03    30.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10002E-03    7.4624        .71457E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    50.531        .50918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.906        16.384        .97406E-04   -1.4885    
  15  norm          8.6484        2.0246        .66530E-04   -1.5120    
  16  norm          .10000E-03    12.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.339        .49252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.6809        .28697        .35063E-03   -.72814    
  19  Prefactor     .80799        .10085        .17167E-03   -.99434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60509e-09
Minuit parameter uncertainties:
  1  0.000207235
  2  7.14034
  3  71.0074
  4  2.59822e-05
  5  0.000726115
  6  0.000743072
  7  1.02073
  8  0.00129051
  9  61.4047
  10  18.2872
  11  0.000723178
  12  0.00073333
  13  0.00265667
  14  16.3886
  15  2.02463
  16  5.16216e-06
  17  0.000131565
  18  0.287255
  19  0.100872
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.000e-04  7.333e-04  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  8.080e-01  1.009e-01  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  1.681e+00  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 285.743 -67.807
Photon Flux Upper Limit: 8.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496063/likelihoodResults_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.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) = 10243.6548053
delta logL = -2.83395147562e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10243.6278818
delta logL = 0.0268952258848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71304       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6091       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81108       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+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=   10243.63     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      404 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68081        481.58        .24594E-02    .32740E-03
   2  alpha         3.6355        3.2022        .10167        .13575E-04
   3  Normalizat    1.6629        .11840        .35219E-03    .20401E-04
   4  Prefactor     .81119        .43608E-01    .17137E-03    .27067E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.680815
  alpha      = 3.63552
  Normalizat = 1.66292
  Prefactor  = 0.811193
 **********
 **   18 **HESSE 
 **********

 FCN=   10243.63     FROM HESSE     STATUS=OK            27 CALLS      431 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68081        10.835        .98376E-04   -1.5543    
   2  alpha         3.6355        4.2329        .40666E-02    .47148    
   3  Normalizat    1.6629        .29095        .14087E-04   -.73298    
   4  Prefactor     .81119        .10141        .68546E-05   -.99317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12989e-11
Minuit parameter uncertainties:
  1  5.4328
  2  5.37404
  3  0.291245
  4  0.101436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496063': 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) = 10243.6278593
delta logL = 0.0269176619404

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.808e-01  5.433e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  3.636e+00  5.374e+00  0.000e+00  5.000e+00 ( 1.000e+00)
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  8.112e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  1.663e+00  2.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 285.743 -67.807

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/496063/cmap_HighResolution_508896001_509155201_4FGL_J1902.9-6748_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='8.86e-08', time_completed='2021-09-21 22:32:04.142720', job_id='496063', GAL2='0.81', fit_tolerance='1e-08', EG2='1.66', EG='1.68', time_epoch_completed='1632288724.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.69e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1040' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:32:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 496063: <4FGL_J1902.9-6748_daily_bin1040> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1040> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:16:06 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:16:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 22:16:08 2021
Terminated at Tue Sep 21 22:32:04 2021
Results reported at Tue Sep 21 22:32:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1040 285.743 -67.8068 508896001 509155201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1902.9-6748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   936.09 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             322.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

