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


Performing analysis on: 4FGL_J1550.7+0528_daily_bin337
RA = 237.697, Dec = 5.4725
tmin = 326678401, tmax = 326937601
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='743115', job_status='RUN', time_executed='2021-09-12 15:19:31.992399', time_epoch_executed='1631485171.99' WHERE source_name='4FGL J1550.7+0528' and cadence='daily' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743115

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743115/ft1_4FGL_J1550.7+0528_daily_bin337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743115/ft1_4FGL_J1550.7+0528_daily_bin337.fits outfile=/scratch/kocevski/743115/ft1_filteredMKT_4FGL_J1550.7+0528_daily_bin337.fits ra=237.697 dec=5.4725 rad=12.0 tmin=326678401.0 tmax=326937601.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.42
user 3.21
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.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/743115/ft1_filteredMKT_4FGL_J1550.7+0528_daily_bin337.fits evtable="EVENTS" outfile="/scratch/kocevski/743115/ft1_filtered_4FGL_J1550.7+0528_daily_bin337.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743115/ft1_filtered_4FGL_J1550.7+0528_daily_bin337.fits" evtable="EVENTS" scfile=/scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits sctable="SC_DATA" outfile=/scratch/kocevski/743115/ltcube_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.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/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits
.....................!
real 15.30
user 14.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743115/ft1_filtered_4FGL_J1550.7+0528_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/743115/ltcube_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.fits outfile=/scratch/kocevski/743115/expmap_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.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/743115/ltcube_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.fits
.....................!
real 193.04
user 187.96
sys 4.68

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
Added 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J1550.7+0528 @ 237.697 5.4725

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/743115/ft1_filtered_4FGL_J1550.7+0528_daily_bin337.fits scfile=/scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits outfile=/scratch/kocevski/743115/cmap_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.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=237.697 yref=5.4725 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743115/ft1_filtered_4FGL_J1550.7+0528_daily_bin337.fits scfile=/scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits outfile=/scratch/kocevski/743115/cmap_HighResolution_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.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=237.697 yref=5.4725 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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/743115/ft1_filtered_4FGL_J1550.7+0528_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743115/Model_4FGL_J1550.7+0528_daily_bin337.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/743115/ft1_filtered_4FGL_J1550.7+0528_daily_bin337.fits.....................!
real 63.02
user 61.75
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/743115/ft1_filtered_4FGL_J1550.7+0528_daily_bin337.fits', '/scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits', expMap='/scratch/kocevski/743115/expmap_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.fits', expCube='/scratch/kocevski/743115/ltcube_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/743115/Model_4FGL_J1550.7+0528_daily_bin337.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1550.7+0528'

4FGL J1550.7+0528
   Spectrum: LogParabola
236         norm:  1.275e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        alpha:  2.272e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
238         beta:  1.873e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  9.907e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/743115/ft1_filtered_4FGL_J1550.7+0528_daily_bin337.fits
Spacecraft file(s): /scratch/kocevski/743115/ft2_4FGL_J1550.7+0528_daily_bin337.fits
Exposure map: /scratch/kocevski/743115/expmap_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.fits
Exposure cube: /scratch/kocevski/743115/ltcube_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/743115/Model_4FGL_J1550.7+0528_daily_bin337.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) = 7737.00934955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18476E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5288       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0504       1.0000         .10000E-03   10000.    
     8 'norm      '    .68276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81130       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.2351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2606       1.0000         .10000E-03   10000.    
    13 'norm      '    12.928       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4881       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5008       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2955       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98857       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7736.906     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2042 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3079        .22627E-07** at limit **
   2  norm          .10000E-03    2.9180        .57643E-08** at limit **
   3  norm          .10000E-03    1.2912        .59441E-08** at limit **
   4  Prefactor     5.5271        16.581        .30475E-05   -.18336E-03
   5  Prefactor     .10000E-03    16.376       -.69323E-06** at limit **
   6  Prefactor     .10000E-03    2.1786       -.41838E-07** at limit **
   7  Prefactor     2.0481        52.185        .50269E-07   -.25795E-04
   8  norm          .68275        2.1176        .83201E-06   -.29217E-03
   9  Prefactor     .81160        3.6752        .17450E-05   -.33496E-03
  10  Prefactor     .10001E-03    39.248        .45309E-05** at limit **
  11  norm          4.2350        3.7579       -.47440E-07   -.17818E-03
  12  Prefactor     4.2631        249.83        .33202E-05    .59760E-05
  13  norm          12.926        9.8537       -.81120E-07   -.10679E-03
  14  norm          1.4881        1.1282       -.13222E-06    .48253E-03
  15  norm          .10000E-03    9.7751        .67386E-06** at limit **
  16  norm          .10000E-03    72.406       -.21358E-05** at limit **
  17  Prefactor     .10000E-03    35.255       -.30043E-05** at limit **
  18  Prefactor     .10000E-03    13.007        .15458E-05** at limit **
  19  Prefactor     .10000E-03    10.578       -.14093E-05** at limit **
  20  Prefactor     4.5022        5.0636        .52618E-06    .35570E-03
  21  Normalizat    1.2955        .24613       -.73349E-06   -.67731E-04
  22  Prefactor     .98851        .97894E-01   -.12918E-06   -.12921E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.52715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04814
  norm       = 0.682752
  Prefactor  = 0.811601
  Prefactor  = 0.000100009
  norm       = 4.23497
  Prefactor  = 4.26314
  norm       = 12.9263
  norm       = 1.48808
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 4.50215
  Normalizat = 1.29555
  Prefactor  = 0.988508
 **********
 **   18 **HESSE 
 **********

 FCN=   7736.906     FROM HESSE     STATUS=OK           342 CALLS     2384 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8100        .19411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.9279        .14674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.3041        .97600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5271        16.981        .85435E-03   -1.5238    
   5  Prefactor     .10000E-03    16.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2046        .12672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0481        52.149        .28870E-03   -1.5422    
   8  norm          .68275        2.0856        .21768E-03   -1.5543    
   9  Prefactor     .81160        3.8373        .32629E-03   -1.5528    
  10  Prefactor     .10001E-03    41.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.2350        3.7390        .15307E-03   -1.5296    
  12  Prefactor     4.2631        250.62        .19520E-03   -1.5295    
  13  norm          12.926        9.8112        .11141E-03   -1.4989    
  14  norm          1.4881        1.1330        .39601E-03   -1.5464    
  15  norm          .10000E-03    9.9166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    72.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.5022        5.1136        .18978E-03   -1.5284    
  21  Normalizat    1.2955        .28821        .36553E-03   -.83699    
  22  Prefactor     .98851        .11584        .16979E-03   -.93114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03136e-09
