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


Performing analysis on: 4FGL_J1903.2+5540_daily_bin745
RA = 285.808, Dec = 55.6773
tmin = 432432001, tmax = 432691201
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='505929', job_status='RUN', time_executed='2021-09-21 22:46:16.055114', time_epoch_executed='1632289576.06' WHERE source_name='4FGL J1903.2+5540' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505929/ft1_4FGL_J1903.2+5540_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505929/ft2_4FGL_J1903.2+5540_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505929/ft1_4FGL_J1903.2+5540_daily_bin745.fits outfile=/scratch/kocevski/505929/ft1_filteredMKT_4FGL_J1903.2+5540_daily_bin745.fits ra=285.808 dec=55.6773 rad=12.0 tmin=432432001.0 tmax=432691201.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.10
user 4.87
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505929/ft1_filtered_4FGL_J1903.2+5540_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/505929/ft2_4FGL_J1903.2+5540_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/505929/ltcube_432432001_432691201_4FGL_J1903.2+5540_daily_bin745.fits outfile=/scratch/kocevski/505929/expmap_432432001_432691201_4FGL_J1903.2+5540_daily_bin745.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/505929/ltcube_432432001_432691201_4FGL_J1903.2+5540_daily_bin745.fits
.....................!
real 192.11
user 186.74
sys 5.01

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/505929/ft1_filtered_4FGL_J1903.2+5540_daily_bin745.fits scfile=/scratch/kocevski/505929/ft2_4FGL_J1903.2+5540_daily_bin745.fits outfile=/scratch/kocevski/505929/cmap_432432001_432691201_4FGL_J1903.2+5540_daily_bin745.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505929/ft1_filtered_4FGL_J1903.2+5540_daily_bin745.fits scfile=/scratch/kocevski/505929/ft2_4FGL_J1903.2+5540_daily_bin745.fits outfile=/scratch/kocevski/505929/cmap_HighResolution_432432001_432691201_4FGL_J1903.2+5540_daily_bin745.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    156.35       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.968       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.106       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.606       1.0000         .10000E-03   10000.    
    12 'Prefactor '    223.74       1.0000         .10000E-03   10000.    
    13 'norm      '    16.464       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8060       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6402       1.0000         .10000E-03   10000.    
    16 'norm      '    .80957       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4200       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1997       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5226.845     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     2175 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    214.44       -.70671E-04** at limit **
   2  Prefactor     .10048E-03    71.518        .56371E-04** at limit **
   3  Prefactor     .10000E-03    11.282       -.13556E-04** at limit **
   4  Prefactor     156.34        1.4272       -.37853E-06    .15698E-02
   5  Prefactor     .10000E-03    5.6659        .82540E-07** at limit **
   6  Prefactor     .10074E-03    32.419       -.29669E-04** at limit **
   7  norm          13.968        1.0023        .81729E-07   -.27669E-04
   8  Prefactor     .10002E-03    24.805       -.13533E-04** at limit **
   9  norm          14.106        1.0083        .37787E-08   -.67835E-06
  10  norm          .10000E-03    11.085        .10306E-04** at limit **
  11  Prefactor     70.605        1.0093       -.29544E-07   -.69931E-04
  12  Prefactor     223.74        1.0037        .19835E-07   -.15126E-03
  13  norm          16.464        5.5659       -.45245E-06   -.90216E-04
  14  Prefactor     1.8061        4.0029        .10774E-06    .24335E-03
  15  norm          6.6401        4.4455       -.83249E-07   -.47456E-03
  16  norm          .80918        8.6579        .11893E-06    .46728E-04
  17  norm          .10001E-03    12.731        .25937E-05** at limit **
  18  Prefactor     .10027E-03    24.572        .39080E-04** at limit **
  19  Prefactor     .10020E-03    13.277       -.44992E-05** at limit **
  20  norm          3.4195        1.9652        .97427E-07   -.44180E-03
  21  norm          .10029E-03    16.907       -.23877E-04** at limit **
  22  Normalizat    .10000E-01    1.0182       -.29872E-04** at limit **
  23  Prefactor     1.1997        .69644E-01   -.59929E-06   -.56527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100179
  Prefactor  = 0.000100485
  Prefactor  = 0.000100001
  Prefactor  = 156.344
  Prefactor  = 0.0001
  Prefactor  = 0.000100739
  norm       = 13.9681
  Prefactor  = 0.000100022
  norm       = 14.1057
  norm       = 0.0001
  Prefactor  = 70.6048
  Prefactor  = 223.735
  norm       = 16.4642
  Prefactor  = 1.80606
  norm       = 6.64006
  norm       = 0.809178
  norm       = 0.000100006
  Prefactor  = 0.000100267
  Prefactor  = 0.000100196
  norm       = 3.41951
  norm       = 0.000100287
  Normalizat = 0.01
  Prefactor  = 1.1997
 **********
 **   18 **HESSE 
 **********

 FCN=   5226.845     FROM HESSE     STATUS=OK           412 CALLS     2587 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    218.63        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10048E-03    80.624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     156.34        73.637        .80608E-03   -1.3201    
   5  Prefactor     .10000E-03    5.6677        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10074E-03    53.040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.968        13.598        .26793E-02   -1.4960    
   8  Prefactor     .10002E-03    24.963        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.106        16.952        .26661E-02   -1.4957    
  10  norm          .10000E-03    11.085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     70.605        33.706        .11943E-02   -1.4025    
  12  Prefactor     223.74        157.71        .67616E-03   -1.2705    
  13  norm          16.464        5.8493        .24677E-02   -1.4896    
  14  Prefactor     1.8061        4.1266        .77744E-02   -1.5439    
  15  norm          6.6401        4.4554        .38931E-02   -1.5193    
  16  norm          .80918        8.5876        .12475E-01   -1.5528    
  17  norm          .10001E-03    12.716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10027E-03    31.750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10020E-03    37.148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4195        1.9680        .54684E-02   -1.5338    
  21  norm          .10029E-03    39.562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .23477        .32242       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1997        .94990E-01    .34638E-01   -.86341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8978e-08
