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


Performing analysis on: 4FGL_J1903.2+5540_daily_bin1008
RA = 285.808, Dec = 55.6773
tmin = 500601601, tmax = 500860801
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='507563', job_status='RUN', time_executed='2021-09-21 22:54:38.636551', time_epoch_executed='1632290078.64' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507563/ft1_4FGL_J1903.2+5540_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507563/ft2_4FGL_J1903.2+5540_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507563/ft1_4FGL_J1903.2+5540_daily_bin1008.fits outfile=/scratch/kocevski/507563/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1008.fits ra=285.808 dec=55.6773 rad=12.0 tmin=500601601.0 tmax=500860801.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.26
user 4.98
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507563/ft1_filtered_4FGL_J1903.2+5540_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/507563/ft2_4FGL_J1903.2+5540_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/507563/ltcube_500601601_500860801_4FGL_J1903.2+5540_daily_bin1008.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/507563/ft2_4FGL_J1903.2+5540_daily_bin1008.fits
.....................!
real 12.37
user 12.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507563/ft1_filtered_4FGL_J1903.2+5540_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/507563/ft2_4FGL_J1903.2+5540_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/507563/ltcube_500601601_500860801_4FGL_J1903.2+5540_daily_bin1008.fits outfile=/scratch/kocevski/507563/expmap_500601601_500860801_4FGL_J1903.2+5540_daily_bin1008.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/507563/ltcube_500601601_500860801_4FGL_J1903.2+5540_daily_bin1008.fits
.....................!
real 191.34
user 185.84
sys 5.13

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/507563/ft1_filtered_4FGL_J1903.2+5540_daily_bin1008.fits scfile=/scratch/kocevski/507563/ft2_4FGL_J1903.2+5540_daily_bin1008.fits outfile=/scratch/kocevski/507563/cmap_500601601_500860801_4FGL_J1903.2+5540_daily_bin1008.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/507563/ft1_filtered_4FGL_J1903.2+5540_daily_bin1008.fits scfile=/scratch/kocevski/507563/ft2_4FGL_J1903.2+5540_daily_bin1008.fits outfile=/scratch/kocevski/507563/cmap_HighResolution_500601601_500860801_4FGL_J1903.2+5540_daily_bin1008.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1921       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7811       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7090       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.457       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.4225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4794       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1872       1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.042       1.0000         .10000E-03   10000.    
    20 'norm      '    5.2350       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70884       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1409       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.

 FCN=   4797.965     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2528 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    109.04        .58337E-06** at limit **
   2  Prefactor     .10000E-03    51.148        .11941E-05** at limit **
   3  Prefactor     8.1800        17.888        .50396E-06   -.95178E-05
   4  Prefactor     .10000E-03    18.919        .90766E-06** at limit **
   5  Prefactor     .10000E-03    32.879       -.17394E-05** at limit **
   6  Prefactor     3.2856        2243.5       -.22364E-03    .20753E-05
   7  norm          4.7045        13.170        .10721E-05    .23606E-04
   8  Prefactor     .10000E-03    68.088        .11166E-05** at limit **
   9  norm          15.453        15.360        .94224E-07   -.10582E-04
  10  norm          .10000E-03    6.0268        .85583E-07** at limit **
  11  Prefactor     .10000E-03    68.209        .20616E-05** at limit **
  12  Prefactor     .10000E-03    68.590       -.38675E-07** at limit **
  13  norm          5.4225        3.9573        .33229E-07   -.29831E-04
  14  Prefactor     .10000E-03    5.0504        .10321E-05** at limit **
  15  norm          5.4791        4.8194        .20286E-07   -.26919E-05
  16  norm          .10000E-03    6.1082        .24174E-06** at limit **
  17  norm          .10000E-03    28.336        .86319E-06** at limit **
  18  Prefactor     8.1822        18.085        .69400E-06    .19974E-04
  19  Prefactor     64.942        103.68       -.37614E-06   -.21678E-05
  20  norm          5.2353        2.1196       -.15324E-07    .11430E-04
  21  norm          .10000E-03    9.0790        .10705E-06** at limit **
  22  Normalizat    .70936        .33317       -.47914E-05   -.56705E-04
  23  Prefactor     1.1408        .14027        .14318E-05   -.14685E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.18003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28563
  norm       = 4.70446
  Prefactor  = 0.0001
  norm       = 15.4528
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.42246
  Prefactor  = 0.0001
  norm       = 5.47912
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.18224
  Prefactor  = 64.942
  norm       = 5.23531
  norm       = 0.0001
  Normalizat = 0.709356
  Prefactor  = 1.14076
 **********
 **   18 **HESSE 
 **********

 FCN=   4797.965     FROM HESSE     STATUS=OK           368 CALLS     2896 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    109.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1800        17.919        .14007E-03   -1.5136    
   4  Prefactor     .10000E-03    19.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2856        2265.9        .20761E-02   -1.5345    
   7  norm          4.7045        13.166        .18544E-03   -1.5274    
   8  Prefactor     .10000E-03    68.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.453        15.348        .10187E-03   -1.4922    
  10  norm          .10000E-03    6.0282        .16608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    69.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    68.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4225        3.9549        .11290E-03   -1.5242    
  14  Prefactor     .10000E-03    5.2365        .30394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4791        4.8206        .13869E-03   -1.5240    
  16  norm          .10000E-03    6.1200        .16721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    28.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1822        18.050        .14012E-03   -1.5136    
  19  Prefactor     64.942        104.63        .24881E-03   -1.4094    
  20  norm          5.2353        2.1199        .62056E-04   -1.5250    
  21  norm          .10000E-03    9.0830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .70936        .35295        .47834E-03   -1.0352    
  23  Prefactor     1.1408        .15090        .17520E-03   -.88174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7758e-11
