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


Performing analysis on: 4FGL_J1555.7+1111_daily_bin1394
RA = 238.931, Dec = 11.1884
tmin = 600652801, tmax = 600912001
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='866102', job_status='RUN', time_executed='2021-09-12 22:22:50.087914', time_epoch_executed='1631510570.09' WHERE source_name='4FGL J1555.7+1111' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866102/ft1_4FGL_J1555.7+1111_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866102/ft1_4FGL_J1555.7+1111_daily_bin1394.fits outfile=/scratch/kocevski/866102/ft1_filteredMKT_4FGL_J1555.7+1111_daily_bin1394.fits ra=238.931 dec=11.1884 rad=12.0 tmin=600652801.0 tmax=600912001.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.65
user 3.41
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.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/866102/ft1_filteredMKT_4FGL_J1555.7+1111_daily_bin1394.fits evtable="EVENTS" outfile="/scratch/kocevski/866102/ft1_filtered_4FGL_J1555.7+1111_daily_bin1394.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/866102/ft1_filtered_4FGL_J1555.7+1111_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/866102/ltcube_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.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/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits
.....................!
real 13.17
user 12.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866102/ft1_filtered_4FGL_J1555.7+1111_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/866102/ltcube_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.fits outfile=/scratch/kocevski/866102/expmap_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.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/866102/ltcube_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.fits
.....................!
real 195.65
user 190.37
sys 4.67

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J1555.7+1111 @ 238.931 11.1884

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/866102/ft1_filtered_4FGL_J1555.7+1111_daily_bin1394.fits scfile=/scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits outfile=/scratch/kocevski/866102/cmap_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.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.931 yref=11.1884 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866102/ft1_filtered_4FGL_J1555.7+1111_daily_bin1394.fits scfile=/scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits outfile=/scratch/kocevski/866102/cmap_HighResolution_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.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.931 yref=11.1884 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.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866102/ft1_filtered_4FGL_J1555.7+1111_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866102/Model_4FGL_J1555.7+1111_daily_bin1394.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/866102/ft1_filtered_4FGL_J1555.7+1111_daily_bin1394.fits.....................!
real 71.30
user 69.91
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866102/ft1_filtered_4FGL_J1555.7+1111_daily_bin1394.fits', '/scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits', expMap='/scratch/kocevski/866102/expmap_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.fits', expCube='/scratch/kocevski/866102/ltcube_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866102/Model_4FGL_J1555.7+1111_daily_bin1394.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1555.7+1111'

4FGL J1555.7+1111
   Spectrum: LogParabola
265         norm:  3.843e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  1.541e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
267         beta:  6.792e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  1.802e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/866102/ft1_filtered_4FGL_J1555.7+1111_daily_bin1394.fits
Spacecraft file(s): /scratch/kocevski/866102/ft2_4FGL_J1555.7+1111_daily_bin1394.fits
Exposure map: /scratch/kocevski/866102/expmap_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.fits
Exposure cube: /scratch/kocevski/866102/ltcube_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866102/Model_4FGL_J1555.7+1111_daily_bin1394.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) = 9669.75320181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.635       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.128       1.0000         .10000E-03   10000.    
     6 'norm      '    5.7360       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2121       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    106.26       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8624       1.0000         .10000E-03   10000.    
    12 'norm      '    6.2756       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6655       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2160       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.236       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.851       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85211       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0979       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9669.723     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2207 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.085        .24161E-06** at limit **
   2  Prefactor     40.636        30.976        .82239E-06    .85235E-04
   3  Prefactor     3.2912        4.0039        .26488E-06   -.55505E-04
   4  Prefactor     .10000E-03    11.029       -.85326E-06** at limit **
   5  Prefactor     65.130        34.371        .28182E-06    .25357E-04
   6  norm          5.7357        2.7071       -.66904E-07    .34097E-03
   7  Prefactor     .10000E-03    1.5608       -.92531E-07** at limit **
   8  Prefactor     1.2127        158.86        .22956E-04   -.24867E-04
   9  norm          .10000E-03    2.4986       -.16725E-07** at limit **
  10  Prefactor     106.27        61.502       -.19129E-07    .80468E-05
  11  norm          4.8624        6.9213       -.53943E-08    .17129E-04
  12  norm          6.2755        2.0770       -.37434E-07    .10415E-04
  13  norm          1.6635        27.287        .12026E-04   -.13054E-03
  14  norm          .10000E-03    54.604        .29701E-06** at limit **
  15  Prefactor     2.2158        19.508        .70807E-05   -.11605E-03
  16  Prefactor     .10000E-03    24.479       -.59402E-06** at limit **
  17  Prefactor     32.252        32.206       -.24764E-05   -.45840E-03
  18  Prefactor     .10000E-03    10.362        .26003E-05** at limit **
  19  Prefactor     15.857        10.916       -.60299E-06   -.10339E-02
  20  Normalizat    .85193        .23724       -.34856E-05   -.16791E-03
  21  Prefactor     1.0979        .10446        .34261E-06   -.35133E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.6362
  Prefactor  = 3.29123
  Prefactor  = 0.0001
  Prefactor  = 65.1295
  norm       = 5.73565
  Prefactor  = 0.0001
  Prefactor  = 1.21273
  norm       = 0.0001
  Prefactor  = 106.266
  norm       = 4.86237
  norm       = 6.27549
  norm       = 1.66353
  norm       = 0.0001
  Prefactor  = 2.21581
  Prefactor  = 0.0001
  Prefactor  = 32.2524
  Prefactor  = 0.000100004
  Prefactor  = 15.8566
  Normalizat = 0.851933
  Prefactor  = 1.09795
 **********
 **   18 **HESSE 
 **********

 FCN=   9669.723     FROM HESSE     STATUS=OK           311 CALLS     2518 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.636        31.145        .62883E-04   -1.4432    
   3  Prefactor     3.2912        3.9967        .20780E-03   -1.5345    
   4  Prefactor     .10000E-03    10.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.130        34.343        .49729E-04   -1.4092    
   6  norm          5.7357        2.6967        .10522E-03   -1.5229    
   7  Prefactor     .10000E-03    1.5916        .11991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2127        160.99        .20537E-02   -1.5488    
   9  norm          .10000E-03    2.5417        .15154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     106.27        61.490        .39012E-04   -1.3643    
  11  norm          4.8624        6.9016        .18242E-03   -1.5267    
  12  norm          6.2755        2.0759        .78031E-04   -1.5207    
  13  norm          1.6635        27.803        .16339E-02   -1.5450    
  14  norm          .10000E-03    54.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2158        19.723        .13814E-02   -1.5410    
  16  Prefactor     .10000E-03    24.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.252        32.759        .70574E-04   -1.4572    
  18  Prefactor     .10000E-03    10.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.857        11.036        .10060E-03   -1.4911    
  20  Normalizat    .85193        .26956        .41516E-03   -.98170    
  21  Prefactor     1.0979        .12079        .17391E-03   -.89532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95077e-09
