aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 77 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 = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1903.2+5540_daily_bin1692
RA = 285.808, Dec = 55.6773
tmin = 677894401, tmax = 678153601
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='406387', job_status='RUN', time_executed='2022-06-29 04:54:14.972625', time_epoch_executed='1656503654.97' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406387/ft1_4FGL_J1903.2+5540_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406387/ft2_4FGL_J1903.2+5540_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406387/ft1_4FGL_J1903.2+5540_daily_bin1692.fits outfile=/scratch/kocevski/406387/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1692.fits ra=285.808 dec=55.6773 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.49
user 4.23
sys 0.23

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

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

Number of photons that the gtmktime cut: 1527

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406387/ft1_filtered_4FGL_J1903.2+5540_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/406387/ft2_4FGL_J1903.2+5540_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/406387/ltcube_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.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/406387/ft2_4FGL_J1903.2+5540_daily_bin1692.fits
.....................!
real 13.81
user 13.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406387/ft1_filtered_4FGL_J1903.2+5540_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406387/ft2_4FGL_J1903.2+5540_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/406387/ltcube_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.fits outfile=/scratch/kocevski/406387/expmap_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.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/406387/ltcube_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.fits
.....................!
real 194.31
user 187.07
sys 5.54

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/406387/ft1_filtered_4FGL_J1903.2+5540_daily_bin1692.fits scfile=/scratch/kocevski/406387/ft2_4FGL_J1903.2+5540_daily_bin1692.fits outfile=/scratch/kocevski/406387/cmap_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406387/ft1_filtered_4FGL_J1903.2+5540_daily_bin1692.fits scfile=/scratch/kocevski/406387/ft2_4FGL_J1903.2+5540_daily_bin1692.fits outfile=/scratch/kocevski/406387/cmap_HighResolution_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.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.58
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406387/ft1_filtered_4FGL_J1903.2+5540_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406387/ft2_4FGL_J1903.2+5540_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406387/Model_4FGL_J1903.2+5540_daily_bin1692.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/406387/ft1_filtered_4FGL_J1903.2+5540_daily_bin1692.fits.....................!
real 162.49
user 160.89
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406387/ft1_filtered_4FGL_J1903.2+5540_daily_bin1692.fits', '/scratch/kocevski/406387/ft2_4FGL_J1903.2+5540_daily_bin1692.fits', expMap='/scratch/kocevski/406387/expmap_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.fits', expCube='/scratch/kocevski/406387/ltcube_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406387/Model_4FGL_J1903.2+5540_daily_bin1692.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/406387/ft1_filtered_4FGL_J1903.2+5540_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/406387/ft2_4FGL_J1903.2+5540_daily_bin1692.fits
Exposure map: /scratch/kocevski/406387/expmap_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.fits
Exposure cube: /scratch/kocevski/406387/ltcube_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406387/Model_4FGL_J1903.2+5540_daily_bin1692.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) = 15475.0581865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.230       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.613       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.807       1.0000         .10000E-03   10000.    
     9 'norm      '    15.267       1.0000         .10000E-03   10000.    
    10 'norm      '    6.7235       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.263       1.0000         .10000E-03   10000.    
    13 'norm      '    .29044       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8107       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1621       1.0000         .10000E-03   10000.    
    17 'norm      '    .30281       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .70080       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2313       1.0000         .10000E-03   10000.    
    21 'norm      '    8.7112       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86446       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0214       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=   15475.05     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2518 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.211        .90712E-02** at limit **
   2  Prefactor     32.231        19.597        .17645E-02    .14722E-03
   3  Prefactor     .10000E-03    3.5429        .90712E-02** at limit **
   4  Prefactor     .10000E-03    9.6846        .90712E-02** at limit **
   5  Prefactor     .10000E-03    12.014        .90712E-02** at limit **
   6  Prefactor     .10000E-03    120.58        .90712E-02** at limit **
   7  norm          14.612        7.8957        .26194E-02   -.52804E-03
   8  Prefactor     16.805        24.975        .24424E-02    .31605E-04
   9  norm          15.267        8.7477        .25626E-02   -.87701E-03
  10  norm          6.7235        6.2876        .38687E-02   -.40390E-03
  11  Prefactor     .10000E-03    4.0027        .90712E-02** at limit **
  12  Prefactor     25.260        58.715        .19925E-02    .10151E-02
  13  norm          .28911        1.0170        .45450E-01    .31698E-02
  14  Prefactor     .10000E-03    .72438        .90712E-02** at limit **
  15  norm          5.8108        2.2548        .41652E-02    .15988E-03
  16  norm          3.1616        2.9947        .56982E-02    .18459E-03
  17  norm          .30428        3.1124        .10437       -.31113E-03
  18  Prefactor     .72481        3.8270        .12065        .94029E-03
  19  Prefactor     .10000E-03    9.9786        .90712E-02** at limit **
  20  norm          2.2313        1.1690        .68803E-02    .43745E-04
  21  norm          8.7115        11.698        .33952E-02    .21619E-03
  22  Normalizat    .86453        .16223        .95111E-01    .11294E-03
  23  Prefactor     1.0214        .64995E-01    .42003E-01    .22003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 32.2309
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 14.612
  Prefactor  = 16.805
  norm       = 15.2671
  norm       = 6.72355
  Prefactor  = 0.0001
  Prefactor  = 25.2599
  norm       = 0.289113
  Prefactor  = 0.0001
  norm       = 5.81078
  norm       = 3.16161
  norm       = 0.304284
  Prefactor  = 0.724806
  Prefactor  = 0.000100002
  norm       = 2.23128
  norm       = 8.71145
  Normalizat = 0.864525
  Prefactor  = 1.02137
 **********
 **   18 **HESSE 
 **********

 FCN=   15475.05     FROM HESSE     STATUS=OK           374 CALLS     2892 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.231        19.601        .70580E-04   -1.4572    
   3  Prefactor     .10000E-03    3.5618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    120.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.612        7.9131        .10478E-03   -1.4943    
   8  Prefactor     16.805        24.971        .97696E-04   -1.4888    
   9  norm          15.267        8.7601        .10250E-03   -1.4926    
  10  norm          6.7235        6.2891        .15475E-03   -1.5189    
  11  Prefactor     .10000E-03    4.0139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.260        58.161        .79700E-04   -1.4702    
  13  norm          .28911        1.3453        .22497E-02   -1.5600    
  14  Prefactor     .10000E-03    .74611        .20660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8108        2.2547        .11278E-03   -1.5226    
  16  norm          3.1616        3.3018        .19934E-03   -1.5352    
  17  norm          .30428        25.947        .41475E-02   -1.5598    
  18  Prefactor     .72481        18.765        .46693E-02   -1.5538    
  19  Prefactor     .10000E-03    10.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2313        1.1685        .93350E-04   -1.5409    
  21  norm          8.7115        11.694        .13581E-03   -1.5118    
  22  Normalizat    .86453        .17797        .42138E-03   -.97718    
  23  Prefactor     1.0214        .72148E-01    .16413E-03   -.92021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06689e-07
