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


Performing analysis on: 4FGL_J1552.0+0850_daily_bin247
RA = 238.01, Dec = 8.8419
tmin = 303350401, tmax = 303609601
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='750035', job_status='RUN', time_executed='2021-09-12 15:39:08.532052', time_epoch_executed='1631486348.53' WHERE source_name='4FGL J1552.0+0850' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750035

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750035/ft1_4FGL_J1552.0+0850_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750035/ft1_4FGL_J1552.0+0850_daily_bin247.fits outfile=/scratch/kocevski/750035/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin247.fits ra=238.01 dec=8.8419 rad=12.0 tmin=303350401.0 tmax=303609601.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.43
user 3.18
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.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/750035/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin247.fits evtable="EVENTS" outfile="/scratch/kocevski/750035/ft1_filtered_4FGL_J1552.0+0850_daily_bin247.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750035/ft1_filtered_4FGL_J1552.0+0850_daily_bin247.fits" evtable="EVENTS" scfile=/scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits sctable="SC_DATA" outfile=/scratch/kocevski/750035/ltcube_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.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/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits
.....................!
real 12.44
user 12.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750035/ft1_filtered_4FGL_J1552.0+0850_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/750035/ltcube_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.fits outfile=/scratch/kocevski/750035/expmap_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.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/750035/ltcube_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.fits
.....................!
real 193.59
user 187.16
sys 5.12

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 J1552.0+0850 @ 238.01 8.8419

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/750035/ft1_filtered_4FGL_J1552.0+0850_daily_bin247.fits scfile=/scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits outfile=/scratch/kocevski/750035/cmap_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.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=238.01 yref=8.8419 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750035/ft1_filtered_4FGL_J1552.0+0850_daily_bin247.fits scfile=/scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits outfile=/scratch/kocevski/750035/cmap_HighResolution_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.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=238.01 yref=8.8419 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/750035/ft1_filtered_4FGL_J1552.0+0850_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/750035/Model_4FGL_J1552.0+0850_daily_bin247.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/750035/ft1_filtered_4FGL_J1552.0+0850_daily_bin247.fits.....................!
real 67.07
user 65.70
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/750035/ft1_filtered_4FGL_J1552.0+0850_daily_bin247.fits', '/scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits', expMap='/scratch/kocevski/750035/expmap_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.fits', expCube='/scratch/kocevski/750035/ltcube_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/750035/Model_4FGL_J1552.0+0850_daily_bin247.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1552.0+0850'

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  7.420e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.059e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  2.194e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/750035/ft1_filtered_4FGL_J1552.0+0850_daily_bin247.fits
Spacecraft file(s): /scratch/kocevski/750035/ft2_4FGL_J1552.0+0850_daily_bin247.fits
Exposure map: /scratch/kocevski/750035/expmap_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.fits
Exposure cube: /scratch/kocevski/750035/ltcube_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/750035/Model_4FGL_J1552.0+0850_daily_bin247.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) = 8774.30131836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37261       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.240       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.073       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11688E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53600E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14566E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    18.462       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7349       1.0000         .10000E-03   10000.    
    15 'norm      '    .10912E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11291E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8083       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.581       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1900       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2842       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8774.195     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2439 TOTAL
                     EDM=   .36E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37258        .22365       -.19514E-08   -.11286E-03
   2  norm          .10000E-03    1.7580        .46315E-08** at limit **
   3  Prefactor     .10000E-03    12.525        .29972E-07** at limit **
   4  Prefactor     16.227        27.778        .20782E-05   -.86044E-05
   5  Prefactor     3.1397        3.0429        .33584E-07    .10775E-05
   6  Prefactor     12.082        36.479        .89020E-06    .23147E-05
   7  Prefactor     .10000E-03    8.6419        .24360E-07** at limit **
   8  norm          .10000E-03    1.2685       -.20377E-07** at limit **
   9  Prefactor     .10000E-03    1.4766        .49627E-07** at limit **
  10  Prefactor     .10000E-03    110.92       -.10579E-05** at limit **
  11  norm          .10000E-03    .73113        .13318E-07** at limit **
  12  Prefactor     .10000E-03    38.860        .93831E-07** at limit **
  13  norm          18.469        9.6567       -.36978E-08    .58963E-05
  14  norm          2.7349        1.3780       -.31021E-09    .32987E-07
  15  norm          .10000E-03    17.481        .55808E-07** at limit **
  16  norm          .10000E-03    36.319       -.13401E-07** at limit **
  17  Prefactor     2.1084        897.93       -.55010E-05    .14090E-05
  18  Prefactor     21.620        37.893        .27382E-05   -.78406E-05
  19  Prefactor     .10000E-03    2.5152       -.10445E-06** at limit **
  20  Prefactor     4.1920        6.2628        .19464E-05    .22720E-04
  21  Normalizat    1.2847        .24776        .68428E-06    .23742E-04
  22  Prefactor     1.0868        .10931       -.73227E-06    .41782E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.372577
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2266
  Prefactor  = 3.13967
  Prefactor  = 12.0822
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.4688
  norm       = 2.7349
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.10836
  Prefactor  = 21.6195
  Prefactor  = 0.0001
  Prefactor  = 4.19204
  Normalizat = 1.28474
  Prefactor  = 1.08684
 **********
 **   18 **HESSE 
 **********

 FCN=   8774.195     FROM HESSE     STATUS=OK           342 CALLS     2781 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37258        .22505        .33114E-04   -1.5586    
   2  norm          .10000E-03    1.7581        .12129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.227        27.875        .99387E-04   -1.4902    
   5  Prefactor     3.1397        3.0445        .15563E-03   -1.5354    
   6  Prefactor     12.082        36.480        .11529E-03   -1.5013    
   7  Prefactor     .10000E-03    8.6490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.728        .20055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4943        .11113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    114.36        .42245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .73185        .78216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.469        9.5741        .93213E-04   -1.4848    
  14  norm          2.7349        1.3814        .75768E-04   -1.5377    
  15  norm          .10000E-03    18.129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    36.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1084        897.85        .31073E-03   -1.5418    
  18  Prefactor     21.620        37.875        .86221E-04   -1.4778    
  19  Prefactor     .10000E-03    2.5206        .14512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1920        6.2800        .98442E-03   -1.5298    
  21  Normalizat    1.2847        .28976        .36749E-03   -.84023    
  22  Prefactor     1.0868        .12755        .17997E-03   -.89888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02394e-12
