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


Performing analysis on: 4FGL_J1552.0+0850_daily_bin1469
RA = 238.01, Dec = 8.8419
tmin = 620092801, tmax = 620352001
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='759925', job_status='RUN', time_executed='2021-09-12 16:08:05.546782', time_epoch_executed='1631488085.55' WHERE source_name='4FGL J1552.0+0850' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759925

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759925/ft1_4FGL_J1552.0+0850_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759925/ft2_4FGL_J1552.0+0850_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759925/ft1_4FGL_J1552.0+0850_daily_bin1469.fits outfile=/scratch/kocevski/759925/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin1469.fits ra=238.01 dec=8.8419 rad=12.0 tmin=620092801.0 tmax=620352001.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.47
user 3.21
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759925/ft1_filtered_4FGL_J1552.0+0850_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/759925/ft2_4FGL_J1552.0+0850_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/759925/ltcube_620092801_620352001_4FGL_J1552.0+0850_daily_bin1469.fits outfile=/scratch/kocevski/759925/expmap_620092801_620352001_4FGL_J1552.0+0850_daily_bin1469.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/759925/ltcube_620092801_620352001_4FGL_J1552.0+0850_daily_bin1469.fits
.....................!
real 191.51
user 186.20
sys 4.76

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/759925/ft1_filtered_4FGL_J1552.0+0850_daily_bin1469.fits scfile=/scratch/kocevski/759925/ft2_4FGL_J1552.0+0850_daily_bin1469.fits outfile=/scratch/kocevski/759925/cmap_620092801_620352001_4FGL_J1552.0+0850_daily_bin1469.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759925/ft1_filtered_4FGL_J1552.0+0850_daily_bin1469.fits scfile=/scratch/kocevski/759925/ft2_4FGL_J1552.0+0850_daily_bin1469.fits outfile=/scratch/kocevski/759925/cmap_HighResolution_620092801_620352001_4FGL_J1552.0+0850_daily_bin1469.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5966       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5381       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.764       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3448       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.210       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1719       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.7675       1.0000         .10000E-03   10000.    
    15 'norm      '    8.3022       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.632       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28536E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75958       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1072       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=   7757.989     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2466 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5965        .36834        .18556E-07   -.16822E-03
   2  norm          .10000E-03    2.0121        .46732E-08** at limit **
   3  Prefactor     9.5321        27.879       -.57717E-06   -.26490E-05
   4  Prefactor     34.749        31.759        .65252E-06   -.51529E-05
   5  Prefactor     2.3463        4.9671        .68407E-05   -.24819E-04
   6  Prefactor     28.991        28.160        .17265E-06   -.37709E-05
   7  Prefactor     .10000E-03    11.179       -.69706E-08** at limit **
   8  norm          3.3446        2.0712        .42404E-07    .22696E-04
   9  Prefactor     1.7169        4.3922       -.32203E-06   -.32081E-04
  10  Prefactor     27.203        30.804        .20814E-06   -.13209E-05
  11  norm          5.1698        4.6699        .79930E-07   -.32284E-04
  12  Prefactor     .10000E-03    19.068       -.56176E-08** at limit **
  13  norm          .10000E-03    2.1271        .30897E-07** at limit **
  14  norm          7.7673        2.2765        .23680E-07   -.24481E-04
  15  norm          8.3023        9.6009        .26421E-06    .43738E-05
  16  norm          .10000E-03    57.301        .25739E-07** at limit **
  17  Prefactor     40.565        55.114        .42716E-05   -.67615E-05
  18  Prefactor     .10000E-03    234.55        .87297E-06** at limit **
  19  Prefactor     .10000E-03    5.5573       -.69375E-08** at limit **
  20  Prefactor     .10000E-03    3.8800       -.14335E-06** at limit **
  21  Normalizat    .75989        .25121       -.38555E-05   -.10567E-04
  22  Prefactor     1.1072        .11071        .45744E-06    .33005E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.59651
  norm       = 0.0001
  Prefactor  = 9.53212
  Prefactor  = 34.7486
  Prefactor  = 2.34631
  Prefactor  = 28.9915
  Prefactor  = 0.0001
  norm       = 3.34463
  Prefactor  = 1.71693
  Prefactor  = 27.2033
  norm       = 5.16976
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.76728
  norm       = 8.30232
  norm       = 0.0001
  Prefactor  = 40.5654
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.759888
  Prefactor  = 1.10718
 **********
 **   18 **HESSE 
 **********

 FCN=   7757.989     FROM HESSE     STATUS=OK           346 CALLS     2812 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5965        .36870        .24730E-04   -1.5455    
   2  norm          .10000E-03    2.0128        .12202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5321        27.869        .12976E-03   -1.5090    
   4  Prefactor     34.749        31.840        .67967E-04   -1.4528    
   5  Prefactor     2.3463        4.9771        .13373E-02   -1.5402    
   6  Prefactor     28.991        28.164        .74400E-04   -1.4631    
   7  Prefactor     .10000E-03    11.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3446        2.0704        .96854E-04   -1.5342    
   9  Prefactor     1.7169        4.3504        .27342E-03   -1.5446    
  10  Prefactor     27.203        30.782        .76799E-04   -1.4664    
  11  norm          5.1698        4.6484        .17029E-03   -1.5253    
  12  Prefactor     .10000E-03    19.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.1319        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.7673        2.2766        .69965E-04   -1.5150    
  15  norm          8.3023        9.5969        .13914E-03   -1.5132    
  16  norm          .10000E-03    57.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.565        55.117        .62884E-04   -1.4433    
  18  Prefactor     .10000E-03    243.84        .36659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9154        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75989        .28041        .42745E-03   -1.0157    
  22  Prefactor     1.1072        .12536        .16799E-03   -.89237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15853e-09
