/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 = 7346
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1903.2+5540_daily_bin119
RA = 285.808, Dec = 55.6773
tmin = 270172801, tmax = 270432001
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='501797', job_status='RUN', time_executed='2021-09-21 22:32:57.928240', time_epoch_executed='1632288777.93' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501797/ft1_4FGL_J1903.2+5540_daily_bin119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501797/ft2_4FGL_J1903.2+5540_daily_bin119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501797/ft1_4FGL_J1903.2+5540_daily_bin119.fits outfile=/scratch/kocevski/501797/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin119.fits ra=285.808 dec=55.6773 rad=12.0 tmin=270172801.0 tmax=270432001.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 1.65
user 1.46
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501797/ft1_filtered_4FGL_J1903.2+5540_daily_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/501797/ft2_4FGL_J1903.2+5540_daily_bin119.fits sctable="SC_DATA" expcube=/scratch/kocevski/501797/ltcube_270172801_270432001_4FGL_J1903.2+5540_daily_bin119.fits outfile=/scratch/kocevski/501797/expmap_270172801_270432001_4FGL_J1903.2+5540_daily_bin119.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/501797/ltcube_270172801_270432001_4FGL_J1903.2+5540_daily_bin119.fits
.....................!
real 192.29
user 187.98
sys 3.90

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/501797/ft1_filtered_4FGL_J1903.2+5540_daily_bin119.fits scfile=/scratch/kocevski/501797/ft2_4FGL_J1903.2+5540_daily_bin119.fits outfile=/scratch/kocevski/501797/cmap_270172801_270432001_4FGL_J1903.2+5540_daily_bin119.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501797/ft1_filtered_4FGL_J1903.2+5540_daily_bin119.fits scfile=/scratch/kocevski/501797/ft2_4FGL_J1903.2+5540_daily_bin119.fits outfile=/scratch/kocevski/501797/cmap_HighResolution_270172801_270432001_4FGL_J1903.2+5540_daily_bin119.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.59
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    36.272       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.770       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9307       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8327       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8624       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2298       1.0000         .10000E-03   10000.    
    16 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.458       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .69064E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8002       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6564       1.0000         .10000E-03   10000.    
    21 'norm      '    4.0842       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85103       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0375       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=   11775.40     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2166 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.502        .90712E-02** at limit **
   2  Prefactor     .10000E-03    19.975        .90712E-02** at limit **
   3  Prefactor     .10000E-03    3.5030        .90712E-02** at limit **
   4  Prefactor     .10000E-03    6.7782        .90712E-02** at limit **
   5  Prefactor     .10000E-03    16.842        .90712E-02** at limit **
   6  Prefactor     .10002E-03    242.86        .90712E-02** at limit **
   7  norm          36.271        10.375        .16636E-02    .42274E-04
   8  Prefactor     25.769        26.224        .19728E-02   -.20445E-03
   9  norm          3.9306        4.9592        .50869E-02   -.10259E-02
  10  norm          .10000E-03    4.7131        .90712E-02** at limit **
  11  Prefactor     .10000E-03    4.3435        .90712E-02** at limit **
  12  Prefactor     .10000E-03    26.733        .90712E-02** at limit **
  13  norm          2.8330        2.4574        .60405E-02   -.53292E-04
  14  Prefactor     5.8624        2.4026        .41466E-02    .17735E-03
  15  norm          2.2298        1.7535        .68829E-02    .10135E-03
  16  norm          .10000E-03    2.3442        .90712E-02** at limit **
  17  norm          12.460        9.4836        .28372E-02   -.96969E-04
  18  Prefactor     .10000E-03    8.9315        .10494    ** at limit **
  19  Prefactor     7.8000        27.252        .35893E-02    .45306E-03
  20  norm          2.6566        1.5143        .62526E-02   -.60490E-04
  21  norm          4.0849        21.516        .49874E-02    .14640E-03
  22  Normalizat    .85104        .19202        .98437E-01    .29268E-04
  23  Prefactor     1.0375        .79346E-01    .40703E-01   -.87844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 36.271
  Prefactor  = 25.7688
  norm       = 3.93064
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83296
  Prefactor  = 5.86242
  norm       = 2.22983
  norm       = 0.0001
  norm       = 12.4603
  Prefactor  = 0.0001
  Prefactor  = 7.79996
  norm       = 2.65662
  norm       = 4.08491
  Normalizat = 0.851036
  Prefactor  = 1.03751
 **********
 **   18 **HESSE 
 **********

 FCN=   11775.40     FROM HESSE     STATUS=OK           370 CALLS     2536 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    242.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          36.271        10.389        .66543E-04   -1.4503    
   8  Prefactor     25.769        26.220        .78912E-04   -1.4692    
   9  norm          3.9306        4.9509        .20348E-03   -1.5311    
  10  norm          .10000E-03    4.7535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8330        2.4606        .15385E-03   -1.5371    
  14  Prefactor     5.8624        2.4018        .10320E-03   -1.5224    
  15  norm          2.2298        1.7521        .12381E-03   -1.5409    
  16  norm          .10000E-03    2.3588        .16191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.460        9.4611        .11349E-03   -1.5002    
  18  Prefactor     .10000E-03    43.895        .62276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8000        27.301        .71787E-03   -1.5149    
  20  norm          2.6566        1.5123        .95279E-04   -1.5382    
  21  norm          4.0849        21.466        .19949E-03   -1.5304    
  22  Normalizat    .85104        .21026        .43620E-03   -.98203    
  23  Prefactor     1.0375        .88186E-01    .16814E-03   -.91489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30947e-09