Minuit parameter uncertainties:
  1  0.225051
  2  1.50515e-07
  3  3.52891e-06
  4  27.8971
  5  3.0447
  6  36.547
  7  2.83278e-06
  8  1.45457e-05
  9  2.32096e-06
  10  0.000150131
  11  4.30798e-07
  12  1.4404e-05
  13  9.57485
  14  1.38138
  15  6.33878e-06
  16  2.91127e-06
  17  88.3828
  18  37.9169
  19  7.65047e-06
  20  6.28104
  21  0.290124
  22  0.127589
Done.

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

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.440e-05  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.059e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  2.194e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.087e+00  1.276e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.285e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 238.010 8.842
Photon Flux Upper Limit: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/750035/likelihoodResults_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.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): 102
logL (Free Index) = 8774.19492626
delta logL = -0.000122217226817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8774.194804
delta logL = 4.46671037935e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1176       1.0000          .0000       10.000    
     3 'Normalizat'    1.2847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0868       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8774.195     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8391.3        .90712E-02** at limit **
   2  Index         2.1336        6.9048        .50000       -.33817E-05
   3  Normalizat    1.2847        .17893        .83005E-01    .21962E-04
   4  Prefactor     1.0868        .81617E-01    .38109E-01    .13150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13355
  Normalizat = 1.28474
  Prefactor  = 1.08684
 **********
 **   18 **HESSE 
 **********

 FCN=   8774.195     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      268 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7425.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1336        5.9489        .50000       -.61052    
   3  Normalizat    1.2847        .92648E-01    .36748E-03   -.84023    
   4  Prefactor     1.0868        .42471E-01    .17997E-03   -.89888    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.56366e-10
Minuit parameter uncertainties:
  1  0.0011135
  2  49.7791
  3  0.0926604
  4  0.0424726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750035': 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): 102
logL (Free Index) = 8774.19480398
delta logL = 5.82494976697e-08

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.114e-03  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.134e+00  4.978e+01  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  2.194e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.087e+00  4.247e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.285e+00  9.266e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 238.010 8.842

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/750035/cmap_HighResolution_303350401_303609601_4FGL_J1552.0+0850_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-12 15:51:16.587392', job_id='750035', GAL2='1.09', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631487076.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='5.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='247' AND source_name='4FGL J1552.0+0850' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:51:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 750035: <4FGL_J1552.0+0850_daily_bin247> in cluster <slac> Done

Job <4FGL_J1552.0+0850_daily_bin247> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 15:35:52 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 15:37:10 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:37:10 2021
Terminated at Sun Sep 12 15:51:17 2021
Results reported at Sun Sep 12 15:51:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1552.0+0850_daily_bin247 238.01 8.8419 303350401 303609601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1552.0+0850 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   724.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            925 sec.

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

