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


Performing analysis on: 4FGL_J1903.2+5540_daily_bin1056
RA = 285.808, Dec = 55.6773
tmin = 513043201, tmax = 513302401
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='507634', job_status='RUN', time_executed='2021-09-21 22:51:21.986718', time_epoch_executed='1632289881.99' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507634

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507634/ft1_4FGL_J1903.2+5540_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507634/ft2_4FGL_J1903.2+5540_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507634/ft1_4FGL_J1903.2+5540_daily_bin1056.fits outfile=/scratch/kocevski/507634/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1056.fits ra=285.808 dec=55.6773 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.50
user 6.23
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507634/ft2_4FGL_J1903.2+5540_daily_bin1056.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/507634/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/507634/ft1_filtered_4FGL_J1903.2+5540_daily_bin1056.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.46
user 0.32
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507634/ft1_filtered_4FGL_J1903.2+5540_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/507634/ft2_4FGL_J1903.2+5540_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/507634/ltcube_513043201_513302401_4FGL_J1903.2+5540_daily_bin1056.fits outfile=/scratch/kocevski/507634/expmap_513043201_513302401_4FGL_J1903.2+5540_daily_bin1056.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/507634/ltcube_513043201_513302401_4FGL_J1903.2+5540_daily_bin1056.fits
.....................!
real 190.49
user 185.02
sys 5.11

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/507634/ft1_filtered_4FGL_J1903.2+5540_daily_bin1056.fits scfile=/scratch/kocevski/507634/ft2_4FGL_J1903.2+5540_daily_bin1056.fits outfile=/scratch/kocevski/507634/cmap_513043201_513302401_4FGL_J1903.2+5540_daily_bin1056.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507634/ft1_filtered_4FGL_J1903.2+5540_daily_bin1056.fits scfile=/scratch/kocevski/507634/ft2_4FGL_J1903.2+5540_daily_bin1056.fits outfile=/scratch/kocevski/507634/cmap_HighResolution_513043201_513302401_4FGL_J1903.2+5540_daily_bin1056.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.533       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31120E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.3114       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.323       1.0000         .10000E-03   10000.    
     9 'norm      '    23.236       1.0000         .10000E-03   10000.    
    10 'norm      '    31.857       1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.600       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0089       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0411       1.0000         .10000E-03   10000.    
    17 'norm      '    39.943       1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.431       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.072       1.0000         .10000E-03   10000.    
    20 'norm      '    8.3769       1.0000         .10000E-03   10000.    
    21 'norm      '    .21113E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .56405       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1499       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=   5230.579     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     2961 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.089        142.29        .59095E-04   -.52712E-05
   2  Prefactor     .10000E-03    25.789        .18142E-02** at limit **
   3  Prefactor     .10000E-03    7.2326        .18142E-02** at limit **
   4  Prefactor     19.532        31.211        .90623E-04    .16810E-04
   5  Prefactor     47.044        50.799        .58449E-04    .42480E-04
   6  Prefactor     .10001E-03    606.21        .21374E-02** at limit **
   7  norm          8.3097        15.898        .13906E-03    .29268E-04
   8  Prefactor     27.324        44.022        .76641E-04    .94936E-05
   9  norm          23.236        16.776        .83097E-04    .29278E-04
  10  norm          31.857        20.691        .70991E-04    .19377E-04
  11  Prefactor     59.597        34.981        .51970E-04    .72058E-04
  12  Prefactor     .10000E-03    97.998        .18142E-02** at limit **
  13  norm          1.4230        5.4725        .31971E-03   -.24465E-04
  14  Prefactor     .10000E-03    .88362        .66291E-03** at limit **
  15  norm          3.0089        3.6361        .14667E-03    .94175E-04
  16  norm          7.0412        7.2986        .15118E-03    .34817E-04
  17  norm          39.943        26.845        .63423E-04    .39077E-04
  18  Prefactor     58.432        36.410        .52484E-04    .28593E-04
  19  Prefactor     13.060        30.555        .11079E-03    .48538E-04
  20  norm          8.3772        4.0213        .91118E-04   -.38938E-03
  21  norm          .10004E-03    36.728        .12277    ** at limit **
  22  Normalizat    .56404        .36999        .57206E-03   -.37163E-04
  23  Prefactor     1.1499        .13490        .16645E-03   -.17234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.0885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5316
  Prefactor  = 47.0437
  Prefactor  = 0.000100007
  norm       = 8.30972
  Prefactor  = 27.3243
  norm       = 23.236
  norm       = 31.8567
  Prefactor  = 59.597
  Prefactor  = 0.0001
  norm       = 1.42296
  Prefactor  = 0.0001
  norm       = 3.00888
  norm       = 7.04123
  norm       = 39.943
  Prefactor  = 58.4315
  Prefactor  = 13.0602
  norm       = 8.37721
  norm       = 0.000100038
  Normalizat = 0.564036
  Prefactor  = 1.14987
 **********
 **   18 **HESSE 
 **********

 FCN=   5230.579     FROM HESSE     STATUS=OK           356 CALLS     3317 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.089        142.31        .11819E-04   -1.4349    
   2  Prefactor     .10000E-03    25.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.532        31.208        .36249E-05   -1.4824    
   5  Prefactor     47.044        50.798        .11690E-04   -1.4335    
   6  Prefactor     .10001E-03    606.22        .42749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.3097        15.895        .55623E-05   -1.5131    
   8  Prefactor     27.324        44.020        .30656E-05   -1.4662    
   9  norm          23.236        16.775        .33239E-05   -1.4744    
  10  norm          31.857        20.693        .28397E-05   -1.4579    
  11  Prefactor     59.597        34.981        .10394E-04   -1.4162    
  12  Prefactor     .10000E-03    97.998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4230        5.4718        .12789E-04   -1.5469    
  14  Prefactor     .10000E-03    .88364        .13258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0089        3.6361        .58669E-05   -1.5361    
  16  norm          7.0412        7.2983        .60473E-05   -1.5177    
  17  norm          39.943        26.844        .25369E-05   -1.4443    
  18  Prefactor     58.432        36.406        .20994E-05   -1.4178    
  19  Prefactor     13.060        30.550        .44315E-05   -1.4985    
  20  norm          8.3772        4.0188        .18224E-04   -1.5129    
  21  norm          .10004E-03    35.751        .12527       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .56404        .36989        .22883E-04   -1.0953    
  23  Prefactor     1.1499        .13489        .33289E-04   -.87888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52137e-10
