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


Performing analysis on: 4FGL_J1903.2+5540_daily_bin779
RA = 285.808, Dec = 55.6773
tmin = 441244801, tmax = 441504001
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='505975', job_status='RUN', time_executed='2021-09-21 22:46:16.175839', time_epoch_executed='1632289576.18' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505975/ft1_4FGL_J1903.2+5540_daily_bin779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505975/ft1_4FGL_J1903.2+5540_daily_bin779.fits outfile=/scratch/kocevski/505975/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin779.fits ra=285.808 dec=55.6773 rad=12.0 tmin=441244801.0 tmax=441504001.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.41
user 3.17
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.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/505975/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin779.fits evtable="EVENTS" outfile="/scratch/kocevski/505975/ft1_filtered_4FGL_J1903.2+5540_daily_bin779.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505975/ft1_filtered_4FGL_J1903.2+5540_daily_bin779.fits" evtable="EVENTS" scfile=/scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits sctable="SC_DATA" outfile=/scratch/kocevski/505975/ltcube_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.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/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits
.....................!
real 12.04
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505975/ft1_filtered_4FGL_J1903.2+5540_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits sctable="SC_DATA" expcube=/scratch/kocevski/505975/ltcube_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.fits outfile=/scratch/kocevski/505975/expmap_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.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/505975/ltcube_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.fits
.....................!
real 191.77
user 186.07
sys 5.30

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 HB 21 in ROI with RadialDisk spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 195 point sources and 4 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 J1903.2+5540 @ 285.808 55.6773

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/505975/ft1_filtered_4FGL_J1903.2+5540_daily_bin779.fits scfile=/scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits outfile=/scratch/kocevski/505975/cmap_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.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.808 yref=55.6773 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/505975/ft1_filtered_4FGL_J1903.2+5540_daily_bin779.fits scfile=/scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits outfile=/scratch/kocevski/505975/cmap_HighResolution_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.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.808 yref=55.6773 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505975/ft1_filtered_4FGL_J1903.2+5540_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505975/Model_4FGL_J1903.2+5540_daily_bin779.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 Cygnus Cocoon
adding source EG_v02
adding source FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/505975/ft1_filtered_4FGL_J1903.2+5540_daily_bin779.fits.....................!
real 119.13
user 117.72
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/505975/ft1_filtered_4FGL_J1903.2+5540_daily_bin779.fits', '/scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits', expMap='/scratch/kocevski/505975/expmap_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.fits', expCube='/scratch/kocevski/505975/ltcube_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/505975/Model_4FGL_J1903.2+5540_daily_bin779.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1903.2+5540'

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  2.734e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
335        alpha:  1.817e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  8.376e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.263e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/505975/ft1_filtered_4FGL_J1903.2+5540_daily_bin779.fits
Spacecraft file(s): /scratch/kocevski/505975/ft2_4FGL_J1903.2+5540_daily_bin779.fits
Exposure map: /scratch/kocevski/505975/expmap_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.fits
Exposure cube: /scratch/kocevski/505975/ltcube_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/505975/Model_4FGL_J1903.2+5540_daily_bin779.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) = 10192.8038139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.005       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.476       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0519       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2295       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.1373       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0665       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3359       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38060E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9108       1.0000         .10000E-03   10000.    
    21 'norm      '    8.4752       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0973       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+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=   10192.75     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     2964 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.989        65.570        .58484E-04    .38412E-04
   2  Prefactor     .10000E-03    5.2243        .18142E-02** at limit **
   3  Prefactor     .45959        50.383        .43330E-02    .25890E-03
   4  Prefactor     .10000E-03    9.3209        .18142E-02** at limit **
   5  Prefactor     .10000E-03    8.0162        .18142E-02** at limit **
   6  Prefactor     .10000E-03    78.653        .18142E-02** at limit **
   7  norm          16.476        9.3502        .98671E-04    .23274E-04
   8  Prefactor     .10000E-03    9.9028        .18142E-02** at limit **
   9  norm          .10003E-03    16.500        .38772E-02** at limit **
  10  norm          14.123        10.607        .10658E-03    .71257E-04
  11  Prefactor     1.0522        75.513        .63656E-02    .13093E-03
  12  Prefactor     .10000E-03    54.532        .18142E-02** at limit **
  13  norm          1.2299        2.4465        .21908E-03    .95485E-05
  14  Prefactor     .10000E-03    1.9339        .26837E-03** at limit **
  15  norm          6.1378        3.1686        .12485E-03    .98345E-05
  16  norm          3.0665        4.2751        .23165E-03    .82352E-04
  17  norm          .10000E-03    13.573        .18142E-02** at limit **
  18  Prefactor     1.3399        44.964        .37957E-03    .54872E-04
  19  Prefactor     .10014E-03    20.748        .11204    ** at limit **
  20  norm          1.9109        1.5170        .10331E-03    .14856E-03
  21  norm          8.4729        16.313        .13770E-03    .12880E-04
  22  Normalizat    1.0972        .22631        .37912E-03    .11833E-03
  23  Prefactor     .92787        .87087E-01    .16616E-03    .12406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.9892
  Prefactor  = 0.0001
  Prefactor  = 0.45959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4762
  Prefactor  = 0.0001
  norm       = 0.000100033
  norm       = 14.1229
  Prefactor  = 1.05223
  Prefactor  = 0.0001
  norm       = 1.22992
  Prefactor  = 0.0001
  norm       = 6.13778
  norm       = 3.06651
  norm       = 0.0001
  Prefactor  = 1.33986
  Prefactor  = 0.000100144
  norm       = 1.91094
  norm       = 8.47294
  Normalizat = 1.09722
  Prefactor  = 0.92787
 **********
 **   18 **HESSE 
 **********

 FCN=   10192.75     FROM HESSE     STATUS=OK           360 CALLS     3324 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.989        65.567        .11697E-04   -1.4336    
   2  Prefactor     .10000E-03    5.2243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .45959        50.343        .17332E-03   -1.5572    
   4  Prefactor     .10000E-03    9.3234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.0163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    78.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.476        9.3493        .39468E-05   -1.4896    
   8  Prefactor     .10000E-03    9.9030        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10003E-03    16.678        .77544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.123        10.606        .42630E-05   -1.4956    
  11  Prefactor     1.0522        75.590        .25463E-03   -1.5503    
  12  Prefactor     .10000E-03    54.533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2299        2.4464        .87630E-05   -1.5486    
  14  Prefactor     .10000E-03    1.9339        .53675E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.1378        3.1681        .49939E-05   -1.5212    
  16  norm          3.0665        4.2747        .92659E-05   -1.5358    
  17  norm          .10000E-03    13.578        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3399        44.876        .15183E-04   -1.5476    
  19  Prefactor     .10014E-03    19.264        .11758       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9109        1.5168        .41325E-05   -1.5431    
  21  norm          8.4729        16.313        .55080E-05   -1.5126    
  22  Normalizat    1.0972        .22378        .15165E-04   -.89841    
  23  Prefactor     .92787        .86862E-01    .33232E-04   -.95174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96019e-09
