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


Performing analysis on: 4FGL_J1903.2+5540_daily_bin1769
RA = 285.808, Dec = 55.6773
tmin = 697852801, tmax = 698112001
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='442104', job_status='RUN', time_executed='2023-02-15 01:15:52.314107', time_epoch_executed='1676452552.31' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442104

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442104/ft1_4FGL_J1903.2+5540_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442104/ft2_4FGL_J1903.2+5540_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442104/ft1_4FGL_J1903.2+5540_daily_bin1769.fits outfile=/scratch/kocevski/442104/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1769.fits ra=285.808 dec=55.6773 rad=12.0 tmin=697852801.0 tmax=698112001.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.41
user 4.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/442104/ft2_4FGL_J1903.2+5540_daily_bin1769.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/442104/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/442104/ft1_filtered_4FGL_J1903.2+5540_daily_bin1769.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 1273

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442104/ft1_filtered_4FGL_J1903.2+5540_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/442104/ft2_4FGL_J1903.2+5540_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/442104/ltcube_697852801_698112001_4FGL_J1903.2+5540_daily_bin1769.fits outfile=/scratch/kocevski/442104/expmap_697852801_698112001_4FGL_J1903.2+5540_daily_bin1769.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/442104/ltcube_697852801_698112001_4FGL_J1903.2+5540_daily_bin1769.fits
.....................!
real 190.08
user 185.55
sys 4.02

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/442104/ft1_filtered_4FGL_J1903.2+5540_daily_bin1769.fits scfile=/scratch/kocevski/442104/ft2_4FGL_J1903.2+5540_daily_bin1769.fits outfile=/scratch/kocevski/442104/cmap_697852801_698112001_4FGL_J1903.2+5540_daily_bin1769.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442104/ft1_filtered_4FGL_J1903.2+5540_daily_bin1769.fits scfile=/scratch/kocevski/442104/ft2_4FGL_J1903.2+5540_daily_bin1769.fits outfile=/scratch/kocevski/442104/cmap_HighResolution_697852801_698112001_4FGL_J1903.2+5540_daily_bin1769.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46758       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38769E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .27066       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13912       1.0000          .0000       .10000E+07
     5 'norm      '    1.0645       1.0000          .0000       .10000E+07
     6 'norm      '    25.629       1.0000          .0000       .10000E+07
     7 'norm      '    .23042E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .14063E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    40.849       1.0000          .0000       .10000E+07
    10 'norm      '    1.1953       1.0000          .0000       .10000E+07
    11 'Prefactor '    .52857       1.0000          .0000       .10000E+07
    12 'norm      '    7.5328       1.0000          .0000       .10000E+07
    13 'norm      '    .23177       1.0000          .0000       .10000E+07
    14 'norm      '    23.690       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.3847       1.0000          .0000       .10000E+07
    16 'Prefactor '    45.373       1.0000          .0000       .10000E+07
    17 'norm      '    2.8801       1.0000          .0000       .10000E+07
    18 'norm      '    8.1100       1.0000          .0000       .10000E+07
    19 'Normalizat'    .58970       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1179       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=   12927.89     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1630 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36082E-07    162.19       -.48099E-05** at limit **
   2  Prefactor     .77716E-09    11.544       -.22703E-06** at limit **
   3  Prefactor     .25715E-04    23.214       -.61613E-05** at limit **
   4  Prefactor     .32030E-07    64.786       -.11600E-05** at limit **
   5  norm          1.0617        7.1221        .10018E-07   -.93857E-03
   6  norm          25.911        9.9200        .29459E-06    .33898E-01
   7  norm          .55511E-10    4.0970        .86559E-07** at limit **
   8  Prefactor     .48511E-06    26.313       -.11009E-05** at limit **
   9  Prefactor     40.905        4.6605        .55869E-06   -.10431    
  10  norm          1.1968        2.5140        .14379E-06    .25719E-02
  11  Prefactor     .52396        1.5279        .51418E-07    .21118E-02
  12  norm          7.5333        2.6320        .25238E-07    .36405E-02
  13  norm          .24941        8.1521       -.92504E-06** at limit **
  14  norm          23.391        9.2332        .13574E-05    .74402E-01
  15  Prefactor     3.3428        10.235       -.44670E-05   -.99153E-02
  16  Prefactor     45.319        2.6382        .21253E-06   -.38544E-01
  17  norm          2.8825        1.4189       -.68606E-08   -.16446E-01
  18  norm          8.1013        1.2056       -.16731E-06   -.33845E-02
  19  Normalizat    .58984        .18900       -.70135E-05   -.25333E-04
  20  Prefactor     1.1180        .79335E-01    .13296E-05    .24115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.60822e-08
  Prefactor  = 7.77156e-10
  Prefactor  = 2.57147e-05
  Prefactor  = 3.20299e-08
  norm       = 1.06171
  norm       = 25.9114
  norm       = 5.55112e-11
  Prefactor  = 4.85112e-07
  Prefactor  = 40.9054
  norm       = 1.19678
  Prefactor  = 0.523962
  norm       = 7.53331
  norm       = 0.249415
  norm       = 23.3912
  Prefactor  = 3.34284
  Prefactor  = 45.3189
  norm       = 2.88252
  norm       = 8.10132
  Normalizat = 0.589839
  Prefactor  = 1.11796
 **********
 **   18 **HESSE 
 **********

 FCN=   12927.89     FROM HESSE     STATUS=OK           347 CALLS     1977 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36082E-07    164.73        .82040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .77716E-09    11.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .25715E-04    11.582        .14284E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32030E-07    69.262        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0617        7.0540        .11828E-02   -1.5687    
   6  norm          25.911        11.579        .19757E-03   -1.5606    
   7  norm          .55511E-10    4.1081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .48511E-06    27.714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.905        75.596        .15648E-03   -1.5580    
  10  norm          1.1968        2.6284        .10397E-02   -1.5686    
  11  Prefactor     .52396        1.5581        .75886E-03   -1.5693    
  12  norm          7.5333        2.6468        .36516E-03   -1.5653    
  13  norm          .24941        2.4227        .59018E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          23.391        11.521        .20550E-03   -1.5611    
  15  Prefactor     3.3428        14.124        .54972E-03   -1.5671    
  16  Prefactor     45.319        24.868        .14847E-03   -1.5573    
  17  norm          2.8825        1.4782        .59864E-03   -1.5674    
  18  norm          8.1013        14.669        .35182E-03   -1.5651    
  19  Normalizat    .58984        .19137        .11213       -1.0842    
  20  Prefactor     1.1180        .76451E-01    .36942E-01   -.88895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79659e-06
