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


Performing analysis on: 4FGL_J1550.7+0528_daily_bin921
RA = 237.697, Dec = 5.4725
tmin = 478051201, tmax = 478310401
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='746021', job_status='RUN', time_executed='2021-09-12 15:28:45.371232', time_epoch_executed='1631485725.37' WHERE source_name='4FGL J1550.7+0528' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746021/ft1_4FGL_J1550.7+0528_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746021/ft2_4FGL_J1550.7+0528_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746021/ft1_4FGL_J1550.7+0528_daily_bin921.fits outfile=/scratch/kocevski/746021/ft1_filteredMKT_4FGL_J1550.7+0528_daily_bin921.fits ra=237.697 dec=5.4725 rad=12.0 tmin=478051201.0 tmax=478310401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.57
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/746021/ft2_4FGL_J1550.7+0528_daily_bin921.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/746021/ft1_filteredMKT_4FGL_J1550.7+0528_daily_bin921.fits evtable="EVENTS" outfile="/scratch/kocevski/746021/ft1_filtered_4FGL_J1550.7+0528_daily_bin921.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/746021/ft1_filtered_4FGL_J1550.7+0528_daily_bin921.fits" evtable="EVENTS" scfile=/scratch/kocevski/746021/ft2_4FGL_J1550.7+0528_daily_bin921.fits sctable="SC_DATA" outfile=/scratch/kocevski/746021/ltcube_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.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/746021/ft2_4FGL_J1550.7+0528_daily_bin921.fits
.....................!
real 13.97
user 13.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746021/ft1_filtered_4FGL_J1550.7+0528_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/746021/ft2_4FGL_J1550.7+0528_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/746021/ltcube_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.fits outfile=/scratch/kocevski/746021/expmap_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.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/746021/ltcube_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.fits
.....................!
real 192.24
user 186.50
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
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/746021/ft1_filtered_4FGL_J1550.7+0528_daily_bin921.fits scfile=/scratch/kocevski/746021/ft2_4FGL_J1550.7+0528_daily_bin921.fits outfile=/scratch/kocevski/746021/cmap_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746021/ft1_filtered_4FGL_J1550.7+0528_daily_bin921.fits scfile=/scratch/kocevski/746021/ft2_4FGL_J1550.7+0528_daily_bin921.fits outfile=/scratch/kocevski/746021/cmap_HighResolution_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/746021/ft1_filtered_4FGL_J1550.7+0528_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/746021/ft2_4FGL_J1550.7+0528_daily_bin921.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/746021/Model_4FGL_J1550.7+0528_daily_bin921.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/746021/ft1_filtered_4FGL_J1550.7+0528_daily_bin921.fits....................!
real 71.34
user 69.80
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/746021/ft1_filtered_4FGL_J1550.7+0528_daily_bin921.fits', '/scratch/kocevski/746021/ft2_4FGL_J1550.7+0528_daily_bin921.fits', expMap='/scratch/kocevski/746021/expmap_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.fits', expCube='/scratch/kocevski/746021/ltcube_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/746021/Model_4FGL_J1550.7+0528_daily_bin921.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/746021/ft1_filtered_4FGL_J1550.7+0528_daily_bin921.fits
Spacecraft file(s): /scratch/kocevski/746021/ft2_4FGL_J1550.7+0528_daily_bin921.fits
Exposure map: /scratch/kocevski/746021/expmap_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.fits
Exposure cube: /scratch/kocevski/746021/ltcube_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/746021/Model_4FGL_J1550.7+0528_daily_bin921.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) = 8939.21434523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6152       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8349       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7781       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
     8 'norm      '    .14762E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43733E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.740       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8379       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4527       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5400       1.0000         .10000E-03   10000.    
    16 'norm      '    18.662       1.0000         .10000E-03   10000.    
    17 'Prefactor '    67.650       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3133       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93569       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=   8939.213     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2348 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6156        1.6206        .13419E-07    .95971E-05
   2  norm          6.8349        6.4151       -.33245E-06   -.34193E-03
   3  norm          .10000E-03    1.4280       -.11095E-07** at limit **
   4  Prefactor     .10000E-03    9.9620        .56681E-06** at limit **
   5  Prefactor     .10000E-03    24.126        .25018E-05** at limit **
   6  Prefactor     3.7773        3.6475       -.86841E-07   -.25073E-03
   7  Prefactor     13.602        21.644        .97240E-06    .42685E-04
   8  norm          .10000E-03    1.3702       -.12754E-07** at limit **
   9  Prefactor     .10009E-03    4.2468        .27680E-05** at limit **
  10  Prefactor     .10000E-03    20.836       -.25874E-05** at limit **
  11  norm          2.6293        2.8301        .67622E-06    .11681E-02
  12  Prefactor     31.729        33.856        .26415E-05    .22175E-03
  13  norm          6.8419        7.2251        .97041E-06    .79793E-03
  14  norm          1.4527        .93415       -.22253E-07   -.68369E-04
  15  norm          4.5404        6.6907        .53080E-07    .21912E-04
  16  norm          18.682        76.461       -.74930E-05   -.75110E-04
  17  Prefactor     67.646        58.212        .91185E-06    .48851E-04
  18  Prefactor     16.772        28.037       -.25445E-05   -.17137E-03
  19  Prefactor     .10000E-03    3.8268        .13118E-06** at limit **
  20  Prefactor     .10000E-03    2.5065        .53319E-08** at limit **
  21  Normalizat    1.3132        .21634       -.22679E-06   -.16655E-03
  22  Prefactor     .93572        .86634E-01    .10820E-07   -.38874E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61559
  norm       = 6.83493
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.77731
  Prefactor  = 13.6025
  norm       = 0.0001
  Prefactor  = 0.000100091
  Prefactor  = 0.000100002
  norm       = 2.62927
  Prefactor  = 31.7286
  norm       = 6.84192
  norm       = 1.45273
  norm       = 4.54041
  norm       = 18.6818
  Prefactor  = 67.6458
  Prefactor  = 16.7722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31323
  Prefactor  = 0.935721
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.213     FROM HESSE     STATUS=OK           342 CALLS     2690 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6156        1.6167        .11727E-03   -1.5454    
   2  norm          6.8349        6.4310        .76734E-03   -1.5185    
   3  norm          .10000E-03    1.4388        .11032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7773        3.6329        .17023E-03   -1.5319    
   7  Prefactor     13.602        21.588        .10859E-03   -1.4970    
   8  norm          .10000E-03    3.5326        .21386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10009E-03    10.682        .22903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6293        2.8630        .80701E-03   -1.5384    
  12  Prefactor     31.729        34.074        .71122E-04   -1.4581    
  13  norm          6.8419        7.3646        .76717E-03   -1.5185    
  14  norm          1.4527        .93778        .71426E-04   -1.5467    
  15  norm          4.5404        6.6827        .18894E-03   -1.5282    
  16  norm          18.682        77.378        .92714E-04   -1.4843    
  17  Prefactor     67.646        58.268        .48799E-04   -1.4061    
  18  Prefactor     16.772        28.137        .97824E-04   -1.4889    
  19  Prefactor     .10000E-03    3.8558        .18064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5157        .14618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3132        .24756        .36062E-03   -.83172    
  22  Prefactor     .93572        .99957E-01    .17120E-03   -.94904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01885e-08
