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


Performing analysis on: 4FGL_J1903.2+5540_daily_bin1751
RA = 285.808, Dec = 55.6773
tmin = 693187201, tmax = 693446401
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='84094', job_status='RUN', time_executed='2022-12-23 01:07:15.073386', time_epoch_executed='1671786435.07' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84094

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84094/ft1_4FGL_J1903.2+5540_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84094/ft2_4FGL_J1903.2+5540_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84094/ft1_4FGL_J1903.2+5540_daily_bin1751.fits outfile=/scratch/kocevski/84094/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1751.fits ra=285.808 dec=55.6773 rad=12.0 tmin=693187201.0 tmax=693446401.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.64
user 3.43
sys 0.20

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

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

Number of photons that the gtmktime cut: 1234

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84094/ft1_filtered_4FGL_J1903.2+5540_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/84094/ft2_4FGL_J1903.2+5540_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/84094/ltcube_693187201_693446401_4FGL_J1903.2+5540_daily_bin1751.fits outfile=/scratch/kocevski/84094/expmap_693187201_693446401_4FGL_J1903.2+5540_daily_bin1751.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/84094/ltcube_693187201_693446401_4FGL_J1903.2+5540_daily_bin1751.fits
.....................!
real 189.95
user 185.42
sys 4.19

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/84094/ft1_filtered_4FGL_J1903.2+5540_daily_bin1751.fits scfile=/scratch/kocevski/84094/ft2_4FGL_J1903.2+5540_daily_bin1751.fits outfile=/scratch/kocevski/84094/cmap_693187201_693446401_4FGL_J1903.2+5540_daily_bin1751.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84094/ft1_filtered_4FGL_J1903.2+5540_daily_bin1751.fits scfile=/scratch/kocevski/84094/ft2_4FGL_J1903.2+5540_daily_bin1751.fits outfile=/scratch/kocevski/84094/cmap_HighResolution_693187201_693446401_4FGL_J1903.2+5540_daily_bin1751.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74810E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .93738       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30530E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .71340E-03   1.0000          .0000       .10000E+07
     5 'norm      '    12.458       1.0000          .0000       .10000E+07
     6 'norm      '    8.7641       1.0000          .0000       .10000E+07
     7 'norm      '    9.5876       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.0017       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19513E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .11757E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.4745       1.0000          .0000       .10000E+07
    12 'norm      '    3.2333       1.0000          .0000       .10000E+07
    13 'norm      '    2.2072       1.0000          .0000       .10000E+07
    14 'norm      '    .34938E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .76905E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    28.600       1.0000          .0000       .10000E+07
    17 'norm      '    6.6220       1.0000          .0000       .10000E+07
    18 'norm      '    3.2776       1.0000          .0000       .10000E+07
    19 'Normalizat'    .94229       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92710       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=   12518.45     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1196 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18985E-07    27.500       -.67995E-06** at limit **
   2  Prefactor     .93161        .50603       -.77335E-09   -.13428E-01
   3  Prefactor     .12212E-08    14.689       -.54380E-06** at limit **
   4  Prefactor     .22478E-03    49.010       -.14502E-05** at limit **
   5  norm          12.453        7.4426        .71539E-07    .17961E-02
   6  norm          8.7950        6.8807       -.23080E-07   -.81061E-02
   7  norm          9.5991        8.2033        .78441E-07    .41377E-01
   8  Prefactor     3.9989        4.7345       -.60836E-07   -.43232E-01
   9  Prefactor     .20623E-03    47.635       -.13708E-05** at limit **
  10  norm          .16653E-09    8.3049       -.63589E-06** at limit **
  11  Prefactor     1.4756        1.7298       -.73618E-07   -.31458E-02
  12  norm          3.2311        1.8346       -.31392E-07   -.16842E-02
  13  norm          2.2072        2.6189       -.12827E-06   -.27023E-02
  14  norm           .0000        4.6998       -.80053E-07** at limit **
  15  Prefactor     .55511E-10    6.6032        .56019E-07** at limit **
  16  Prefactor     28.644        1.2666        .36262E-08   -.45321E-01
  17  norm          6.6188        1.8695        .61713E-07    .50999E-02
  18  norm          3.2992        3.2919       -.59098E-07    .33383E-01
  19  Normalizat    .94212        .18530       -.36497E-05   -.24808E-04
  20  Prefactor     .92707        .75302E-01    .15892E-05    .11456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89848e-08
  Prefactor  = 0.931605
  Prefactor  = 1.22125e-09
  Prefactor  = 0.00022478
  norm       = 12.4535
  norm       = 8.79499
  norm       = 9.59914
  Prefactor  = 3.9989
  Prefactor  = 0.00020623
  norm       = 1.66533e-10
  Prefactor  = 1.4756
  norm       = 3.23109
  norm       = 2.2072
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 28.6437
  norm       = 6.61883
  norm       = 3.29921
  Normalizat = 0.942116
  Prefactor  = 0.927068
 **********
 **   18 **HESSE 
 **********

 FCN=   12518.45     FROM HESSE     STATUS=OK           339 CALLS     1535 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18985E-07    27.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .93161        27.888        .43210E-03   -1.5689    
   3  Prefactor     .12212E-08    14.708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22478E-03    99.068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.453        7.4408        .28355E-03   -1.5637    
   6  norm          8.7950        6.9045        .33834E-03   -1.5649    
   7  norm          9.5991        9.9215        .32340E-03   -1.5646    
   8  Prefactor     3.9989        9.2424        .50391E-03   -1.5668    
   9  Prefactor     .20623E-03    93.714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .16653E-09    1.4825        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4756        1.7538        .88421E-03   -1.5684    
  12  norm          3.2311        1.8363        .56308E-03   -1.5672    
  13  norm          2.2072        2.6212        .69213E-03   -1.5678    
  14  norm           .0000        4.7051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    6.6018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.644        23.609        .18702E-03   -1.5601    
  17  norm          6.6188        1.9558        .38972E-03   -1.5657    
  18  norm          3.2992        14.670        .55906E-03   -1.5672    
  19  Normalizat    .94212        .16998        .88381E-01   -.94996    
  20  Prefactor     .92707        .68256E-01    .45350E-01   -.95202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.651e-06
