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


Performing analysis on: 4FGL_J1903.2+5540_daily_bin1502
RA = 285.808, Dec = 55.6773
tmin = 628646401, tmax = 628905601
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='510651', job_status='RUN', time_executed='2021-09-21 23:01:28.570626', time_epoch_executed='1632290488.57' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510651/ft1_4FGL_J1903.2+5540_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510651/ft2_4FGL_J1903.2+5540_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510651/ft1_4FGL_J1903.2+5540_daily_bin1502.fits outfile=/scratch/kocevski/510651/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1502.fits ra=285.808 dec=55.6773 rad=12.0 tmin=628646401.0 tmax=628905601.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.57
user 3.29
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510651/ft1_filtered_4FGL_J1903.2+5540_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/510651/ft2_4FGL_J1903.2+5540_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/510651/ltcube_628646401_628905601_4FGL_J1903.2+5540_daily_bin1502.fits outfile=/scratch/kocevski/510651/expmap_628646401_628905601_4FGL_J1903.2+5540_daily_bin1502.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/510651/ltcube_628646401_628905601_4FGL_J1903.2+5540_daily_bin1502.fits
.....................!
real 190.56
user 186.21
sys 3.99

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/510651/ft1_filtered_4FGL_J1903.2+5540_daily_bin1502.fits scfile=/scratch/kocevski/510651/ft2_4FGL_J1903.2+5540_daily_bin1502.fits outfile=/scratch/kocevski/510651/cmap_628646401_628905601_4FGL_J1903.2+5540_daily_bin1502.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510651/ft1_filtered_4FGL_J1903.2+5540_daily_bin1502.fits scfile=/scratch/kocevski/510651/ft2_4FGL_J1903.2+5540_daily_bin1502.fits outfile=/scratch/kocevski/510651/cmap_HighResolution_628646401_628905601_4FGL_J1903.2+5540_daily_bin1502.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16047E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.988       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.953       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.477       1.0000         .10000E-03   10000.    
    13 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31799       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4724       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.558       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4312       1.0000         .10000E-03   10000.    
    21 'norm      '    17.724       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6941       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78310       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=   10648.82     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2162 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    242.80        .49342E-06** at limit **
   2  Prefactor     11.986        19.641        .14968E-06   -.19183E-04
   3  Prefactor     .10000E-03    4.4733        .20371E-07** at limit **
   4  Prefactor     .10000E-03    11.420       -.30322E-07** at limit **
   5  Prefactor     .10000E-03    12.474       -.12294E-06** at limit **
   6  Prefactor     .10000E-03    139.30        .84942E-07** at limit **
   7  norm          .10000E-03    7.3980       -.59790E-08** at limit **
   8  Prefactor     .10000E-03    13.551        .11970E-06** at limit **
   9  norm          .10000E-03    3.9669       -.88380E-07** at limit **
  10  norm          19.952        12.583       -.18528E-06   -.91920E-04
  11  Prefactor     .10000E-03    14.101        .24382E-06** at limit **
  12  Prefactor     53.595        51.303        .39807E-06    .86846E-04
  13  norm          .10000E-03    .83407        .86137E-07** at limit **
  14  Prefactor     .31842        1.3455        .18465E-05    .30907E-05
  15  norm          3.4725        2.2869        .60760E-07   -.24098E-04
  16  norm          .10000E-03    1.8814        .75622E-08** at limit **
  17  norm          .10000E-03    3.3600        .91579E-08** at limit **
  18  Prefactor     .10000E-03    14.535       -.11646E-06** at limit **
  19  Prefactor     10.559        24.720        .26001E-06   -.14577E-05
  20  norm          3.4311        1.8108       -.20146E-08    .14836E-05
  21  norm          17.724        17.988        .11099E-07   -.43215E-06
  22  Normalizat    1.6939        .19428       -.33499E-06   -.78907E-04
  23  Prefactor     .78316        .77101E-01   -.70374E-07   -.12483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 11.9857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.952
  Prefactor  = 0.0001
  Prefactor  = 53.5955
  norm       = 0.0001
  Prefactor  = 0.318424
  norm       = 3.47253
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5593
  norm       = 3.43107
  norm       = 17.7244
  Normalizat = 1.69387
  Prefactor  = 0.78316
 **********
 **   18 **HESSE 
 **********

 FCN=   10648.82     FROM HESSE     STATUS=OK           364 CALLS     2526 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    243.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.986        19.650        .11570E-03   -1.5015    
   3  Prefactor     .10000E-03    4.4885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    139.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.4906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.9789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.952        12.595        .89666E-04   -1.4814    
  11  Prefactor     .10000E-03    14.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.595        51.467        .27424E-03   -1.4242    
  13  norm          .10000E-03    .83699        .92033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .31842        1.3458        .23427E-03   -1.5595    
  15  norm          3.4725        2.2828        .12310E-03   -1.5335    
  16  norm          .10000E-03    1.8883        .13823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.559        24.757        .12331E-03   -1.5058    
  20  norm          3.4311        1.8125        .94373E-04   -1.5337    
  21  norm          17.724        18.011        .95133E-04   -1.4866    
  22  Normalizat    1.6939        .21937        .33845E-03   -.72467    
  23  Prefactor     .78316        .87287E-01    .18560E-03   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25796e-11
