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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1657
RA = 285.743, Dec = -67.8068
tmin = 668822401, tmax = 669081601
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='530395', job_status='RUN', time_executed='2022-03-16 01:15:56.375016', time_epoch_executed='1647418556.38' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530395

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530395/ft1_4FGL_J1902.9-6748_daily_bin1657.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530395/ft1_4FGL_J1902.9-6748_daily_bin1657.fits outfile=/scratch/kocevski/530395/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1657.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=668822401.0 tmax=669081601.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 5.56
user 5.25
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.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/530395/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1657.fits evtable="EVENTS" outfile="/scratch/kocevski/530395/ft1_filtered_4FGL_J1902.9-6748_daily_bin1657.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.50
user 0.33
sys 0.16
Number of photons that survived the gtmktime cut: 982

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530395/ft1_filtered_4FGL_J1902.9-6748_daily_bin1657.fits" evtable="EVENTS" scfile=/scratch/kocevski/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.fits sctable="SC_DATA" outfile=/scratch/kocevski/530395/ltcube_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.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/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.fits
.....................!
real 13.08
user 12.49
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530395/ft1_filtered_4FGL_J1902.9-6748_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.fits sctable="SC_DATA" expcube=/scratch/kocevski/530395/ltcube_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.fits outfile=/scratch/kocevski/530395/expmap_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.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/530395/ltcube_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.fits
.....................!
real 191.83
user 185.59
sys 5.51

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/530395/ft1_filtered_4FGL_J1902.9-6748_daily_bin1657.fits scfile=/scratch/kocevski/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.fits outfile=/scratch/kocevski/530395/cmap_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.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/530395/ft1_filtered_4FGL_J1902.9-6748_daily_bin1657.fits scfile=/scratch/kocevski/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.fits outfile=/scratch/kocevski/530395/cmap_HighResolution_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/530395/ft1_filtered_4FGL_J1902.9-6748_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530395/Model_4FGL_J1902.9-6748_daily_bin1657.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/530395/ft1_filtered_4FGL_J1902.9-6748_daily_bin1657.fits.....................!
real 91.36
user 89.94
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530395/ft1_filtered_4FGL_J1902.9-6748_daily_bin1657.fits', '/scratch/kocevski/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.fits', expMap='/scratch/kocevski/530395/expmap_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.fits', expCube='/scratch/kocevski/530395/ltcube_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530395/Model_4FGL_J1902.9-6748_daily_bin1657.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/530395/ft1_filtered_4FGL_J1902.9-6748_daily_bin1657.fits
Spacecraft file(s): /scratch/kocevski/530395/ft2_4FGL_J1902.9-6748_daily_bin1657.fits
Exposure map: /scratch/kocevski/530395/expmap_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.fits
Exposure cube: /scratch/kocevski/530395/ltcube_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530395/Model_4FGL_J1902.9-6748_daily_bin1657.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) = 10132.6741455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.614       1.0000         .10000E-03   10000.    
     2 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    40.532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2549       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6713       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9262       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    121.98       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1003       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.850       1.0000         .10000E-03   10000.    
    12 'norm      '    24.120       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.252       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7156       1.0000         .10000E-03   10000.    
    16 'norm      '    39.619       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2579       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88977       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=   10132.67     FROM MIGRAD    STATUS=CONVERGED    356 CALLS     1860 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.598        100.63       -.27621E-04    .19915E-04
   2  norm          .10000E-03    4.1620       -.55414E-07** at limit **
   3  norm          40.515        57.173       -.25158E-04    .27094E-04
   4  Prefactor     5.2547        5.6022       -.41577E-06    .10667E-03
   5  Prefactor     .10000E-03    8.4574        .40369E-07** at limit **
   6  Prefactor     9.6615        13.966       -.58280E-05    .43393E-04
   7  norm          2.9262        1.0562        .91377E-06    .43691E-03
   8  Prefactor     .10000E-03    29.834        .24419E-05** at limit **
   9  Prefactor     121.78        148.26       -.18027E-03    .28203E-04
  10  norm          7.0858        20.759       -.31448E-04    .94648E-05
  11  Prefactor     61.853        74.847        .31969E-05    .14328E-04
  12  norm          24.120        10.097       -.14833E-06    .17491E-03
  13  Prefactor     5.2743        6.7343       -.71104E-06   -.61630E-03
  14  Prefactor     18.247        33.194       -.96205E-05    .45899E-04
  15  norm          2.7155        1.3732       -.41566E-06    .17879E-06
  16  norm          39.611        69.560       -.13830E-04    .30281E-04
  17  Prefactor     .10000E-03    5.0785       -.11059E-06** at limit **
  18  Normalizat    1.2580        .23288        .55537E-05    .42542E-03
  19  Prefactor     .88976        .85127E-01    .54867E-05   -.56510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5983
  norm       = 0.0001
  norm       = 40.5149
  Prefactor  = 5.25465
  Prefactor  = 0.0001
  Prefactor  = 9.66153
  norm       = 2.92621
  Prefactor  = 0.000100003
  Prefactor  = 121.783
  norm       = 7.08578
  Prefactor  = 61.8526
  norm       = 24.1199
  Prefactor  = 5.27432
  Prefactor  = 18.2474
  norm       = 2.71553
  norm       = 39.6106
  Prefactor  = 0.0001
  Normalizat = 1.25797
  Prefactor  = 0.889765
 **********
 **   18 **HESSE 
 **********

 FCN=   10132.67     FROM HESSE     STATUS=OK           266 CALLS     2126 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.598        100.67        .71263E-04   -1.4583    
   2  norm          .10000E-03    4.1979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          40.515        57.176        .62962E-04   -1.4434    
   4  Prefactor     5.2547        5.6046        .17534E-03   -1.5249    
   5  Prefactor     .10000E-03    8.4715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6615        13.965        .12886E-03   -1.5086    
   7  norm          2.9262        1.0566        .23747E-04   -1.5366    
   8  Prefactor     .10000E-03    29.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     121.78        148.33        .18220E-03   -1.3496    
  10  norm          7.0858        20.769        .15054E-03   -1.5176    
  11  Prefactor     61.853        74.854        .51021E-04   -1.4133    
  12  norm          24.120        10.099        .81563E-04   -1.4725    
  13  Prefactor     5.2743        6.7317        .87509E-03   -1.5249    
  14  Prefactor     18.247        33.208        .93749E-04   -1.4853    
  15  norm          2.7155        1.3734        .80409E-04   -1.5378    
  16  norm          39.611        69.720        .63680E-04   -1.4448    
  17  Prefactor     .10000E-03    5.0879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2580        .28195        .38513E-03   -.84830    
  19  Prefactor     .88976        .10365        .16326E-03   -.96500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66358e-09
