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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1094
RA = 285.743, Dec = -67.8068
tmin = 522892801, tmax = 523152001
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='496141', job_status='RUN', time_executed='2021-09-21 22:18:03.308805', time_epoch_executed='1632287883.31' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496141

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496141/ft1_4FGL_J1902.9-6748_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496141/ft2_4FGL_J1902.9-6748_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496141/ft1_4FGL_J1902.9-6748_daily_bin1094.fits outfile=/scratch/kocevski/496141/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1094.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=522892801.0 tmax=523152001.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.77
user 3.55
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496141/ft1_filtered_4FGL_J1902.9-6748_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/496141/ft2_4FGL_J1902.9-6748_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/496141/ltcube_522892801_523152001_4FGL_J1902.9-6748_daily_bin1094.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/496141/ft2_4FGL_J1902.9-6748_daily_bin1094.fits
.....................!
real 11.82
user 11.40
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496141/ft1_filtered_4FGL_J1902.9-6748_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/496141/ft2_4FGL_J1902.9-6748_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/496141/ltcube_522892801_523152001_4FGL_J1902.9-6748_daily_bin1094.fits outfile=/scratch/kocevski/496141/expmap_522892801_523152001_4FGL_J1902.9-6748_daily_bin1094.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/496141/ltcube_522892801_523152001_4FGL_J1902.9-6748_daily_bin1094.fits
.....................!
real 192.80
user 186.80
sys 5.60

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/496141/ft1_filtered_4FGL_J1902.9-6748_daily_bin1094.fits scfile=/scratch/kocevski/496141/ft2_4FGL_J1902.9-6748_daily_bin1094.fits outfile=/scratch/kocevski/496141/cmap_522892801_523152001_4FGL_J1902.9-6748_daily_bin1094.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496141/ft1_filtered_4FGL_J1902.9-6748_daily_bin1094.fits scfile=/scratch/kocevski/496141/ft2_4FGL_J1902.9-6748_daily_bin1094.fits outfile=/scratch/kocevski/496141/cmap_HighResolution_522892801_523152001_4FGL_J1902.9-6748_daily_bin1094.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.56
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496141/ft1_filtered_4FGL_J1902.9-6748_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/496141/ft2_4FGL_J1902.9-6748_daily_bin1094.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496141/Model_4FGL_J1902.9-6748_daily_bin1094.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/496141/ft1_filtered_4FGL_J1902.9-6748_daily_bin1094.fits.....................!
real 88.45
user 87.01
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.841       1.0000         .10000E-03   10000.    
     3 'norm      '    60.742       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.152       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.502       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.693       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6373       1.0000         .10000E-03   10000.    
    16 'norm      '    .41207E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2437       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86057       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=   9314.167     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1857 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.899       -.11208E-05** at limit **
   2  norm          11.841        7.0237        .30810E-06   -.22724E-04
   3  norm          60.718        57.679       -.10236E-04    .10256E-06
   4  Prefactor     14.153        11.653       -.10380E-07   -.29322E-04
   5  Prefactor     .10000E-03    5.6776        .10794E-06** at limit **
   6  Prefactor     .10000E-03    4.1685       -.31017E-06** at limit **
   7  norm          1.7770        1.0565        .72604E-07   -.67297E-03
   8  Prefactor     21.498        66.104       -.38523E-05    .10479E-05
   9  Prefactor     .10000E-03    26.771       -.88362E-06** at limit **
  10  norm          12.424        21.744        .52883E-05   -.13166E-04
  11  Prefactor     .10000E-03    32.816        .50587E-06** at limit **
  12  norm          10.693        9.2675       -.97848E-06   -.51017E-04
  13  Prefactor     10.523        10.441       -.78961E-06   -.25989E-04
  14  Prefactor     .10000E-03    26.718        .80735E-06** at limit **
  15  norm          3.6371        1.5329       -.90849E-07   -.24987E-03
  16  norm          .10000E-03    434.30       -.70619E-06** at limit **
  17  Prefactor     .10000E-03    12.133        .39555E-06** at limit **
  18  Normalizat    1.2438        .22813       -.13786E-06   -.34806E-05
  19  Prefactor     .86056        .82203E-01    .21574E-06   -.40649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.8413
  norm       = 60.7183
  Prefactor  = 14.1532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.77696
  Prefactor  = 21.4983
  Prefactor  = 0.0001
  norm       = 12.4239
  Prefactor  = 0.0001
  norm       = 10.6927
  Prefactor  = 10.523
  Prefactor  = 0.0001
  norm       = 3.63713
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24379
  Prefactor  = 0.860557
 **********
 **   18 **HESSE 
 **********

 FCN=   9314.167     FROM HESSE     STATUS=OK           268 CALLS     2125 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.841        7.0218        .11642E-03   -1.5020    
   3  norm          60.718        57.723        .51482E-04   -1.4148    
   4  Prefactor     14.153        11.666        .10647E-03   -1.4955    
   5  Prefactor     .10000E-03    5.6873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7770        1.0632        .65231E-04   -1.5441    
   8  Prefactor     21.498        67.000        .86379E-04   -1.4780    
   9  Prefactor     .10000E-03    26.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.424        21.697        .11363E-03   -1.5003    
  11  Prefactor     .10000E-03    32.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.693        9.2791        .12253E-03   -1.5054    
  13  Prefactor     10.523        10.441        .12351E-03   -1.5059    
  14  Prefactor     .10000E-03    26.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6371        1.5363        .74417E-04   -1.5327    
  16  norm          .10000E-03    453.73        .38915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2438        .27441        .37099E-03   -.85260    
  19  Prefactor     .86056        .99332E-01    .15893E-03   -.97533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97252e-11