Minuit parameter uncertainties:
  1  1.61676
  2  6.4316
  3  7.88071e-07
  4  5.40205e-05
  5  0.00036797
  6  3.63311
  7  21.6003
  8  2.5358e-05
  9  0.00197675
  10  0.000364212
  11  2.86316
  12  34.095
  13  7.36562
  14  0.93779
  15  6.68383
  16  76.2112
  17  58.3167
  18  28.1592
  19  1.5523e-05
  20  1.13684e-06
  21  0.247787
  22  0.0999764
Done.

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

Extracting fit parameters...

4FGL J1550.7+0528
   Spectrum: LogParabola
236         norm:  2.629e+00  2.863e+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.357e-01  9.998e-02  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.313e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 237.697 5.473
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 9.69e-06 +/- 1.06e-05

TS (Fixed Index): 1.70
Ra Dec: 237.697 5.473
Photon Flux Upper Limit: 8.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/746021/likelihoodResults_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.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) = 8939.06951267
delta logL = 0.143926012875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8939.06832244
delta logL = 0.145116237907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5640       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6753       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93453       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=   8939.068     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5622        3.3733        .63735E-02    .28798E-04
   2  alpha         1.6770        1.0096        .44417       -.24631E-04
   3  Normalizat    1.3239        .21108        .81188E-01    .20958E-04
   4  Prefactor     .93436        .86315E-01    .45444E-01    .75760E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56218
  alpha      = 1.67699
  Normalizat = 1.32393
  Prefactor  = 0.934363
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.068     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5622        3.1222        .16634E-03   -1.5388    
   2  alpha         1.6770        1.0542        .34601E-01   -.33546    
   3  Normalizat    1.3239        .24186        .35940E-03   -.82855    
   4  Prefactor     .93436        .99490E-01    .17131E-03   -.94950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08459e-09
Minuit parameter uncertainties:
  1  3.12241
  2  1.09278
  3  0.242064
  4  0.0995093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746021': 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) = 8939.06831657
delta logL = 0.145122115009

Extracting fit parameters...

4FGL J1550.7+0528
   Spectrum: LogParabola
236         norm:  2.562e+00  3.122e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        alpha:  1.677e+00  1.093e+00  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.344e-01  9.951e-02  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.324e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 237.697 5.473
Photon Index (Free Index): 1.68 +/- 1.09
Photon Flux (Free Index): 1.18e-08 +/- 2.07e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.42e-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/746021/cmap_HighResolution_478051201_478310401_4FGL_J1550.7+0528_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='1.14e-05', photon_flux_error='2.52e-08', dlogl='1.45e-01', energy_flux='9.69e-06', photon_flux2='1.18e-08', job_status='DONE', time_completed='2021-09-12 15:40:51.699884', photon_index_error2='1.09', photon_index2='1.68', ts='1.70', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='8.97e-08', energy_flux_error2='1.42e-05', EG='1.31', time_epoch_completed='1631486451.7', return_code='0', job_id='746021', GAL2='0.93', EG2='1.32', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.07e-08', ts2='1.98', photon_index='2.27' WHERE bin_id='921' AND source_name='4FGL J1550.7+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:40:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 746021: <4FGL_J1550.7+0528_daily_bin921> in cluster <slac> Done

Job <4FGL_J1550.7+0528_daily_bin921> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 15:25:17 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 15:25:28 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:25:28 2021
Terminated at Sun Sep 12 15:40:52 2021
Results reported at Sun Sep 12 15:40:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1550.7+0528_daily_bin921 237.697 5.4725 478051201 478310401 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 :                                   724.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            935 sec.

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

