/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 176 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_J1552.0+0850_daily_bin264
RA = 238.01, Dec = 8.8419
tmin = 307756801, tmax = 308016001
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='750058', job_status='RUN', time_executed='2021-09-12 15:40:17.942697', time_epoch_executed='1631486417.94' WHERE source_name='4FGL J1552.0+0850' and cadence='daily' and bin_id='264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750058

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750058/ft1_4FGL_J1552.0+0850_daily_bin264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750058/ft2_4FGL_J1552.0+0850_daily_bin264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750058/ft1_4FGL_J1552.0+0850_daily_bin264.fits outfile=/scratch/kocevski/750058/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin264.fits ra=238.01 dec=8.8419 rad=12.0 tmin=307756801.0 tmax=308016001.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.46
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/750058/ft2_4FGL_J1552.0+0850_daily_bin264.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/750058/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin264.fits evtable="EVENTS" outfile="/scratch/kocevski/750058/ft1_filtered_4FGL_J1552.0+0850_daily_bin264.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750058/ft1_filtered_4FGL_J1552.0+0850_daily_bin264.fits" evtable="EVENTS" scfile=/scratch/kocevski/750058/ft2_4FGL_J1552.0+0850_daily_bin264.fits sctable="SC_DATA" outfile=/scratch/kocevski/750058/ltcube_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.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/750058/ft2_4FGL_J1552.0+0850_daily_bin264.fits
.....................!
real 12.85
user 12.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750058/ft1_filtered_4FGL_J1552.0+0850_daily_bin264.fits evtable="EVENTS" scfile=/scratch/kocevski/750058/ft2_4FGL_J1552.0+0850_daily_bin264.fits sctable="SC_DATA" expcube=/scratch/kocevski/750058/ltcube_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.fits outfile=/scratch/kocevski/750058/expmap_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.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/750058/ltcube_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.fits
.....................!
real 194.05
user 188.65
sys 4.87

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/750058/ft1_filtered_4FGL_J1552.0+0850_daily_bin264.fits scfile=/scratch/kocevski/750058/ft2_4FGL_J1552.0+0850_daily_bin264.fits outfile=/scratch/kocevski/750058/cmap_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750058/ft1_filtered_4FGL_J1552.0+0850_daily_bin264.fits scfile=/scratch/kocevski/750058/ft2_4FGL_J1552.0+0850_daily_bin264.fits outfile=/scratch/kocevski/750058/cmap_HighResolution_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/750058/ft1_filtered_4FGL_J1552.0+0850_daily_bin264.fits', '/scratch/kocevski/750058/ft2_4FGL_J1552.0+0850_daily_bin264.fits', expMap='/scratch/kocevski/750058/expmap_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.fits', expCube='/scratch/kocevski/750058/ltcube_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/750058/Model_4FGL_J1552.0+0850_daily_bin264.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/750058/ft1_filtered_4FGL_J1552.0+0850_daily_bin264.fits
Spacecraft file(s): /scratch/kocevski/750058/ft2_4FGL_J1552.0+0850_daily_bin264.fits
Exposure map: /scratch/kocevski/750058/expmap_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.fits
Exposure cube: /scratch/kocevski/750058/ltcube_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/750058/Model_4FGL_J1552.0+0850_daily_bin264.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) = 7686.83545101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21827       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4913       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2980       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5784       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11252E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2336       1.0000         .10000E-03   10000.    
    14 'norm      '    4.8323       1.0000         .10000E-03   10000.    
    15 'norm      '    16.869       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5002       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.491       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.488       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79546       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1287       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=   7686.830     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2388 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21829        .21865        .39841E-07    .29664E-03
   2  norm          .10000E-03    2.6890       -.66541E-08** at limit **
   3  Prefactor     .10000E-03    87.193        .23731E-06** at limit **
   4  Prefactor     .10000E-03    13.400        .12275E-06** at limit **
   5  Prefactor     4.4911        3.9777       -.77850E-07   -.32142E-04
   6  Prefactor     14.507        32.733        .72045E-05    .31996E-03
   7  Prefactor     14.507        23.055       -.41090E-06    .41655E-04
   8  norm          2.2979        2.1064       -.28406E-07   -.14593E-03
   9  Prefactor     7.5766        5.4291        .25917E-05   -.11378E-02
  10  Prefactor     .10000E-03    10.421        .30689E-06** at limit **
  11  norm          .10000E-03    1.8872       -.65352E-06** at limit **
  12  Prefactor     .10000E-03    99.439       -.60639E-06** at limit **
  13  norm          3.2336        7.1543        .19890E-05    .32306E-03
  14  norm          4.8323        1.9926       -.32575E-07   -.43841E-04
  15  norm          16.869        13.762       -.58316E-07   -.11196E-03
  16  norm          3.1010        494.45       -.66676E-05   -.13596E-04
  17  Prefactor     12.491        69.917       -.51033E-06   -.16316E-04
  18  Prefactor     26.488        31.991       -.42978E-06   -.96105E-04
  19  Prefactor     .10000E-03    4.4305       -.94612E-07** at limit **
  20  Prefactor     .10000E-03    2.2330       -.23107E-07** at limit **
  21  Normalizat    .79541        .25251       -.37615E-05    .38290E-04
  22  Prefactor     1.1287        .11255        .43358E-06   -.54097E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.218294
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49107
  Prefactor  = 14.5067
  Prefactor  = 14.5071
  norm       = 2.29794
  Prefactor  = 7.57664
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.23357
  norm       = 4.83234
  norm       = 16.869
  norm       = 3.10101
  Prefactor  = 12.4914
  Prefactor  = 26.4878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.795407
  Prefactor  = 1.12871
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.830     FROM HESSE     STATUS=OK           348 CALLS     2736 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21829        .20582        .39491E-03   -1.5615    
   2  norm          .10000E-03    2.6969        .14040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    87.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4911        3.9733        .15838E-03   -1.5284    
   6  Prefactor     14.507        34.375        .10510E-03   -1.4946    
   7  Prefactor     14.507        23.006        .10514E-03   -1.4946    
   8  norm          2.2979        2.1047        .11760E-03   -1.5405    
   9  Prefactor     7.5766        5.6691        .72838E-03   -1.5157    
  10  Prefactor     .10000E-03    10.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.5484        .23241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    99.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2336        7.1960        .22526E-03   -1.5348    
  14  norm          4.8323        1.9913        .76582E-04   -1.5268    
  15  norm          16.869        13.771        .97515E-04   -1.4886    
  16  norm          3.1010        501.73        .21611E-03   -1.5356    
  17  Prefactor     12.491        70.079        .11334E-03   -1.5001    
  18  Prefactor     26.488        32.055        .77838E-04   -1.4678    
  19  Prefactor     .10000E-03    4.4520        .18015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2373        .12794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .79541        .28249        .42365E-03   -1.0024    
  22  Prefactor     1.1287        .12861        .16592E-03   -.88554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56598e-09