Minuit parameter uncertainties:
  1  4.22667e-05
  2  7.02231
  3  57.7758
  4  11.6681
  5  1.38591e-06
  6  8.8438e-07
  7  1.06322
  8  67.2357
  9  3.00941e-06
  10  21.7105
  11  1.08236e-05
  12  9.2804
  13  10.4431
  14  1.98233e-05
  15  1.53628
  16  0.000229149
  17  8.70782e-07
  18  0.274725
  19  0.0993528
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.069e+01  9.280e+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

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  8.606e-01  9.935e-02  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.244e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 3.75e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.26e-05

TS (Fixed Index): 2.63
Ra Dec: 285.743 -67.807
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496141/likelihoodResults_522892801_523152001_4FGL_J1902.9-6748_daily_bin1094.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): 0
logL (Free Index) = 9314.09558208
delta logL = 0.0709933334492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9314.09109757
delta logL = 0.0754778447608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.008       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9117       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85677       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=   9314.091     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      248 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.004        10.152        .12666E-03   -.26568E-04
   2  alpha         1.9112        .95152        .27658E-01   -.17193E-03
   3  Normalizat    1.2632        .27068        .36858E-03    .78715E-04
   4  Prefactor     .85682        .98249E-01    .15925E-03    .10160E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0043
  alpha      = 1.91119
  Normalizat = 1.26319
  Prefactor  = 0.856822
 **********
 **   18 **HESSE 
 **********

 FCN=   9314.091     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.004        10.371        .50664E-05   -1.5075    
   2  alpha         1.9112        .97116        .55316E-02   -.23776    
   3  Normalizat    1.2632        .27096        .14743E-04   -.84672    
   4  Prefactor     .85682        .98327E-01    .31851E-04   -.97667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61852e-11
Minuit parameter uncertainties:
  1  10.3729
  2  0.999075
  3  0.271267
  4  0.0983468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496141': 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) = 9314.09109722
delta logL = 0.0754781861106

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.000e+01  1.037e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  1.911e+00  9.991e-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.568e-01  9.835e-02  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.263e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 1.91 +/- 1.00
Photon Flux (Free Index): 2.85e-08 +/- 4.29e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.55e-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/496141/cmap_HighResolution_522892801_523152001_4FGL_J1902.9-6748_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-05', comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.58e-05', photon_flux_error='3.75e-08', dlogl='7.55e-02', energy_flux='1.46e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-09-21 22:32:23.601440', photon_index_error2='1.00', photon_index2='1.91', ts='2.63', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.55e-05', EG='1.24', time_epoch_completed='1632288743.6', return_code='0', job_id='496141', GAL2='0.86', EG2='1.26', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.29e-08', ts2='2.78', photon_index='2.31' WHERE bin_id='1094' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:32:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 496141: <4FGL_J1902.9-6748_daily_bin1094> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1094> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:16:12 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:16:13 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:13 2021
Terminated at Tue Sep 21 22:32:24 2021
Results reported at Tue Sep 21 22:32:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1094 285.743 -67.8068 522892801 523152001 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 :                                   839.48 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             322.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