Minuit parameter uncertainties:
  1  0.368705
  2  4.44526e-07
  3  27.9068
  4  31.8557
  5  4.97802
  6  28.1765
  7  3.49825e-06
  8  2.07041
  9  4.35118
  10  30.8003
  11  4.64871
  12  4.62608e-07
  13  3.3205e-06
  14  2.27661
  15  9.59867
  16  3.2884e-06
  17  55.1861
  18  0.00187798
  19  1.44837e-07
  20  1.89106e-05
  21  0.280939
  22  0.12539
Done.

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

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  4.626e-07  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.107e+00  1.254e-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.599e-01  2.809e-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: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/759925/likelihoodResults_620092801_620352001_4FGL_J1552.0+0850_daily_bin1469.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) = 7757.98951414
delta logL = -0.000249719578278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7757.98926432
delta logL = 9.41317921388e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9689       1.0000          .0000       10.000    
     3 'Normalizat'    .75989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1072       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=   7757.989     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    757.11        .90712E-02** at limit **
   2  Index         1.9587        5.0173        .50000        .40249E-05
   3  Normalizat    .75989        .38258E-01    .96471E-01    .26618E-05
   4  Prefactor     1.1072        .17942E-01    .37320E-01    .31117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.95869
  Normalizat = 0.75989
  Prefactor  = 1.10718
 **********
 **   18 **HESSE 
 **********

 FCN=   7757.989     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6156.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9587        7.9700        .50000       -.65387    
   3  Normalizat    .75989        .79698E-01    .42745E-03   -1.0157    
   4  Prefactor     1.1072        .37493E-01    .16799E-03   -.89237    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.96604e-09
Minuit parameter uncertainties:
  1  0.0039712
  2  44.8226
  3  0.0797102
  4  0.0374937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759925': 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) = 7757.98926431
delta logL = 1.07129380922e-07

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  3.971e-03  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  1.959e+00  4.482e+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.107e+00  3.749e-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.599e-01  7.971e-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/759925/cmap_HighResolution_620092801_620352001_4FGL_J1552.0+0850_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-12 16:20:20.194923', job_id='759925', GAL2='1.11', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631488820.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1469' AND source_name='4FGL J1552.0+0850' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 16:20:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 759925: <4FGL_J1552.0+0850_daily_bin1469> in cluster <slac> Done

Job <4FGL_J1552.0+0850_daily_bin1469> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 16:05:23 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 16:05:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 16:05:32 2021
Terminated at Sun Sep 12 16:20:20 2021
Results reported at Sun Sep 12 16:20:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1552.0+0850_daily_bin1469 238.01 8.8419 620092801 620352001 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 :                                   682.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            897 sec.

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