Minuit parameter uncertainties:
  1  0.00144799
  2  10.1943
  3  0.000266008
  4  0.298458
  5  7.44077
  6  6.90452
  7  9.92152
  8  9.24243
  9  0.278045
  10  3.11229e-05
  11  1.75376
  12  1.83631
  13  2.62121
  14  2.0925e-05
  15  3.4052e-05
  16  23.6092
  17  1.95585
  18  13.914
  19  0.170077
  20  0.0682624
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  3.231e+00  1.836e+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:  9.271e-01  6.826e-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.421e-01  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.67
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.09e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.67e-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) = 12517.9736234
delta logL = 0.478271264705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12517.970153
delta logL = 0.481741679359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7515       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3130       1.0000          .0000       5.0000    
     3 'Normalizat'    .91772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93086       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=   12517.97     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      321 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7513        1.8209        .90448E-05    .65360E-04
   2  alpha         2.3129        .52242        .14063E-01    .17485E-04
   3  Normalizat    .91774        .18246        .39584E-03    .63185E-06
   4  Prefactor     .93087        .75101E-01    .16296E-03   -.13953E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75134
  alpha      = 2.3129
  Normalizat = 0.917739
  Prefactor  = 0.930867
 **********
 **   18 **HESSE 
 **********

 FCN=   12517.97     FROM HESSE     STATUS=OK            25 CALLS      346 TOTAL
                     EDM=   .55E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7513        1.7338        .36179E-06   -1.5675    
   2  alpha         2.3129        .49731        .56250E-03   -.74911E-01
   3  Normalizat    .91774        .18231        .15834E-04   -.95840    
   4  Prefactor     .93087        .75107E-01    .65182E-05   -.95071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48645e-15
Minuit parameter uncertainties:
  1  1.73376
  2  0.500671
  3  0.182429
  4  0.0751152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84094': 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) = 12517.9701529
delta logL = 0.481741785445

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  2.751e+00  1.734e+00  0.000e+00  1.000e+06 ( 1.000e-12)
335        alpha:  2.313e+00  5.007e-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:  9.309e-01  7.512e-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.177e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.73
Ra Dec: 285.808 55.677
Photon Index (Free Index): 2.31 +/- 0.50
Photon Flux (Free Index): 5.48e-08 +/- 3.73e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.17e-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/84094/cmap_HighResolution_693187201_693446401_4FGL_J1903.2+5540_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.09e-08', energy_flux2='2.17e-05', photon_flux_error='1.76e-08', dlogl='4.82e-01', energy_flux='2.93e-05', photon_flux2='5.48e-08', job_status='DONE', time_completed='2022-12-23 01:20:17.578401', photon_index_error2='0.50', photon_index2='2.31', ts='8.67', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.94', time_epoch_completed='1671787217.58', return_code='0', job_id='84094', GAL2='0.93', EG2='0.92', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='3.73e-08', ts2='9.73', photon_index='1.82' WHERE bin_id='1751' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:20:17 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 84094: <4FGL_J1903.2+5540_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 01:05:20 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:05:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:05:20 2022
Terminated at Fri Dec 23 01:20:18 2022
Results reported at Fri Dec 23 01:20:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin1751 285.808 55.6773 693187201 693446401 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 :                                   784.39 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             340.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            898 sec.

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