Minuit parameter uncertainties:
  1  0.00011761
  2  2.9254e-05
  3  8.5555e-06
  4  2.81183e-05
  5  1.29977e-05
  6  0.00472518
  7  10.3891
  8  26.2314
  9  4.95142
  10  1.26774e-05
  11  1.82434e-05
  12  1.64157e-05
  13  2.46067
  14  2.40188
  15  1.75214
  16  1.01567e-05
  17  9.46226
  18  3.55259e-05
  19  27.3449
  20  1.5123
  21  18.7387
  22  0.210457
  23  0.088198
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  2.230e+00  1.752e+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.038e+00  8.820e-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:  8.510e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.53
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.59e-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) = 11772.7395047
delta logL = 2.6571034767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11772.6481381
delta logL = 2.74847009113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68343       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4768       1.0000          .0000       5.0000    
     3 'Normalizat'    .72600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0638       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=   11772.65     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      218 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68315        3.0675        .79037E-02   -.13523E-02
   2  alpha         3.4772        1.7879        .22229       -.18244E-05
   3  Normalizat    .72589        .65948E-01    .10556        .46659E-03
   4  Prefactor     1.0638        .26460E-01    .39162E-01    .80870E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.68315
  alpha      = 3.47717
  Normalizat = 0.725885
  Prefactor  = 1.06381
 **********
 **   18 **HESSE 
 **********

 FCN=   11772.65     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68315        2.5060        .35620E-04   -1.5543    
   2  alpha         3.4772        1.7561        .90331E-02    .40157    
   3  Normalizat    .72589        .22764        .46800E-03   -1.0288    
   4  Prefactor     1.0638        .90981E-01    .16607E-03   -.90632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22885e-09
Minuit parameter uncertainties:
  1  2.5064
  2  1.99774
  3  0.227936
  4  0.0909941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501797': 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) = 11772.6481377
delta logL = 2.74847046592

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  6.831e-01  2.506e+00  1.000e-04  1.000e+04 ( 1.000e-12)
335        alpha:  3.477e+00  1.998e+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.064e+00  9.099e-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:  7.259e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.42
Ra Dec: 285.808 55.677
Photon Index (Free Index): 3.48 +/- 2.00
Photon Flux (Free Index): 1.27e-07 +/- 8.31e-08
Energy Flux (Free Index): 2.28e-05 +/- 9.79e-06

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/501797/cmap_HighResolution_270172801_270432001_4FGL_J1903.2+5540_daily_bin119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='2.28e-05', photon_flux_error='1.68e-08', dlogl='2.75e+00', energy_flux='2.03e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-21 22:48:06.596393', photon_index_error2='2.00', photon_index2='3.48', ts='4.53', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='9.79e-06', EG='0.85', time_epoch_completed='1632289686.6', return_code='0', job_id='501797', GAL2='1.06', EG2='0.73', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='8.31e-08', ts2='10.42', photon_index='1.82' WHERE bin_id='119' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:48:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 501797: <4FGL_J1903.2+5540_daily_bin119> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin119> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:32:42 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:32:44 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:32:44 2021
Terminated at Tue Sep 21 22:48:07 2021
Results reported at Tue Sep 21 22:48:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin119 285.808 55.6773 270172801 270432001 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 :                                   904.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