Minuit parameter uncertainties:
  1  0.000482435
  2  19.6052
  3  2.67598e-05
  4  0.00016752
  5  0.000100002
  6  0.000917563
  7  7.91363
  8  24.9861
  9  8.76087
  10  6.28976
  11  7.15695e-06
  12  58.2919
  13  1.24713
  14  3.70244e-06
  15  2.25477
  16  3.30201
  17  5.62132
  18  7.37789
  19  0.000294378
  20  1.16849
  21  11.6974
  22  0.178095
  23  0.0721548
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  5.811e+00  2.255e+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:  1.021e+00  7.215e-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:  8.645e-01  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.58
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 5.56e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 5.28e-05 +/- 2.05e-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) = 15474.6648552
delta logL = 0.384060382121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15474.6390965
delta logL = 0.409819123455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1805       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4858       1.0000          .0000       5.0000    
     3 'Normalizat'    .88298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0195       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=   15474.64     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      207 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1805        2.4731        .44155E-02   -.43463E-02
   2  alpha         1.4858        .30268        .38069       -.75604E-04
   3  Normalizat    .88298        .15399        .94260E-01    .92943E-04
   4  Prefactor     1.0195        .64497E-01    .42186E-01   -.22835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.18051
  alpha      = 1.48579
  Normalizat = 0.882976
  Prefactor  = 1.01954
 **********
 **   18 **HESSE 
 **********

 FCN=   15474.64     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1805        2.5946        .11734E-03   -1.5253    
   2  alpha         1.4858        .37297        .14178E-01   -.41773    
   3  Normalizat    .88298        .16930        .41759E-03   -.97061    
   4  Prefactor     1.0195        .71353E-01    .16433E-03   -.92081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62062e-09
Minuit parameter uncertainties:
  1  2.59466
  2  0.374648
  3  0.169402
  4  0.0713596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406387': 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) = 15474.6390965
delta logL = 0.409819142509

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  5.181e+00  2.595e+00  1.000e-04  1.000e+04 ( 1.000e-12)
335        alpha:  1.486e+00  3.746e-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:  1.020e+00  7.136e-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:  8.830e-01  1.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.38
Ra Dec: 285.808 55.677
Photon Index (Free Index): 1.49 +/- 0.37
Photon Flux (Free Index): 3.56e-08 +/- 2.44e-08
Energy Flux (Free Index): 7.71e-05 +/- 4.87e-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/406387/cmap_HighResolution_677894401_678153601_4FGL_J1903.2+5540_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.56e-08', energy_flux2='7.71e-05', photon_flux_error='2.16e-08', dlogl='4.10e-01', energy_flux='5.28e-05', photon_flux2='3.56e-08', job_status='DONE', time_completed='2022-06-29 05:15:26.622095', photon_index_error2='0.37', photon_index2='1.49', ts='32.58', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.87e-05', EG='0.86', time_epoch_completed='1656504926.62', return_code='0', job_id='406387', GAL2='1.02', EG2='0.88', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='2.44e-08', ts2='33.38', photon_index='1.82' WHERE bin_id='1692' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:15:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 406387: <4FGL_J1903.2+5540_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:42 2022
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:52:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:52:46 2022
Terminated at Wed Jun 29 05:15:27 2022
Results reported at Wed Jun 29 05:15:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin1692 285.808 55.6773 677894401 678153601 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 :                                   1271.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             343.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1360 sec.
    Turnaround time :                            18465 sec.

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