Minuit parameter uncertainties:
  1  9.23195e-05
  2  31.1572
  3  3.99706
  4  2.15226e-05
  5  34.3533
  6  2.69677
  7  7.59086e-06
  8  28.0216
  9  1.75028e-06
  10  61.527
  11  6.9027
  12  2.07592
  13  13.6086
  14  7.6494e-05
  15  13.2272
  16  1.62977e-05
  17  32.777
  18  0.000418161
  19  11.0375
  20  0.269985
  21  0.120818
Done.

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

Extracting fit parameters...

4FGL J1555.7+1111
   Spectrum: LogParabola
265         norm:  6.275e+00  2.076e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  1.541e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
267         beta:  6.792e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  1.802e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.098e+00  1.208e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  8.519e-01  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 71.70
Ra Dec: 238.931 11.188
Photon Index (Fixed Index): 1.54 +/- 0.00
Photon Flux (Fixed Index): 7.73e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 1.75e-04 +/- 5.80e-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) = 9668.54850136
delta logL = 1.17438693446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9668.16513841
delta logL = 1.55774988348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9746       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0239       1.0000          .0000       5.0000    
     3 'Normalizat'    .86687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1050       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9668.165     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9744        1.7177        .50578E-02   -.14197E-03
   2  alpha         1.0238        .22270        .20811       -.55766E-04
   3  Normalizat    .86685        .21853        .93087E-01    .54486E-04
   4  Prefactor     1.1050        .10334        .37401E-01   -.15152E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.97436
  alpha      = 1.02376
  Normalizat = 0.866846
  Prefactor  = 1.10498
 **********
 **   18 **HESSE 
 **********

 FCN=   9668.165     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9744        2.4662        .70746E-04   -1.5309    
   2  alpha         1.0238        .32276        .90842E-03   -.63167    
   3  Normalizat    .86685        .25079        .41235E-03   -.97635    
   4  Prefactor     1.1050        .11922        .17372E-03   -.89308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13881e-12
Minuit parameter uncertainties:
  1  2.46622
  2  0.324153
  3  0.251127
  4  0.119247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866102': 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) = 9668.16513832
delta logL = 1.55774996861

Extracting fit parameters...

4FGL J1555.7+1111
   Spectrum: LogParabola
265         norm:  3.974e+00  2.466e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  1.024e+00  3.242e-01  0.000e+00  5.000e+00 ( 1.000e+00)
267         beta:  6.792e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  1.802e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.105e+00  1.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  8.668e-01  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 74.81
Ra Dec: 238.931 11.188
Photon Index (Free Index): 1.02 +/- 0.32
Photon Flux (Free Index): 3.81e-08 +/- 2.13e-08
Energy Flux (Free Index): 3.55e-04 +/- 1.87e-04

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/866102/cmap_HighResolution_600652801_600912001_4FGL_J1555.7+1111_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.73e-08', energy_flux2='3.55e-04', photon_flux_error='2.56e-08', dlogl='1.56e+00', energy_flux='1.75e-04', photon_flux2='3.81e-08', job_status='DONE', time_completed='2021-09-12 22:34:21.339739', photon_index_error2='0.32', photon_index2='1.02', ts='71.70', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.87e-04', EG='0.85', time_epoch_completed='1631511261.34', return_code='0', job_id='866102', GAL2='1.10', EG2='0.87', return_code2='0', energy_flux_error='5.80e-05', photon_flux_error2='2.13e-08', ts2='74.81', photon_index='1.54' WHERE bin_id='1394' AND source_name='4FGL J1555.7+1111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:34:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 866102: <4FGL_J1555.7+1111_daily_bin1394> in cluster <slac> Done

Job <4FGL_J1555.7+1111_daily_bin1394> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 22:20:16 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 22:20:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 22:20:24 2021
Terminated at Sun Sep 12 22:34:21 2021
Results reported at Sun Sep 12 22:34:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1555.7+1111_daily_bin1394 238.931 11.1884 600652801 600912001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1555.7+1111 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   666.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            845 sec.

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