Minuit parameter uncertainties:
  1  0.012562
  2  0.0125232
  3  0.000241606
  4  73.6803
  5  4.07408e-05
  6  0.0125345
  7  13.6013
  8  0.00147937
  9  16.9575
  10  2.18136e-05
  11  33.7155
  12  158.008
  13  5.84953
  14  4.12729
  15  4.45564
  16  5.27279
  17  0.000571178
  18  0.00583012
  19  0.00539357
  20  1.968
  21  0.00674561
  22  3.90342e-05
  23  0.0950037
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  6.640e+00  4.456e+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.200e+00  9.500e-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.000e-02  3.903e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.47
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 6.03e-05 +/- 4.05e-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) = 5226.06035716
delta logL = 0.784539216479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5226.05944465
delta logL = 0.785451724897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8272       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5608       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1913       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=   5226.059     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8336        47.241        .51576E-02   -.11174E-03
   2  alpha         2.5598        3.7799        .23512        .30540E-04
   3  Normalizat    .10000E-01    .72324E-01    .32094    ** at limit **
   4  Prefactor     1.1912        .47576E-01    .34839E-01   -.82866E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.83359
  alpha      = 2.55976
  Normalizat = 0.01
  Prefactor  = 1.19122
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8336        4.3287        .80148E-04   -1.5316    
   2  alpha         2.5598        .71163        .92263E-02    .23905E-01
   3  Normalizat    .10000E-01    .44226        .13643E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1912        .68178E-01    .14614E-03   -.86602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43818e-11
Minuit parameter uncertainties:
  1  4.32901
  2  0.721613
  3  5.53996e-06
  4  0.0681829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505929': 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) = 5226.05944215
delta logL = 0.785454230586

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  3.834e+00  4.329e+00  1.000e-04  1.000e+04 ( 1.000e-12)
335        alpha:  2.560e+00  7.216e-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.191e+00  6.818e-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.000e-02  5.540e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.04
Ra Dec: 285.808 55.677
Photon Index (Free Index): 2.56 +/- 0.72
Photon Flux (Free Index): 1.17e-07 +/- 7.92e-08
Energy Flux (Free Index): 3.53e-05 +/- 2.39e-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/505929/cmap_HighResolution_432432001_432691201_4FGL_J1903.2+5540_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='3.53e-05', photon_flux_error='4.27e-08', dlogl='7.85e-01', energy_flux='6.03e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-21 22:56:29.040670', photon_index_error2='0.72', photon_index2='2.56', ts='4.47', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.39e-05', EG='0.01', time_epoch_completed='1632290189.04', return_code='0', job_id='505929', GAL2='1.19', EG2='0.01', return_code2='0', energy_flux_error='4.05e-05', photon_flux_error2='7.92e-08', ts2='6.04', photon_index='1.82' WHERE bin_id='745' AND source_name='4FGL J1903.2+5540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 505929: <4FGL_J1903.2+5540_daily_bin745> in cluster <slac> Done

Job <4FGL_J1903.2+5540_daily_bin745> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 21 22:45:58 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:46:00 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:46:00 2021
Terminated at Tue Sep 21 22:56:29 2021
Results reported at Tue Sep 21 22:56:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1903.2+5540_daily_bin745 285.808 55.6773 432432001 432691201 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 :                                   612.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            631 sec.

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

