/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 212 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1550.7+0528_daily_bin287
RA = 237.697, Dec = 5.4725
tmin = 313718401, tmax = 313977601
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='743037', job_status='RUN', time_executed='2021-09-12 15:19:05.444398', time_epoch_executed='1631485145.44' WHERE source_name='4FGL J1550.7+0528' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743037

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743037/ft1_4FGL_J1550.7+0528_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743037/ft2_4FGL_J1550.7+0528_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743037/ft1_4FGL_J1550.7+0528_daily_bin287.fits outfile=/scratch/kocevski/743037/ft1_filteredMKT_4FGL_J1550.7+0528_daily_bin287.fits ra=237.697 dec=5.4725 rad=12.0 tmin=313718401.0 tmax=313977601.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.37
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743037/ft1_filtered_4FGL_J1550.7+0528_daily_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/743037/ft2_4FGL_J1550.7+0528_daily_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/743037/ltcube_313718401_313977601_4FGL_J1550.7+0528_daily_bin287.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/743037/ft2_4FGL_J1550.7+0528_daily_bin287.fits
.....................!
real 14.42
user 14.02
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743037/ft1_filtered_4FGL_J1550.7+0528_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/743037/ft2_4FGL_J1550.7+0528_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/743037/ltcube_313718401_313977601_4FGL_J1550.7+0528_daily_bin287.fits outfile=/scratch/kocevski/743037/expmap_313718401_313977601_4FGL_J1550.7+0528_daily_bin287.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/743037/ltcube_313718401_313977601_4FGL_J1550.7+0528_daily_bin287.fits
.....................!
real 193.28
user 188.26
sys 4.59

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/743037/ft1_filtered_4FGL_J1550.7+0528_daily_bin287.fits scfile=/scratch/kocevski/743037/ft2_4FGL_J1550.7+0528_daily_bin287.fits outfile=/scratch/kocevski/743037/cmap_313718401_313977601_4FGL_J1550.7+0528_daily_bin287.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743037/ft1_filtered_4FGL_J1550.7+0528_daily_bin287.fits scfile=/scratch/kocevski/743037/ft2_4FGL_J1550.7+0528_daily_bin287.fits outfile=/scratch/kocevski/743037/cmap_HighResolution_313718401_313977601_4FGL_J1550.7+0528_daily_bin287.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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/743037/ft1_filtered_4FGL_J1550.7+0528_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/743037/ft2_4FGL_J1550.7+0528_daily_bin287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743037/Model_4FGL_J1550.7+0528_daily_bin287.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/743037/ft1_filtered_4FGL_J1550.7+0528_daily_bin287.fits.....................!
real 66.55
user 65.22
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7210       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.0352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.454       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.211       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8759       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13926E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8901       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.362       1.0000         .10000E-03   10000.    
    11 'norm      '    .15039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    166.16       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1617       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1946       1.0000         .10000E-03   10000.    
    16 'norm      '    174.43       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .59772E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2255       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.779       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91108       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0460       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=   8171.052     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2353 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7216        2.8525        .13633E-05   -.45608E-03
   2  norm          .10000E-03    3.9937       -.22799E-07** at limit **
   3  norm          7.0357        4.9013        .10539E-05   -.27447E-03
   4  Prefactor     27.461        35.220       -.10670E-06    .44348E-04
   5  Prefactor     12.224        37.738        .20613E-05    .46908E-04
   6  Prefactor     6.8775        4.2360        .66372E-07   -.93888E-04
   7  Prefactor     .10000E-03    54.582        .26574E-06** at limit **
   8  norm          3.8900        2.8464        .14073E-06   -.47867E-04
   9  Prefactor     .10000E-03    1.5602       -.37736E-07** at limit **
  10  Prefactor     50.366        39.306        .35362E-06    .22355E-04
  11  norm          .10000E-03    2.3476        .15274E-06** at limit **
  12  Prefactor     166.18        84.248        .96578E-06    .83424E-04
  13  norm          .10000E-03    7.4916        .37095E-06** at limit **
  14  norm          2.1618        1.4836        .43707E-07   -.25390E-04
  15  norm          4.1957        10.806        .64379E-06   -.11117E-04
  16  norm          174.42        129.22       -.20388E-06   -.16074E-04
  17  Prefactor     .10003E-03    146.81       -.47727E-05** at limit **
  18  Prefactor     .10000E-03    7.7663       -.19782E-06** at limit **
  19  Prefactor     9.2253        9.9632        .65957E-07   -.74952E-05
  20  Prefactor     11.775        10.107        .59547E-07    .57810E-04
  21  Normalizat    .91088        .26176       -.34092E-05    .17515E-04
  22  Prefactor     1.0460        .10101        .60300E-06   -.17934E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.72155
  norm       = 0.0001
  norm       = 7.03572
  Prefactor  = 27.4615
  Prefactor  = 12.2239
  Prefactor  = 6.87755
  Prefactor  = 0.0001
  norm       = 3.89002
  Prefactor  = 0.0001
  Prefactor  = 50.3661
  norm       = 0.0001
  Prefactor  = 166.18
  norm       = 0.0001
  norm       = 2.16176
  norm       = 4.1957
  norm       = 174.424
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 9.22532
  Prefactor  = 11.7749
  Normalizat = 0.910881
  Prefactor  = 1.04597
 **********
 **   18 **HESSE 
 **********

 FCN=   8171.052     FROM HESSE     STATUS=OK           344 CALLS     2697 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7216        2.8506        .63474E-03   -1.5322    
   2  norm          .10000E-03    4.0385        .17642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.0357        4.8970        .75623E-03   -1.5177    
   4  Prefactor     27.461        35.235        .76459E-04   -1.4659    
   5  Prefactor     12.224        38.030        .11464E-03   -1.5009    
   6  Prefactor     6.8775        4.2357        .14005E-03   -1.5183    
   7  Prefactor     .10000E-03    55.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8900        2.8412        .12514E-03   -1.5313    
   9  Prefactor     .10000E-03    1.5741        .11019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     50.366        39.310        .56510E-04   -1.4287    
  11  norm          .10000E-03    4.8996        .26728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     166.18        84.267        .15646E-03   -1.3123    
  13  norm          .10000E-03    7.6246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1618        1.4828        .88497E-04   -1.5414    
  15  norm          4.1957        10.787        .19677E-03   -1.5298    
  16  norm          174.42        129.28        .15277E-03   -1.3059    
  17  Prefactor     .10003E-03    148.59        .21066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2253        9.9507        .13195E-03   -1.5100    
  20  Prefactor     11.775        10.096        .11672E-03   -1.5022    
  21  Normalizat    .91088        .29345        .42641E-03   -.96079    
  22  Prefactor     1.0460        .11496        .16561E-03   -.91213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.426e-10
