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


Performing analysis on: 4FGL_J1552.0+0850_daily_bin189
RA = 238.01, Dec = 8.8419
tmin = 288316801, tmax = 288576001
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='749946', job_status='RUN', time_executed='2021-09-12 15:39:07.428620', time_epoch_executed='1631486347.43' WHERE source_name='4FGL J1552.0+0850' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/749946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/749946/ft1_4FGL_J1552.0+0850_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/749946/ft2_4FGL_J1552.0+0850_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/749946/ft1_4FGL_J1552.0+0850_daily_bin189.fits outfile=/scratch/kocevski/749946/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin189.fits ra=238.01 dec=8.8419 rad=12.0 tmin=288316801.0 tmax=288576001.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.66
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/749946/ft2_4FGL_J1552.0+0850_daily_bin189.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/749946/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin189.fits evtable="EVENTS" outfile="/scratch/kocevski/749946/ft1_filtered_4FGL_J1552.0+0850_daily_bin189.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/749946/ft1_filtered_4FGL_J1552.0+0850_daily_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/749946/ft2_4FGL_J1552.0+0850_daily_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/749946/ltcube_288316801_288576001_4FGL_J1552.0+0850_daily_bin189.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/749946/ft2_4FGL_J1552.0+0850_daily_bin189.fits
.....................!
real 17.33
user 16.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/749946/ft1_filtered_4FGL_J1552.0+0850_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/749946/ft2_4FGL_J1552.0+0850_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/749946/ltcube_288316801_288576001_4FGL_J1552.0+0850_daily_bin189.fits outfile=/scratch/kocevski/749946/expmap_288316801_288576001_4FGL_J1552.0+0850_daily_bin189.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/749946/ltcube_288316801_288576001_4FGL_J1552.0+0850_daily_bin189.fits
.....................!
real 190.78
user 185.44
sys 4.96

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/749946/ft1_filtered_4FGL_J1552.0+0850_daily_bin189.fits scfile=/scratch/kocevski/749946/ft2_4FGL_J1552.0+0850_daily_bin189.fits outfile=/scratch/kocevski/749946/cmap_288316801_288576001_4FGL_J1552.0+0850_daily_bin189.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/749946/ft1_filtered_4FGL_J1552.0+0850_daily_bin189.fits scfile=/scratch/kocevski/749946/ft2_4FGL_J1552.0+0850_daily_bin189.fits outfile=/scratch/kocevski/749946/cmap_HighResolution_288316801_288576001_4FGL_J1552.0+0850_daily_bin189.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52526       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.327       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6100       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1147       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.747       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    67.799       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5451       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1138       1.0000         .10000E-03   10000.    
    15 'norm      '    30.352       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.021       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32491       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4499       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88759       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=   9426.507     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2408 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52522        .23430       -.51671E-08   -.62615E-03
   2  norm          .10000E-03    1.6746       -.26477E-07** at limit **
   3  Prefactor     30.317        40.975        .15779E-04   -.66320E-06
   4  Prefactor     .10000E-03    15.528       -.17398E-07** at limit **
   5  Prefactor     7.6105        5.2748       -.26294E-06   -.30470E-03
   6  Prefactor     1.0469        15.693       -.17627E-05   -.32968E-04
   7  Prefactor     14.749        23.227       -.44132E-06   -.19241E-05
   8  norm          .10000E-03    1.0611        .39166E-07** at limit **
   9  Prefactor     1.8138        4.1801       -.12386E-05   -.14101E-02
  10  Prefactor     .10000E-03    13.518       -.30941E-08** at limit **
  11  norm          .10000E-03    1.3429        .18171E-07** at limit **
  12  Prefactor     67.792        53.333        .22556E-05    .31071E-05
  13  norm          5.5462        7.4070       -.39715E-06   -.17810E-03
  14  norm          4.1138        1.6287        .44570E-09    .17310E-03
  15  norm          30.348        16.553        .82743E-06   -.27362E-06
  16  norm          .10000E-03    31.752       -.19190E-06** at limit **
  17  Prefactor     36.816        78.529       -.59563E-05    .20546E-05
  18  Prefactor     .10000E-03    21.069        .10314E-06** at limit **
  19  Prefactor     .10000E-03    5.4211        .25555E-08** at limit **
  20  Prefactor     .28846        4.0818       -.18398E-06   -.71428E-04
  21  Normalizat    1.4503        .23410       -.53811E-06    .10923E-03
  22  Prefactor     .88749        .97955E-01   -.30787E-07    .13480E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.525217
  norm       = 0.0001
  Prefactor  = 30.3174
  Prefactor  = 0.0001
  Prefactor  = 7.6105
  Prefactor  = 1.04691
  Prefactor  = 14.7492
  norm       = 0.0001
  Prefactor  = 1.81385
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.7923
  norm       = 5.54623
  norm       = 4.11378
  norm       = 30.3483
  norm       = 0.0001
  Prefactor  = 36.8164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.288461
  Normalizat = 1.45028
  Prefactor  = 0.887491
 **********
 **   18 **HESSE 
 **********

 FCN=   9426.507     FROM HESSE     STATUS=OK           350 CALLS     2758 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52522        .23162        .30344E-04   -1.5563    
   2  norm          .10000E-03    1.6759        .12270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.317        39.548        .72756E-04   -1.4606    
   4  Prefactor     .10000E-03    15.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6105        5.2632        .14537E-03   -1.5156    
   6  Prefactor     1.0469        107.20        .73817E-02   -1.5503    
   7  Prefactor     14.749        23.192        .10430E-03   -1.4940    
   8  norm          .10000E-03    1.8477        .19350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8138        4.3500        .29012E-03   -1.5439    
  10  Prefactor     .10000E-03    13.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3524        .10982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     67.792        53.314        .48746E-04   -1.4059    
  13  norm          5.5462        7.3934        .17061E-03   -1.5237    
  14  norm          4.1138        1.6293        .75290E-04   -1.5302    
  15  norm          30.348        16.545        .72726E-04   -1.4606    
  16  norm          .10000E-03    31.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.816        78.605        .65869E-04   -1.4494    
  18  Prefactor     .10000E-03    21.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .28846        52.656        .37384E-02   -1.5601    
  21  Normalizat    1.4503        .28174        .34874E-03   -.79185    
  22  Prefactor     .88749        .11905        .18591E-03   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09276e-08
