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 100 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1903.2+5540_daily_bin1721
RA = 285.808, Dec = 55.6773
tmin = 685411201, tmax = 685670401
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='70345', job_status='RUN', time_executed='2022-09-24 01:12:22.538909', time_epoch_executed='1664007142.54' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70345/ft1_4FGL_J1903.2+5540_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70345/ft2_4FGL_J1903.2+5540_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70345/ft1_4FGL_J1903.2+5540_daily_bin1721.fits outfile=/scratch/kocevski/70345/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1721.fits ra=285.808 dec=55.6773 rad=12.0 tmin=685411201.0 tmax=685670401.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.27
user 4.99
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70345/ft2_4FGL_J1903.2+5540_daily_bin1721.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/70345/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1721.fits evtable="EVENTS" outfile="/scratch/kocevski/70345/ft1_filtered_4FGL_J1903.2+5540_daily_bin1721.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 1165

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70345/ft1_filtered_4FGL_J1903.2+5540_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/70345/ft2_4FGL_J1903.2+5540_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/70345/ltcube_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.fits outfile=/scratch/kocevski/70345/expmap_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.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/70345/ltcube_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.fits
.....................!
real 191.60
user 185.86
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/70345/ft1_filtered_4FGL_J1903.2+5540_daily_bin1721.fits scfile=/scratch/kocevski/70345/ft2_4FGL_J1903.2+5540_daily_bin1721.fits outfile=/scratch/kocevski/70345/cmap_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70345/ft1_filtered_4FGL_J1903.2+5540_daily_bin1721.fits scfile=/scratch/kocevski/70345/ft2_4FGL_J1903.2+5540_daily_bin1721.fits outfile=/scratch/kocevski/70345/cmap_HighResolution_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.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.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/70345/ft1_filtered_4FGL_J1903.2+5540_daily_bin1721.fits', '/scratch/kocevski/70345/ft2_4FGL_J1903.2+5540_daily_bin1721.fits', expMap='/scratch/kocevski/70345/expmap_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.fits', expCube='/scratch/kocevski/70345/ltcube_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/70345/Model_4FGL_J1903.2+5540_daily_bin1721.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  0.000e+00  1.000e+06 ( 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 -5.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/70345/ft1_filtered_4FGL_J1903.2+5540_daily_bin1721.fits
Spacecraft file(s): /scratch/kocevski/70345/ft2_4FGL_J1903.2+5540_daily_bin1721.fits
Exposure map: /scratch/kocevski/70345/expmap_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.fits
Exposure cube: /scratch/kocevski/70345/ltcube_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/70345/Model_4FGL_J1903.2+5540_daily_bin1721.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) = 12008.2426251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20223E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.2072       1.0000          .0000       .10000E+07
     3 'Prefactor '    .54580E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .39273       1.0000          .0000       .10000E+07
     5 'norm      '    10.538       1.0000          .0000       .10000E+07
     6 'norm      '    14.608       1.0000          .0000       .10000E+07
     7 'norm      '    11.346       1.0000          .0000       .10000E+07
     8 'Prefactor '    .58065E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27613E-02   1.0000          .0000       .10000E+07
    10 'norm      '    3.4806       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.7761       1.0000          .0000       .10000E+07
    12 'norm      '    5.0600       1.0000          .0000       .10000E+07
    13 'norm      '    .21178E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .10737E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.1809       1.0000          .0000       .10000E+07
    16 'Prefactor '    44.875       1.0000          .0000       .10000E+07
    17 'norm      '    2.4649       1.0000          .0000       .10000E+07
    18 'norm      '    11.427       1.0000          .0000       .10000E+07
    19 'Normalizat'    .97812       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12008.23     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1201 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        36.176       -.13776E-05** at limit **
   2  Prefactor     1.2929        38.818        .16923E-05   -.10359E-01
   3  Prefactor     .34250E-07    19.016        .72172E-06** at limit **
   4  Prefactor     .15568E-04    741.84       -.98318E-05** at limit **
   5  norm          10.547        6.8905        .36957E-07    .21940E-02
   6  norm          14.423        11.217       -.85469E-06   -.27052E-01
   7  norm          11.257        9.6904        .71545E-06    .11341E-01
   8  Prefactor     .55511E-10    7.7669       -.60941E-06** at limit **
   9  Prefactor     .15404E-06    25.190        .68006E-06** at limit **
  10  norm          3.4815        2.4871       -.90179E-07    .25752E-03
  11  Prefactor     1.7797        1.8892       -.47134E-07   -.53392E-03
  12  norm          5.0601        2.3078       -.25183E-06   -.12213E-02
  13  norm           .0000        1.1118        .93093E-07** at limit **
  14  norm           .0000        2.7509        .49674E-06** at limit **
  15  Prefactor     6.2396        1.4881        .79556E-07    .23841E-01
  16  Prefactor     45.183        8.1472       -.15031E-06    .25901    
  17  norm          2.4720        1.5222       -.22405E-07   -.37200E-03
  18  norm          11.183        15.620        .10274E-05    .45442E-01
  19  Normalizat    .97827        .21476        .74819E-05    .34433E-04
  20  Prefactor     1.0171        .86403E-01   -.82660E-06    .28742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.29292
  Prefactor  = 3.42504e-08
  Prefactor  = 1.55679e-05
  norm       = 10.5473
  norm       = 14.4231
  norm       = 11.2569
  Prefactor  = 5.55112e-11
  Prefactor  = 1.54043e-07
  norm       = 3.48147
  Prefactor  = 1.7797
  norm       = 5.06013
  norm       = 0
  norm       = 0
  Prefactor  = 6.23962
  Prefactor  = 45.1832
  norm       = 2.47204
  norm       = 11.1832
  Normalizat = 0.978267
  Prefactor  = 1.01706
 **********
 **   18 **HESSE 
 **********

 FCN=   12008.23     FROM HESSE     STATUS=OK           335 CALLS     1536 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        36.092        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2929        38.863        .10305E-02   -1.5685    
   3  Prefactor     .34250E-07    19.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15568E-04    754.07        .90334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.547        6.8930        .30840E-03   -1.5643    
   6  norm          14.423        11.238        .26180E-03   -1.5632    
   7  norm          11.257        9.7077        .29717E-03   -1.5641    
   8  Prefactor     .55511E-10    7.7565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15404E-06    25.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4815        2.4927        .54175E-03   -1.5671    
  11  Prefactor     1.7797        1.9061        .78519E-03   -1.5681    
  12  norm          5.0601        2.3085        .44676E-03   -1.5663    
  13  norm           .0000        1.1120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.7520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2396        13.847        .40356E-03   -1.5658    
  16  Prefactor     45.183        29.731        .14929E-03   -1.5574    
  17  norm          2.4720        1.5242        .65109E-03   -1.5677    
  18  norm          11.183        15.964        .29611E-03   -1.5641    
  19  Normalizat    .97827        .19700        .95010E-01   -.93762    
  20  Prefactor     1.0171        .78303E-01    .42439E-01   -.92163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42853e-06
