/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 144 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1103.0+1157_daily_bin31
RA = 165.772, Dec = 11.9654
tmin = 247363201, tmax = 247622401
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='436675', job_status='RUN', time_executed='2021-09-03 03:49:07.529790', time_epoch_executed='1630666147.53' WHERE source_name='4FGL J1103.0+1157' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436675/ft1_4FGL_J1103.0+1157_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436675/ft1_4FGL_J1103.0+1157_daily_bin31.fits outfile=/scratch/kocevski/436675/ft1_filteredMKT_4FGL_J1103.0+1157_daily_bin31.fits ra=165.772 dec=11.9654 rad=12.0 tmin=247363201.0 tmax=247622401.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 1.44
user 1.27
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.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/436675/ft1_filteredMKT_4FGL_J1103.0+1157_daily_bin31.fits evtable="EVENTS" outfile="/scratch/kocevski/436675/ft1_filtered_4FGL_J1103.0+1157_daily_bin31.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436675/ft1_filtered_4FGL_J1103.0+1157_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/436675/ltcube_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.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/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits
.....................!
real 13.35
user 13.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436675/ft1_filtered_4FGL_J1103.0+1157_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/436675/ltcube_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.fits outfile=/scratch/kocevski/436675/expmap_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.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/436675/ltcube_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.fits
.....................!
real 189.87
user 184.99
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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1103.0+1157 @ 165.772 11.9654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/436675/ft1_filtered_4FGL_J1103.0+1157_daily_bin31.fits scfile=/scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits outfile=/scratch/kocevski/436675/cmap_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.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=165.772 yref=11.9654 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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436675/ft1_filtered_4FGL_J1103.0+1157_daily_bin31.fits scfile=/scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits outfile=/scratch/kocevski/436675/cmap_HighResolution_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.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=165.772 yref=11.9654 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.53
user 0.40
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436675/ft1_filtered_4FGL_J1103.0+1157_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436675/Model_4FGL_J1103.0+1157_daily_bin31.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/436675/ft1_filtered_4FGL_J1103.0+1157_daily_bin31.fits.....................!
real 79.52
user 78.20
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/436675/ft1_filtered_4FGL_J1103.0+1157_daily_bin31.fits', '/scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits', expMap='/scratch/kocevski/436675/expmap_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.fits', expCube='/scratch/kocevski/436675/ltcube_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/436675/Model_4FGL_J1103.0+1157_daily_bin31.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1103.0+1157'

4FGL J1103.0+1157
   Spectrum: LogParabola
267         norm:  1.011e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
268        alpha:  2.297e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
269         beta:  9.765e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
270           Eb:  4.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/436675/ft1_filtered_4FGL_J1103.0+1157_daily_bin31.fits
Spacecraft file(s): /scratch/kocevski/436675/ft2_4FGL_J1103.0+1157_daily_bin31.fits
Exposure map: /scratch/kocevski/436675/expmap_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.fits
Exposure cube: /scratch/kocevski/436675/ltcube_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/436675/Model_4FGL_J1103.0+1157_daily_bin31.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) = 8874.64086798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11478E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0604       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3831       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6549       1.0000         .10000E-03   10000.    
     7 'norm      '    .25673       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8401       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .20439E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14348E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.147       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.022       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3785       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .79276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8874.639     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1667 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    3.9529        .18836E-06** at limit **
   2  Prefactor     8.8281        3.1668        .77379E-08    .15935E-04
   3  Prefactor     4.0604        4.2310       -.13814E-06    .24069E-04
   4  Prefactor     3.7943        4.0867       -.45730E-08   -.42537E-05
   5  Prefactor     4.3817        7.2051        .24666E-05    .18205E-06
   6  Prefactor     4.6612        6.0189       -.48741E-06   -.10703E-04
   7  norm          .25666        .33047       -.11903E-06    .37151E-03
   8  Prefactor     2.8417        4.4149        .18774E-05    .72040E-04
   9  Prefactor     .10000E-03    3.5651        .79474E-07** at limit **
  10  norm          .10000E-03    .44599       -.56927E-07** at limit **
  11  Prefactor     .10000E-03    27.045       -.12019E-06** at limit **
  12  Prefactor     .10000E-03    2.1235       -.10536E-07** at limit **
  13  norm          15.139        10.783        .71962E-06    .54856E-04
  14  Prefactor     .10000E-03    11.740       -.62191E-07** at limit **
  15  Prefactor     50.068        36.020       -.48351E-05    .75856E-05
  16  Normalizat    1.3784        .16094       -.14301E-05    .42433E-04
  17  Prefactor     .79266        .14228        .18189E-05    .10543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100049
  Prefactor  = 8.82812
  Prefactor  = 4.0604
  Prefactor  = 3.79426
  Prefactor  = 4.38171
  Prefactor  = 4.66124
  norm       = 0.256658
  Prefactor  = 2.84172
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.1393
  Prefactor  = 0.0001
  Prefactor  = 50.0682
  Normalizat = 1.37844
  Prefactor  = 0.792659
 **********
 **   18 **HESSE 
 **********

 FCN=   8874.639     FROM HESSE     STATUS=OK           235 CALLS     1902 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    41.565        .35742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8281        3.1677        .95667E-04   -1.5114    
   3  Prefactor     4.0604        4.2229        .18998E-03   -1.5305    
   4  Prefactor     3.7943        4.0775        .19021E-03   -1.5318    
   5  Prefactor     4.3817        7.1693        .96189E-03   -1.5289    
   6  Prefactor     4.6612        6.0024        .18653E-03   -1.5276    
   7  norm          .25666        .29883        .54767E-03   -1.5607    
   8  Prefactor     2.8417        4.4020        .10985E-02   -1.5371    
   9  Prefactor     .10000E-03    3.5709        .17370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.8488        .11990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1312        .13405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.139        10.761        .10291E-03   -1.4930    
  14  Prefactor     .10000E-03    12.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.068        36.112        .56701E-04   -1.4292    
  16  Normalizat    1.3784        .18637        .23293E-03   -.81254    
  17  Prefactor     .79266        .16633        .27602E-03   -.99999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16586e-09