Minuit parameter uncertainties:
  1  0.231624
  2  3.6915e-07
  3  39.582
  4  6.67649e-06
  5  5.26354
  6  21.2254
  7  23.2066
  8  1.23378e-05
  9  4.3508
  10  1.15199e-05
  11  2.2052e-06
  12  53.3511
  13  7.39464
  14  1.6293
  15  16.5472
  16  1.79641e-06
  17  78.8275
  18  7.25038e-06
  19  4.69573e-06
  20  7.80027
  21  0.282049
  22  0.11908
Done.

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

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  6.779e+01  5.335e+01  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:  8.875e-01  1.191e-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.450e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.64
Ra Dec: 238.010 8.842
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.70e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.75e-05

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) = 9426.0805984
delta logL = 0.42648273307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9426.07398867
delta logL = 0.433092461908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.608       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4181       1.0000          .0000       10.000    
     3 'Normalizat'    1.4762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88355       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9426.074     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      278 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.612        68.725        .50714E-04    .19907E-04
   2  Index         1.4180        .68762        .12606E-01   -.17588E-04
   3  Normalizat    1.4762        .27015        .34625E-03   -.71053E-04
   4  Prefactor     .88356        .11687        .18635E-03   -.33799E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.6125
  Index      = 1.41803
  Normalizat = 1.47617
  Prefactor  = 0.883558
 **********
 **   18 **HESSE 
 **********

 FCN=   9426.074     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.612        70.655        .10143E-04   -1.4124    
   2  Index         1.4180        .70679        .50424E-03   -.79862    
   3  Normalizat    1.4762        .27043        .13850E-04   -.78450    
   4  Prefactor     .88356        .11700        .74539E-05   -.96718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1322e-11
Minuit parameter uncertainties:
  1  70.75
  2  0.711714
  3  0.270695
  4  0.117034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/749946': 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) = 9426.07398865
delta logL = 0.43309247748

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  6.261e+01  7.075e+01  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  1.418e+00  7.117e-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:  8.836e-01  1.170e-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.476e+00  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.50
Ra Dec: 238.010 8.842
Photon Index (Free Index): 1.42 +/- 0.71
Photon Flux (Free Index): 1.13e-08 +/- 1.93e-08
Energy Flux (Free Index): 4.70e-05 +/- 6.15e-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/749946/cmap_HighResolution_288316801_288576001_4FGL_J1552.0+0850_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.70e-08', energy_flux2='4.70e-05', photon_flux_error='2.91e-08', dlogl='4.33e-01', energy_flux='2.22e-05', photon_flux2='1.13e-08', job_status='DONE', time_completed='2021-09-12 15:50:25.477067', photon_index_error2='0.71', photon_index2='1.42', ts='7.64', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='6.15e-05', EG='1.45', time_epoch_completed='1631487025.48', return_code='0', job_id='749946', GAL2='0.88', EG2='1.48', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='1.93e-08', ts2='8.50', photon_index='2.06' WHERE bin_id='189' AND source_name='4FGL J1552.0+0850' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 749946: <4FGL_J1552.0+0850_daily_bin189> in cluster <slac> Done

Job <4FGL_J1552.0+0850_daily_bin189> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 15:35:45 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 15:36:59 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:36:59 2021
Terminated at Sun Sep 12 15:50:26 2021
Results reported at Sun Sep 12 15:50:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1552.0+0850_daily_bin189 238.01 8.8419 288316801 288576001 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 :                                   675.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            881 sec.

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