Minuit parameter uncertainties:
  1  65.6683
  2  5.79062e-07
  3  9.62747
  4  2.96498e-05
  5  9.64853e-06
  6  0.000192995
  7  9.35013
  8  5.60142e-05
  9  0.00147784
  10  10.6076
  11  17.8594
  12  3.87346e-05
  13  2.44656
  14  6.6538e-06
  15  3.16822
  16  4.2751
  17  7.21573e-05
  18  15.5205
  19  0.00333268
  20  1.51683
  21  16.322
  22  0.223972
  23  0.0868748
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  6.138e+00  3.168e+00  1.000e-04  1.000e+04 ( 1.000e-12)
335        alpha:  1.817e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  8.376e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.263e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.279e-01  8.687e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  1.097e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.42
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 5.58e-05 +/- 2.88e-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) = 10190.0341485
delta logL = 2.7108557327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10190.0332737
delta logL = 2.71173058164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9677       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9006       1.0000          .0000       5.0000    
     3 'Normalizat'    .98456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10190.03     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      252 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9675        13.141        .58926E-02   -.18261E-03
   2  alpha         2.9007        1.9684        .18979        .83091E-04
   3  Normalizat    .98456        .98151E-01    .89554E-01    .77159E-04
   4  Prefactor     .94928        .33178E-01    .45630E-01    .27663E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.96747
  alpha      = 2.90068
  Normalizat = 0.984565
  Prefactor  = 0.94928
 **********
 **   18 **HESSE 
 **********

 FCN=   10190.03     FROM HESSE     STATUS=OK            31 CALLS      283 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9675        2.9646        .60328E-04   -1.5363    
   2  alpha         2.9007        .60050        .76414E-02    .16097    
   3  Normalizat    .98456        .21442        .39658E-03   -.93549    
   4  Prefactor     .94928        .85146E-01    .16426E-03   -.94440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14193e-11
Minuit parameter uncertainties:
  1  2.96471
  2  0.606586
  3  0.214612
  4  0.0851576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505975': 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) = 10190.0332736
delta logL = 2.71173059454

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  2.967e+00  2.965e+00  1.000e-04  1.000e+04 ( 1.000e-12)
335        alpha:  2.901e+00  6.066e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  8.376e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.263e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.493e-01  8.516e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  9.846e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.12
Ra Dec: 285.808 55.677
Photon Index (Free Index): 2.90 +/- 0.61
Photon Flux (Free Index): 1.72e-07 +/- 7.58e-08
Energy Flux (Free Index): 4.00e-05 +/- 1.54e-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/505975/cmap_HighResolution_441244801_441504001_4FGL_J1903.2+5540_daily_bin779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='4.00e-05', photon_flux_error='3.03e-08', dlogl='2.71e+00', energy_flux='5.58e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-21 23:02:25.951683', photon_index_error2='0.61', photon_index2='2.90', ts='7.42', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.10', time_epoch_completed='1632290545.95', return_code='0', job_id='505975', GAL2='0.95', EG2='0.98', return_code2='0', energy_flux_error='2.88e-05', photon_flux_error2='7.58e-08', ts2='13.12', photon_index='1.82' WHERE bin_id='779' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 23:02:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 505975: <4FGL_J1903.2+5540_daily_bin779> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin779> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 21 22:46:01 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:46:03 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:46:03 2021
Terminated at Tue Sep 21 23:02:26 2021
Results reported at Tue Sep 21 23:02:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin779 285.808 55.6773 441244801 441504001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1903.2+5540 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   968.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             341.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