Minuit parameter uncertainties:
  1  6.2961e-05
  2  14.1772
  3  0.00161335
  4  0.216723
  5  6.89299
  6  11.2382
  7  9.70767
  8  3.35011e-05
  9  0.00394921
  10  2.49271
  11  1.90614
  12  2.30853
  13  3.10552e-07
  14  1.29551e-06
  15  13.8468
  16  29.7306
  17  1.52418
  18  15.9638
  19  0.197151
  20  0.0783121
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  5.060e+00  2.309e+00  0.000e+00  1.000e+06 ( 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 -5.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.017e+00  7.831e-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.783e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.35
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 4.84e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 4.60e-05 +/- 2.10e-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) = 12006.7654645
delta logL = 1.46058647257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12006.536424
delta logL = 1.68962696563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1294       1.0000          .0000       .10000E+07
     2 'alpha     '    1.0776       1.0000          .0000       5.0000    
     3 'Normalizat'    .99905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0170       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=   12006.54     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1289        1.7447        .57285E-03   -.27738E-02
   2  alpha         1.0776        .27791        .31978       -.67626E-04
   3  Normalizat    .99900        .18405        .94180E-01    .11582E-03
   4  Prefactor     1.0171        .76899E-01    .42448E-01    .79389E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12885
  alpha      = 1.07759
  Normalizat = 0.998995
  Prefactor  = 1.0171
 **********
 **   18 **HESSE 
 **********

 FCN=   12006.54     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1289        2.4417        .98575E-05   -1.5673    
   2  alpha         1.0776        .40390        .13553E-01   -.60524    
   3  Normalizat    .99900        .20457        .41717E-03   -.93064    
   4  Prefactor     1.0171        .85764E-01    .17200E-03   -.92162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93628e-11
Minuit parameter uncertainties:
  1  2.44165
  2  0.406549
  3  0.204732
  4  0.0857752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70345': 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) = 12006.5364237
delta logL = 1.68962728236

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  3.129e+00  2.442e+00  0.000e+00  1.000e+06 ( 1.000e-12)
335        alpha:  1.078e+00  4.065e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  8.376e-02  0.000e+00 -5.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.017e+00  8.578e-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.990e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.62
Ra Dec: 285.808 55.677
Photon Index (Free Index): 1.08 +/- 0.41
Photon Flux (Free Index): 1.92e-08 +/- 1.37e-08
Energy Flux (Free Index): 1.24e-04 +/- 9.46e-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/70345/cmap_HighResolution_685411201_685670401_4FGL_J1903.2+5540_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.84e-08', energy_flux2='1.24e-04', photon_flux_error='2.21e-08', dlogl='1.69e+00', energy_flux='4.60e-05', photon_flux2='1.92e-08', job_status='DONE', time_completed='2022-09-24 01:25:17.413110', photon_index_error2='0.41', photon_index2='1.08', ts='29.35', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='9.46e-05', EG='0.98', time_epoch_completed='1664007917.41', return_code='0', job_id='70345', GAL2='1.02', EG2='1.00', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='1.37e-08', ts2='32.62', photon_index='1.82' WHERE bin_id='1721' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 01:25:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 70345: <4FGL_J1903.2+5540_daily_bin1721> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin1721> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep 24 01:10:16 2022
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 01:10:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 01:10:31 2022
Terminated at Sat Sep 24 01:25:18 2022
Results reported at Sat Sep 24 01:25:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin1721 285.808 55.6773 685411201 685670401 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 :                                   777.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            902 sec.

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