Minuit parameter uncertainties:
  1  0.205819
  2  6.68727e-07
  3  0.000296716
  4  5.06192e-08
  5  3.97357
  6  34.4219
  7  23.02
  8  2.10472
  9  5.6695
  10  3.60472e-05
  11  1.07434e-05
  12  0.000129699
  13  7.19793
  14  1.99137
  15  13.7735
  16  79.5756
  17  59.2803
  18  32.0755
  19  1.1794e-05
  20  2.58395e-06
  21  0.283012
  22  0.128646
Done.

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

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.297e-04  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.129e+00  1.286e-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:  7.954e-01  2.830e-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: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/750058/likelihoodResults_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.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) = 7686.83052512
delta logL = -4.75537635793e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7686.83047764
delta logL = -7.17482180335e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0183       1.0000          .0000       10.000    
     3 'Normalizat'    .79542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1287       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=   7686.830     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7412.4        .90712E-02** at limit **
   2  Index         2.0900        5.9997        .50000       -.72488E-05
   3  Normalizat    .79540        .47002E-01    .95620E-01   -.24659E-03
   4  Prefactor     1.1287        .21682E-01    .36585E-01   -.68832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.09001
  Normalizat = 0.795398
  Prefactor  = 1.12871
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.830     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8477.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0900        8.0664        .50000       -.62118    
   3  Normalizat    .79540        .63309E-01    .42366E-03   -1.0024    
   4  Prefactor     1.1287        .29299E-01    .16592E-03   -.88554    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.29554e-10
Minuit parameter uncertainties:
  1  0.0217353
  2  38.6429
  3  0.0633153
  4  0.0292996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750058': 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) = 7686.83047751
delta logL = 5.38811946171e-08

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  2.174e-02  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.090e+00  3.864e+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.129e+00  2.930e-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:  7.954e-01  6.332e-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/750058/cmap_HighResolution_307756801_308016001_4FGL_J1552.0+0850_daily_bin264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-12 15:51:21.693823', job_id='750058', GAL2='1.13', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1631487081.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='264' AND source_name='4FGL J1552.0+0850' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:51:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 750058: <4FGL_J1552.0+0850_daily_bin264> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1552.0+0850_daily_bin264 238.01 8.8419 307756801 308016001 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 :                                   660.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            929 sec.

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