Minuit parameter uncertainties:
  1  5.33729e-05
  2  0.000136057
  3  17.9312
  4  7.47356e-05
  5  2.24758e-05
  6  179.888
  7  13.1736
  8  0.000144213
  9  15.3524
  10  3.2859e-06
  11  0.000599512
  12  6.96965e-05
  13  3.95512
  14  3.18687e-05
  15  4.8209
  16  9.96321e-06
  17  9.54302e-05
  18  18.0623
  19  104.927
  20  2.1199
  21  4.64137e-06
  22  0.354092
  23  0.150957
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  5.479e+00  4.821e+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.141e+00  1.510e-01  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:  7.094e-01  3.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.09
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 5.25e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 4.98e-05 +/- 4.38e-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) = 4797.96439057
delta logL = 0.000480699452055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4797.96435975
delta logL = 0.00051151516891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4561       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7891       1.0000          .0000       5.0000    
     3 'Normalizat'    .71043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1406       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=   4797.964     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4292        191.74        .43006E-02   -.31825E-04
   2  alpha         1.7821        3.8278        .43481       -.25459E-05
   3  Normalizat    .71078        .31360        .10778        .26886E-04
   4  Prefactor     1.1406        .75602E-01    .36214E-01   -.82791E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 5.42918
  alpha      = 1.78214
  Normalizat = 0.710776
  Prefactor  = 1.14063
 **********
 **   18 **HESSE 
 **********

 FCN=   4797.964     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4292        5.0392        .13945E-03   -1.5242    
   2  alpha         1.7821        1.0108        .18507E-01   -.29124    
   3  Normalizat    .71078        .31722        .47790E-03   -1.0347    
   4  Prefactor     1.1406        .14436        .17522E-03   -.88178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56342e-13
Minuit parameter uncertainties:
  1  5.03963
  2  1.04354
  3  0.318041
  4  0.144414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507563': 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) = 4797.96433221
delta logL = 0.000539058262802

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  5.429e+00  5.040e+00  1.000e-04  1.000e+04 ( 1.000e-12)
335        alpha:  1.782e+00  1.044e+00  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.141e+00  1.444e-01  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:  7.108e-01  3.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.09
Ra Dec: 285.808 55.677
Photon Index (Free Index): 1.78 +/- 1.04
Photon Flux (Free Index): 4.98e-08 +/- 8.75e-08
Energy Flux (Free Index): 5.12e-05 +/- 6.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/507563/cmap_HighResolution_500601601_500860801_4FGL_J1903.2+5540_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.25e-08', energy_flux2='5.12e-05', photon_flux_error='4.62e-08', dlogl='5.39e-04', energy_flux='4.98e-05', photon_flux2='4.98e-08', job_status='DONE', time_completed='2021-09-21 23:04:35.180591', photon_index_error2='1.04', photon_index2='1.78', ts='6.09', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='6.43e-05', EG='0.71', time_epoch_completed='1632290675.18', return_code='0', job_id='507563', GAL2='1.14', EG2='0.71', return_code2='0', energy_flux_error='4.38e-05', photon_flux_error2='8.75e-08', ts2='6.09', photon_index='1.82' WHERE bin_id='1008' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 23:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 507563: <4FGL_J1903.2+5540_daily_bin1008> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin1008> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 21 22:50:59 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:51:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 22:51:01 2021
Terminated at Tue Sep 21 23:04:35 2021
Results reported at Tue Sep 21 23:04:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin1008 285.808 55.6773 500601601 500860801 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 :                                   594.44 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             259.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