Minuit parameter uncertainties:
  1  2.85069
  2  5.53422e-07
  3  4.89726
  4  35.2622
  5  38.106
  6  4.23587
  7  0.000213572
  8  2.84131
  9  2.86595e-06
  10  39.3297
  11  1.51541e-05
  12  84.3282
  13  5.71113e-05
  14  1.48285
  15  10.7915
  16  129.488
  17  0.00453934
  18  4.9727e-05
  19  9.95244
  20  10.0979
  21  0.293962
  22  0.114984
Done.

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

Extracting fit parameters...

4FGL J1550.7+0528
   Spectrum: LogParabola
236         norm:  1.000e-04  1.515e-05  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:  1.046e+00  1.150e-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:  9.109e-01  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/743037/likelihoodResults_313718401_313977601_4FGL_J1550.7+0528_daily_bin287.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) = 8171.0533755
delta logL = -0.000970715251242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8171.05240632
delta logL = -1.54013196152e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10618E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3063       1.0000          .0000       5.0000    
     3 'Normalizat'    .91044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0462       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8171.000     FROM MIGRAD    STATUS=FAILED       168 CALLS      333 TOTAL
                     EDM=   .20E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80384E-01    20.908        .27013E-02    .56206E-02
   2  alpha         4.1882        4.5938        .16523        .17168E-02
   3  Normalizat    .88914        .76169E-01    .42642E-03    .26474E-04
   4  Prefactor     1.0504        .31744E-01    .16561E-03    .24732E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8171.000     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      425 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80384E-01    20.908        .78666E-04    .56206E-02
   2  alpha         4.1882        4.5938        .79549E-02    .17168E-02
   3  Normalizat    .88914        .76169E-01    .11982E-03    .26474E-04
   4  Prefactor     1.0504        .31744E-01    .39152E-04    .24732E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8171.000     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      492 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80377E-01    1.6467        .31032E-05   -.30115E-03
   2  alpha         4.1882        4.5848        .66094E-02   -.31082E-05
   3  Normalizat    .88914        .27724        .34114E-05    .18662E-04
   4  Prefactor     1.0504        .11307        .66245E-05    .22516E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0803769
  alpha      = 4.18824
  Normalizat = 0.889139
  Prefactor  = 1.05039
 **********
 **   18 **HESSE 
 **********

 FCN=   8171.000     FROM HESSE     STATUS=OK            23 CALLS      515 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80377E-01    1.1568        .62063E-06   -1.5651    
   2  alpha         4.1882        4.5476        .26438E-03    .74136    
   3  Normalizat    .88914        .27633        .68228E-06   -.96843    
   4  Prefactor     1.0504        .11269        .13249E-05   -.91068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22046e-11
Minuit parameter uncertainties:
  1  0.609492
  2  3.75894
  3  0.276773
  4  0.112718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743037': 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) = 8171.00036911
delta logL = 0.052035669396

Extracting fit parameters...

4FGL J1550.7+0528
   Spectrum: LogParabola
236         norm:  8.038e-02  6.095e-01  1.000e-04  1.000e+04 ( 1.000e-12)
237        alpha:  4.188e+00  3.759e+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:  1.050e+00  1.127e-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:  8.891e-01  2.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 237.697 5.473

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/743037/cmap_HighResolution_313718401_313977601_4FGL_J1550.7+0528_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-09-12 15:30:53.384526', job_id='743037', GAL2='1.05', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1631485853.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.20e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='287' AND source_name='4FGL J1550.7+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:30:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 743037: <4FGL_J1550.7+0528_daily_bin287> in cluster <slac> Done

Job <4FGL_J1550.7+0528_daily_bin287> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 15:15:17 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 15:15:23 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:23 2021
Terminated at Sun Sep 12 15:30:54 2021
Results reported at Sun Sep 12 15:30:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1550.7+0528_daily_bin287 237.697 5.4725 313718401 313977601 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 :                                   705.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            937 sec.

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