Minuit parameter uncertainties:
  1  0.00487596
  2  0.000187578
  3  0.0345161
  4  0.00297778
  5  5.47333
  6  11.5794
  7  3.1055e-05
  8  0.0073334
  9  75.5981
  10  2.62839
  11  1.55814
  12  2.6468
  13  1.55469
  14  11.521
  15  13.7426
  16  24.8685
  17  1.47821
  18  14.6693
  19  0.191583
  20  0.0764586
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  7.533e+00  2.647e+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.118e+00  7.646e-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:  5.898e-01  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.38
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 7.21e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 6.84e-05 +/- 2.40e-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) = 12927.7242765
delta logL = 0.167892166581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12927.7207507
delta logL = 0.171417997986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0716       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9809       1.0000          .0000       5.0000    
     3 'Normalizat'    .57830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1198       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=   12927.72     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0715        2.6894        .99250E-05    .37709E-02
   2  alpha         1.9809        .28622        .99403E-02    .95766E-04
   3  Normalizat    .57832        .18372        .50174E-03    .62130E-04
   4  Prefactor     1.1198        .78874E-01    .15852E-03    .87783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.07151
  alpha      = 1.98094
  Normalizat = 0.578317
  Prefactor  = 1.11975
 **********
 **   18 **HESSE 
 **********

 FCN=   12927.72     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0715        2.6475        .39700E-06   -1.5655    
   2  alpha         1.9809        .28170        .39761E-03   -.20915    
   3  Normalizat    .57832        .18371        .20069E-04   -1.0891    
   4  Prefactor     1.1198        .78882E-01    .63407E-05   -.88838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47644e-11
Minuit parameter uncertainties:
  1  2.64754
  2  0.282322
  3  0.183908
  4  0.0788906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442104': 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) = 12927.7207507
delta logL = 0.171418040645

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  7.072e+00  2.648e+00  0.000e+00  1.000e+06 ( 1.000e-12)
335        alpha:  1.981e+00  2.823e-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.120e+00  7.889e-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:  5.783e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.80
Ra Dec: 285.808 55.677
Photon Index (Free Index): 1.98 +/- 0.28
Photon Flux (Free Index): 8.42e-08 +/- 3.50e-08
Energy Flux (Free Index): 5.67e-05 +/- 2.58e-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/442104/cmap_HighResolution_697852801_698112001_4FGL_J1903.2+5540_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.21e-08', energy_flux2='5.67e-05', photon_flux_error='2.53e-08', dlogl='1.71e-01', energy_flux='6.84e-05', photon_flux2='8.42e-08', job_status='DONE', time_completed='2023-02-15 01:30:36.450053', photon_index_error2='0.28', photon_index2='1.98', ts='22.38', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='0.59', time_epoch_completed='1676453436.45', return_code='0', job_id='442104', GAL2='1.12', EG2='0.58', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='3.50e-08', ts2='22.80', photon_index='1.82' WHERE bin_id='1769' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:30:36 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 442104: <4FGL_J1903.2+5540_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 01:15:20 2023
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:15:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:15:20 2023
Terminated at Wed Feb 15 01:30:36 2023
Results reported at Wed Feb 15 01:30:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin1769 285.808 55.6773 697852801 698112001 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 :                                   885.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            916 sec.

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