Minuit parameter uncertainties:
  1  1.22889e-05
  2  5.43594e-07
  3  4.34816e-07
  4  16.9957
  5  0.000115592
  6  1.85805e-06
  7  20.6892
  8  2.08585
  9  3.52966
  10  0.00120915
  11  3.7392
  12  65.6632
  13  9.81243
  14  1.13298
  15  8.4533e-05
  16  0.000764442
  17  0.000757228
  18  0.00023457
  19  0.000196725
  20  5.11405
  21  0.288566
  22  0.115866
Done.

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

Extracting fit parameters...

4FGL J1550.7+0528
   Spectrum: LogParabola
236         norm:  4.235e+00  3.739e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        alpha:  2.272e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
238         beta:  1.873e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  9.907e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  9.885e-01  1.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  1.296e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 237.697 5.473
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 3.72e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.38e-05

TS (Fixed Index): 2.04
Ra Dec: 237.697 5.473
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743115/likelihoodResults_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.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) = 7736.74191015
delta logL = 0.164171968346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7736.7389551
delta logL = 0.167127016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1939       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7446       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99328       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7736.739     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      235 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1886        49.772        .56682E-02    .44006E-03
   2  alpha         2.7455        3.8675        .41403        .53108E-04
   3  Normalizat    1.2734        .88717E-01    .83166E-01    .10409E-04
   4  Prefactor     .99329        .31533E-01    .46183E-01   -.78598E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1886
  alpha      = 2.74551
  Normalizat = 1.27336
  Prefactor  = 0.993291
 **********
 **   18 **HESSE 
 **********

 FCN=   7736.739     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1886        3.9224        .11888E-03   -1.5351    
   2  alpha         2.7455        .89510        .14781E-01    .98363E-01
   3  Normalizat    1.2734        .28137        .36820E-03   -.84365    
   4  Prefactor     .99329        .11549        .16941E-03   -.92954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09447e-11
Minuit parameter uncertainties:
  1  3.92276
  2  0.915632
  3  0.281707
  4  0.115519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743115': 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) = 7736.73895399
delta logL = 0.167128125076

Extracting fit parameters...

4FGL J1550.7+0528
   Spectrum: LogParabola
236         norm:  3.189e+00  3.923e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        alpha:  2.746e+00  9.156e-01  0.000e+00  5.000e+00 ( 1.000e+00)
238         beta:  1.873e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  9.907e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  9.933e-01  1.155e-01  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  1.273e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 237.697 5.473
Photon Index (Free Index): 2.75 +/- 0.92
Photon Flux (Free Index): 5.57e-08 +/- 5.15e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.23e-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/743115/cmap_HighResolution_326678401_326937601_4FGL_J1550.7+0528_daily_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-05', comment='SUCCESS', photon_flux='3.72e-08', energy_flux2='1.54e-05', photon_flux_error='3.29e-08', dlogl='1.67e-01', energy_flux='1.56e-05', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-09-12 15:30:23.321763', photon_index_error2='0.92', photon_index2='2.75', ts='2.04', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.23e-05', EG='1.30', time_epoch_completed='1631485823.32', return_code='0', job_id='743115', GAL2='0.99', EG2='1.27', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.15e-08', ts2='2.38', photon_index='2.27' WHERE bin_id='337' AND source_name='4FGL J1550.7+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:30:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 743115: <4FGL_J1550.7+0528_daily_bin337> in cluster <slac> Done

Job <4FGL_J1550.7+0528_daily_bin337> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 15:15:23 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 15:15:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 15:15:45 2021
Terminated at Sun Sep 12 15:30:24 2021
Results reported at Sun Sep 12 15:30:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1550.7+0528_daily_bin337 237.697 5.4725 326678401 326937601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1550.7+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            901 sec.

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

