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


Performing analysis on: 4FGL_J1552.0+0850_daily_bin138
RA = 238.01, Dec = 8.8419
tmin = 275097601, tmax = 275356801
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='749869', job_status='RUN', time_executed='2021-09-12 15:39:19.988028', time_epoch_executed='1631486359.99' WHERE source_name='4FGL J1552.0+0850' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/749869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/749869/ft1_4FGL_J1552.0+0850_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/749869/ft2_4FGL_J1552.0+0850_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/749869/ft1_4FGL_J1552.0+0850_daily_bin138.fits outfile=/scratch/kocevski/749869/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin138.fits ra=238.01 dec=8.8419 rad=12.0 tmin=275097601.0 tmax=275356801.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 4.96
user 4.70
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/749869/ft1_filtered_4FGL_J1552.0+0850_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/749869/ft2_4FGL_J1552.0+0850_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/749869/ltcube_275097601_275356801_4FGL_J1552.0+0850_daily_bin138.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/749869/ft2_4FGL_J1552.0+0850_daily_bin138.fits
.....................!
real 14.16
user 13.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/749869/ft1_filtered_4FGL_J1552.0+0850_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/749869/ft2_4FGL_J1552.0+0850_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/749869/ltcube_275097601_275356801_4FGL_J1552.0+0850_daily_bin138.fits outfile=/scratch/kocevski/749869/expmap_275097601_275356801_4FGL_J1552.0+0850_daily_bin138.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/749869/ltcube_275097601_275356801_4FGL_J1552.0+0850_daily_bin138.fits
.....................!
real 192.97
user 187.88
sys 4.51

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/749869/ft1_filtered_4FGL_J1552.0+0850_daily_bin138.fits scfile=/scratch/kocevski/749869/ft2_4FGL_J1552.0+0850_daily_bin138.fits outfile=/scratch/kocevski/749869/cmap_275097601_275356801_4FGL_J1552.0+0850_daily_bin138.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/749869/ft1_filtered_4FGL_J1552.0+0850_daily_bin138.fits scfile=/scratch/kocevski/749869/ft2_4FGL_J1552.0+0850_daily_bin138.fits outfile=/scratch/kocevski/749869/cmap_HighResolution_275097601_275356801_4FGL_J1552.0+0850_daily_bin138.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6933       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9454       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.342       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6575       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.9126       1.0000         .10000E-03   10000.    
    14 'norm      '    .15931       1.0000         .10000E-03   10000.    
    15 'norm      '    34.271       1.0000         .10000E-03   10000.    
    16 'norm      '    170.72       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.451       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26360       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5490       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86172       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=   8759.812     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2373 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6933        .38631       -.81585E-08   -.30610E-04
   2  norm          .10000E-03    3.4376        .58019E-07** at limit **
   3  Prefactor     6.9519        24.077       -.22214E-06   -.75471E-05
   4  Prefactor     20.383        30.402        .57570E-06    .12949E-04
   5  Prefactor     4.6585        5.1953        .14504E-06   -.30811E-04
   6  Prefactor     .10000E-03    23.825        .29517E-06** at limit **
   7  Prefactor     .10000E-03    10.769        .13852E-07** at limit **
   8  norm          .10000E-03    1.5475        .38032E-06** at limit **
   9  Prefactor     9.3178        6.0257        .13737E-07   -.61068E-04
  10  Prefactor     .10000E-03    12.619        .23632E-06** at limit **
  11  norm          11.006        5.5890       -.13094E-06   -.94548E-04
  12  Prefactor     .10000E-03    17.842        .16746E-06** at limit **
  13  norm          8.9147        9.7890       -.14716E-05   -.13650E-03
  14  norm          .15892        1.3043       -.11492E-05   -.35078E-03
  15  norm          34.269        16.686       -.34076E-06   -.55753E-04
  16  norm          170.71        133.92        .33297E-06   -.33597E-05
  17  Prefactor     3.4968        530.75       -.19879E-04    .44278E-05
  18  Prefactor     29.457        35.569       -.25923E-05   -.10632E-03
  19  Prefactor     .24791        128.08        .21856E-04   -.19850E-04
  20  Prefactor     .10000E-03    9.7644        .16162E-05** at limit **
  21  Normalizat    1.5490        .26118        .20563E-05   -.35225E-03
  22  Prefactor     .86174        .10903       -.19904E-05   -.71136E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69335
  norm       = 0.0001
  Prefactor  = 6.95193
  Prefactor  = 20.3825
  Prefactor  = 4.65848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.31781
  Prefactor  = 0.0001
  norm       = 11.0064
  Prefactor  = 0.0001
  norm       = 8.9147
  norm       = 0.158919
  norm       = 34.2694
  norm       = 170.713
  Prefactor  = 3.49679
  Prefactor  = 29.4574
  Prefactor  = 0.247909
  Prefactor  = 0.0001
  Normalizat = 1.54896
  Prefactor  = 0.861741
 **********
 **   18 **HESSE 
 **********

 FCN=   8759.812     FROM HESSE     STATUS=OK           348 CALLS     2721 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6933        .38708        .26771E-04   -1.5448    
   2  norm          .10000E-03    3.4459        .16946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9519        24.071        .15223E-03   -1.5181    
   4  Prefactor     20.383        30.541        .88805E-04   -1.4805    
   5  Prefactor     4.6585        5.1889        .18648E-03   -1.5276    
   6  Prefactor     .10000E-03    23.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5931        .11400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3178        6.0175        .13130E-03   -1.5097    
  10  Prefactor     .10000E-03    12.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.006        5.5849        .12076E-03   -1.5044    
  12  Prefactor     .10000E-03    17.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.9147        9.7130        .13426E-03   -1.5111    
  14  norm          .15892        1.3369        .20737E-03   -1.5628    
  15  norm          34.269        16.677        .68453E-04   -1.4536    
  16  norm          170.71        134.02        .15439E-03   -1.3087    
  17  Prefactor     3.4968        540.54        .21205E-02   -1.5334    
  18  Prefactor     29.457        35.626        .73827E-04   -1.4622    
  19  Prefactor     .24791        131.15        .45856E-02   -1.5608    
  20  Prefactor     .10000E-03    10.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5490        .29356        .35596E-03   -.76412    
  22  Prefactor     .86174        .12234        .19701E-03   -.97491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77666e-08