Minuit parameter uncertainties:
  1  0.00284209
  2  3.16774
  3  4.22317
  4  4.0778
  5  7.17065
  6  6.00313
  7  0.298834
  8  4.40254
  9  1.41624e-06
  10  3.89865e-05
  11  6.63823e-05
  12  2.20045e-07
  13  10.7623
  14  4.83975e-06
  15  36.1275
  16  0.186465
  17  0.166437
Done.

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

Extracting fit parameters...

4FGL J1103.0+1157
   Spectrum: LogParabola
267         norm:  1.000e-04  3.899e-05  1.000e-04  1.000e+04 ( 1.000e-11)
268        alpha:  2.297e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
269         beta:  9.765e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
270           Eb:  4.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.927e-01  1.664e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.378e+00  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 165.772 11.965
Photon Flux Upper Limit: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436675/likelihoodResults_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.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) = 8874.64038367
delta logL = -0.00170039918339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8874.6386853
delta logL = -2.02780211112e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2837       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8874.639     FROM MIGRAD    STATUS=FAILED        97 CALLS      265 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    460.73        .12030E-02** at limit **
   2  alpha         2.2264        2.8399        .16539        .29714E-05
   3  Normalizat    1.3784        .65921E-01    .23294E-03   -.44902E-04
   4  Prefactor     .79266        .61355E-01    .27602E-03   -.13427E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8874.639     FROM SIMPLEX   STATUS=UNCHANGED    166 CALLS      431 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    460.73        .24665E-03** at limit **
   2  alpha         2.2264        2.8399        .99507E-05    .29714E-05
   3  Normalizat    1.3784        .65921E-01    .17473E-06   -.44902E-04
   4  Prefactor     .79266        .61355E-01    .36980E-06   -.13427E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8874.639     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      464 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9477        .24060E-03** at limit **
   2  alpha         2.2173        2.6756        .66157E-02   -.72175E-07
   3  Normalizat    1.3784        .17774        .93175E-05    .72233E-04
   4  Prefactor     .79266        .16546        .11041E-04    .76610E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.21726
  Normalizat = 1.37844
  Prefactor  = 0.79266
 **********
 **   18 **HESSE 
 **********

 FCN=   8874.639     FROM HESSE     STATUS=OK            23 CALLS      487 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9478        .48120E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2173        2.9430        .26463E-03   -.11334    
   3  Normalizat    1.3784        .17771        .18635E-05   -.81254    
   4  Prefactor     .79266        .16543        .22081E-05   -.99999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37259e-11
Minuit parameter uncertainties:
  1  9.23143e-06
  2  86.1634
  3  0.177792
  4  0.165532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436675': 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) = 8874.63868286
delta logL = 4.18218405684e-07

Extracting fit parameters...

4FGL J1103.0+1157
   Spectrum: LogParabola
267         norm:  1.000e-04  9.231e-06  1.000e-04  1.000e+04 ( 1.000e-11)
268        alpha:  2.217e+00  8.616e+01  0.000e+00  5.000e+00 ( 1.000e+00)
269         beta:  9.765e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
270           Eb:  4.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.927e-01  1.655e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.378e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 165.772 11.965

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/436675/cmap_HighResolution_247363201_247622401_4FGL_J1103.0+1157_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-05', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-03 04:00:28.087777', job_id='436675', GAL2='0.79', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630666828.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='31' AND source_name='4FGL J1103.0+1157' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 04:00:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 436675: <4FGL_J1103.0+1157_daily_bin31> in cluster <slac> Done

Job <4FGL_J1103.0+1157_daily_bin31> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 03:46:21 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 03:46:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 03:46:35 2021
Terminated at Fri Sep  3 04:00:28 2021
Results reported at Fri Sep  3 04:00:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1103.0+1157_daily_bin31 165.772 11.9654 247363201 247622401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1103.0+1157 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            847 sec.

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