Minuit parameter uncertainties:
  1  101.221
  2  2.44625e-06
  3  57.2539
  4  5.60516
  5  2.98182e-05
  6  13.9694
  7  1.05657
  8  0.000637168
  9  148.788
  10  20.79
  11  74.9678
  12  10.1002
  13  6.73267
  14  33.2418
  15  1.37339
  16  69.8641
  17  3.43224e-05
  18  0.282291
  19  0.103677
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.412e+01  1.010e+01  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.898e-01  1.037e-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.258e+00  2.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.95
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.74e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 1.37e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10131.5448337
delta logL = 1.12602677235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10131.5405455
delta logL = 1.13031499415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.094       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87822       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.

 FCN=   10131.54     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      218 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.075        10.290        .20838E-02   -.82709E-05
   2  alpha         1.6693        .33626        .34894       -.42732E-04
   3  Normalizat    1.3128        .22813        .85446E-01    .23903E-04
   4  Prefactor     .87844        .83028E-01    .44727E-01    .72946E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 23.0748
  alpha      = 1.66934
  Normalizat = 1.31278
  Prefactor  = 0.878438
 **********
 **   18 **HESSE 
 **********

 FCN=   10131.54     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.075        11.397        .83352E-04   -1.4747    
   2  alpha         1.6693        .41172        .13900E-01   -.33870    
   3  Normalizat    1.3128        .27762        .37832E-03   -.83186    
   4  Prefactor     .87844        .10120        .16420E-03   -.96899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36913e-10
Minuit parameter uncertainties:
  1  11.3983
  2  0.413844
  3  0.277938
  4  0.101221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530395': 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) = 10131.5405415
delta logL = 1.13031899476

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.307e+01  1.140e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  1.669e+00  4.138e-01  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.784e-01  1.012e-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.313e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.22
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 1.67 +/- 0.41
Photon Flux (Free Index): 5.67e-08 +/- 3.47e-08
Energy Flux (Free Index): 4.73e-05 +/- 2.70e-05

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/530395/cmap_HighResolution_668822401_669081601_4FGL_J1902.9-6748_daily_bin1657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.74e-08', energy_flux2='4.73e-05', photon_flux_error='4.08e-08', dlogl='1.13e+00', energy_flux='3.28e-05', photon_flux2='5.67e-08', job_status='DONE', time_completed='2022-03-16 01:29:10.916676', photon_index_error2='0.41', photon_index2='1.67', ts='14.95', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.70e-05', EG='1.26', time_epoch_completed='1647419350.92', return_code='0', job_id='530395', GAL2='0.88', EG2='1.31', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.47e-08', ts2='17.22', photon_index='2.31' WHERE bin_id='1657' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar 16 01:29:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 530395: <4FGL_J1902.9-6748_daily_bin1657> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1657> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Mar 16 01:15:20 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar 16 01:15:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar 16 01:15:32 2022
Terminated at Wed Mar 16 01:29:11 2022
Results reported at Wed Mar 16 01:29:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1657 285.743 -67.8068 668822401 669081601 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 :                                   796.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             341.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            831 sec.

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