Minuit parameter uncertainties:
  1  0.387077
  2  2.28897e-06
  3  24.1049
  4  30.5639
  5  5.18935
  6  1.30413e-05
  7  9.7787e-06
  8  1.6846e-05
  9  6.01787
  10  1.37701e-05
  11  5.58521
  12  1.82302e-05
  13  9.71473
  14  0.921621
  15  16.6796
  16  134.258
  17  87.7694
  18  35.6521
  19  11.4269
  20  9.29812e-05
  21  0.293883
  22  0.122374
Done.

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

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.823e-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:  8.617e-01  1.224e-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.549e+00  2.939e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/749869/likelihoodResults_275097601_275356801_4FGL_J1552.0+0850_daily_bin138.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) = 8759.81261197
delta logL = -0.000266468985501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8759.8123464
delta logL = -8.91837771633e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0287       1.0000          .0000       10.000    
     3 'Normalizat'    1.5488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86175       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=   8759.812     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      217 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.589        .90712E-02** at limit **
   2  Index         2.0000        5.9900        .50000        .12164E-04
   3  Normalizat    1.5490        .23541        .80423E-01    .95355E-05
   4  Prefactor     .86174        .10149        .44516E-01    .58999E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99995
  Normalizat = 1.54897
  Prefactor  = 0.861738
 **********
 **   18 **HESSE 
 **********

 FCN=   8759.812     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0000        5.9426        .50000       -.64351    
   3  Normalizat    1.5490        .27651        .35596E-03   -.76412    
   4  Prefactor     .86174        .11935        .19701E-03   -.97491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5315e-10
Minuit parameter uncertainties:
  1  0.000169542
  2  4.56781
  3  0.27678
  4  0.119389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/749869': 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) = 8759.81234532
delta logL = 1.85309545486e-07

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.695e-04  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.000e+00  4.568e+00  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.617e-01  1.194e-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.549e+00  2.768e-01  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/749869/cmap_HighResolution_275097601_275356801_4FGL_J1552.0+0850_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-12 15:51:53.535295', job_id='749869', GAL2='0.86', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1631487113.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='138' AND source_name='4FGL J1552.0+0850' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:51:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 749869: <4FGL_J1552.0+0850_daily_bin138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1552.0+0850_daily_bin138 238.01 8.8419 275097601 275356801 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 :                                   748.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            974 sec.

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