Minuit parameter uncertainties:
  1  143.377
  2  1.15488e-05
  3  3.33258e-05
  4  31.2337
  5  50.8451
  6  0.00412104
  7  15.903
  8  44.0724
  9  16.7788
  10  20.6976
  11  34.9926
  12  0.000154707
  13  5.47371
  14  4.05072e-06
  15  3.63632
  16  7.29924
  17  26.852
  18  36.4199
  19  30.587
  20  4.01893
  21  0.00231966
  22  0.371518
  23  0.134931
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  3.009e+00  3.636e+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.150e+00  1.349e-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:  5.640e-01  3.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 3.30e-05

TS (Fixed Index): 1.39
Ra Dec: 285.808 55.677
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507634/likelihoodResults_513043201_513302401_4FGL_J1903.2+5540_daily_bin1056.txt

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) = 5229.59279238
delta logL = 0.986530000017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5229.58651153
delta logL = 0.992810842216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7939       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9447       1.0000          .0000       5.0000    
     3 'Normalizat'    .47294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1644       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=   5229.587     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      242 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7942        24.047        .78059E-02    .36819E-03
   2  alpha         2.9447        3.9062        .24724        .61755E-04
   3  Normalizat    .47285        .11430        .14006        .41224E-04
   4  Prefactor     1.1644        .42611E-01    .35531E-01   -.11305E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.79424
  alpha      = 2.94471
  Normalizat = 0.472848
  Prefactor  = 1.16445
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.587     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7942        2.8985        .65218E-04   -1.5440    
   2  alpha         2.9447        .88967        .94340E-02    .17883    
   3  Normalizat    .47285        .32416        .62105E-03   -1.1369    
   4  Prefactor     1.1644        .12960        .16537E-03   -.87432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15855e-11
Minuit parameter uncertainties:
  1  2.89869
  2  0.910302
  3  0.325464
  4  0.129633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507634': 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) = 5229.58651144
delta logL = 0.992810935933

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  1.794e+00  2.899e+00  1.000e-04  1.000e+04 ( 1.000e-12)
335        alpha:  2.945e+00  9.103e-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:  1.164e+00  1.296e-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:  4.728e-01  3.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 285.808 55.677
Photon Index (Free Index): 2.94 +/- 0.91
Photon Flux (Free Index): 1.13e-07 +/- 8.83e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.89e-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/507634/cmap_HighResolution_513043201_513302401_4FGL_J1903.2+5540_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-04', comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='2.56e-05', photon_flux_error='3.48e-08', dlogl='9.93e-01', energy_flux='2.73e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-21 23:03:28.823161', photon_index_error2='0.91', photon_index2='2.94', ts='1.39', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.89e-05', EG='0.56', time_epoch_completed='1632290608.82', return_code='0', job_id='507634', GAL2='1.16', EG2='0.47', return_code2='0', energy_flux_error='3.30e-05', photon_flux_error2='8.83e-08', ts2='3.50', photon_index='1.82' WHERE bin_id='1056' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 23:03:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 507634: <4FGL_J1903.2+5540_daily_bin1056> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin1056> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 21 22:51:03 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:51:05 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:05 2021
Terminated at Tue Sep 21 23:03:29 2021
Results reported at Tue Sep 21 23:03:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin1056 285.808 55.6773 513043201 513302401 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 :                                   717.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             354.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            746 sec.

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