Minuit parameter uncertainties:
  1  0.000765191
  2  19.6611
  3  1.21028e-06
  4  1.52523e-05
  5  3.99743e-05
  6  2.06842e-05
  7  3.49917e-06
  8  3.85457e-05
  9  8.76304e-07
  10  12.5969
  11  3.34026e-05
  12  51.5094
  13  6.71914e-09
  14  1.30908
  15  2.28282
  16  3.31433e-07
  17  5.9294e-07
  18  3.02221e-05
  19  24.7814
  20  1.81257
  21  18.0169
  22  0.219499
  23  0.087302
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  3.473e+00  2.283e+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:  7.832e-01  8.730e-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:  1.694e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.20
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 2.07e-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) = 10648.7415254
delta logL = 0.0803652888626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10648.7409047
delta logL = 0.0809859776182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1826       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0061       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78410       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=   10648.74     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      230 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1826        44.037        .56787E-02    .16076E-02
   2  alpha         2.0061        3.4746        .39439        .67173E-04
   3  Normalizat    1.6883        .93746E-01    .76581E-01    .95935E-04
   4  Prefactor     .78410        .31728E-01    .43510E-01    .19721E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18265
  alpha      = 2.00615
  Normalizat = 1.68834
  Prefactor  = 0.784102
 **********
 **   18 **HESSE 
 **********

 FCN=   10648.74     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1826        2.3527        .11499E-03   -1.5351    
   2  alpha         2.0061        .48924        .13700E-01   -.19885    
   3  Normalizat    1.6883        .21876        .33885E-03   -.72615    
   4  Prefactor     .78410        .86080E-01    .18549E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11689e-10
Minuit parameter uncertainties:
  1  2.35275
  2  0.492546
  3  0.21889
  4  0.0860947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510651': 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) = 10648.7409047
delta logL = 0.0809859776728

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  3.183e+00  2.353e+00  1.000e-04  1.000e+04 ( 1.000e-12)
335        alpha:  2.006e+00  4.925e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  8.376e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.263e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  7.841e-01  8.609e-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:  1.688e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 285.808 55.677
Photon Index (Free Index): 2.01 +/- 0.49
Photon Flux (Free Index): 3.93e-08 +/- 2.85e-08
Energy Flux (Free Index): 2.52e-05 +/- 2.19e-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/510651/cmap_HighResolution_628646401_628905601_4FGL_J1903.2+5540_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='2.52e-05', photon_flux_error='2.19e-08', dlogl='8.10e-02', energy_flux='3.15e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-21 23:17:03.289287', photon_index_error2='0.49', photon_index2='2.01', ts='4.20', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='1.69', time_epoch_completed='1632291423.29', return_code='0', job_id='510651', GAL2='0.78', EG2='1.69', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='2.85e-08', ts2='4.37', photon_index='1.82' WHERE bin_id='1502' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 23:17:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 510651: <4FGL_J1903.2+5540_daily_bin1502> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin1502> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 23:01:14 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 23:01:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 23:01:15 2021
Terminated at Tue Sep 21 23:17:04 2021
Results reported at Tue Sep 21 23:17:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin1502 285.808 55.6773 628646401 628905601 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 :                                   877.05 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             358.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

