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


Performing analysis on: 4FGL_J1103.0+1157_daily_bin20
RA = 165.772, Dec = 11.9654
tmin = 244512001, tmax = 244771201
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='436658', job_status='RUN', time_executed='2021-09-03 03:49:57.258628', time_epoch_executed='1630666197.26' WHERE source_name='4FGL J1103.0+1157' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436658/ft1_4FGL_J1103.0+1157_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436658/ft2_4FGL_J1103.0+1157_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436658/ft1_4FGL_J1103.0+1157_daily_bin20.fits outfile=/scratch/kocevski/436658/ft1_filteredMKT_4FGL_J1103.0+1157_daily_bin20.fits ra=165.772 dec=11.9654 rad=12.0 tmin=244512001.0 tmax=244771201.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.43
user 1.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436658/ft1_filtered_4FGL_J1103.0+1157_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/436658/ft2_4FGL_J1103.0+1157_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/436658/ltcube_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.fits outfile=/scratch/kocevski/436658/expmap_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.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/436658/ltcube_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.fits
.....................!
real 189.52
user 185.13
sys 4.01

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/436658/ft1_filtered_4FGL_J1103.0+1157_daily_bin20.fits scfile=/scratch/kocevski/436658/ft2_4FGL_J1103.0+1157_daily_bin20.fits outfile=/scratch/kocevski/436658/cmap_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.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/436658/ft1_filtered_4FGL_J1103.0+1157_daily_bin20.fits scfile=/scratch/kocevski/436658/ft2_4FGL_J1103.0+1157_daily_bin20.fits outfile=/scratch/kocevski/436658/cmap_HighResolution_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/436658/ft1_filtered_4FGL_J1103.0+1157_daily_bin20.fits', '/scratch/kocevski/436658/ft2_4FGL_J1103.0+1157_daily_bin20.fits', expMap='/scratch/kocevski/436658/expmap_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.fits', expCube='/scratch/kocevski/436658/ltcube_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/436658/Model_4FGL_J1103.0+1157_daily_bin20.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/436658/ft1_filtered_4FGL_J1103.0+1157_daily_bin20.fits
Spacecraft file(s): /scratch/kocevski/436658/ft2_4FGL_J1103.0+1157_daily_bin20.fits
Exposure map: /scratch/kocevski/436658/expmap_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.fits
Exposure cube: /scratch/kocevski/436658/ltcube_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/436658/Model_4FGL_J1103.0+1157_daily_bin20.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) = 5517.8944272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    2.2756       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3818       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7928       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.228       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.521       1.0000         .10000E-03   10000.    
     7 'norm      '    .78000       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4454       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91560       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3754       1.0000         .10000E-03   10000.    
    13 'norm      '    .36732E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .73112       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.3189       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.

 FCN=   5517.867     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     1658 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5245        .15413E-02** at limit **
   2  Prefactor     2.2745        3.4901        .15798E-03    .18681E-03
   3  Prefactor     5.3807        4.6955        .14544E-03    .71131E-04
   4  Prefactor     6.7968        8.4957        .15395E-03    .19444E-03
   5  Prefactor     14.224        11.934        .10619E-03    .78800E-04
   6  Prefactor     29.535        15.492        .73739E-04   -.16814E-03
   7  norm          .77991        .51229        .39551E-04    .19747E-03
   8  Prefactor     11.127        8.7238        .12012E-03    .78558E-04
   9  Prefactor     .10000E-03    15.223        .18142E-02** at limit **
  10  norm          1.4460        1.2357        .73055E-04    .40881E-03
  11  Prefactor     .86379        167.74        .57709E-02    .27176E-04
  12  Prefactor     2.3767        7.4666        .26582E-03    .21346E-03
  13  norm          .10008E-03    12.483        .60697E-01** at limit **
  14  Prefactor     .10000E-03    8.7778        .18142E-02** at limit **
  15  Prefactor     .10000E-03    14.322        .18142E-02** at limit **
  16  Normalizat    .73128        .22510        .29449E-03    .25622E-03
  17  Prefactor     1.3189        .20910        .22292E-03    .33035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.27454
  Prefactor  = 5.38072
  Prefactor  = 6.79683
  Prefactor  = 14.2238
  Prefactor  = 29.5351
  norm       = 0.779914
  Prefactor  = 11.1273
  Prefactor  = 0.0001
  norm       = 1.44601
  Prefactor  = 0.86379
  Prefactor  = 2.37675
  norm       = 0.000100079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.731279
  Prefactor  = 1.3189
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.867     FROM HESSE     STATUS=OK           217 CALLS     1875 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5247        .30826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2745        3.4889        .63194E-05   -1.5406    
   3  Prefactor     5.3807        4.6951        .58177E-05   -1.5244    
   4  Prefactor     6.7968        8.4876        .61579E-05   -1.5186    
   5  Prefactor     14.224        11.928        .42474E-05   -1.4953    
   6  Prefactor     29.535        15.491        .14748E-04   -1.4621    
   7  norm          .77991        .51227        .15821E-05   -1.5531    
   8  Prefactor     11.127        8.7227        .48046E-05   -1.5041    
   9  Prefactor     .10000E-03    15.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4460        1.2351        .29222E-05   -1.5467    
  11  Prefactor     .86379        166.36        .23083E-03   -1.5522    
  12  Prefactor     2.3767        7.4627        .10633E-04   -1.5400    
  13  norm          .10008E-03    10.448        .68257E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.7804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .73128        .22482        .11779E-04   -1.0267    
  17  Prefactor     1.3189        .20920        .44584E-04   -.82747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57586e-10
Minuit parameter uncertainties:
  1  1.48581e-06
  2  3.48921
  3  4.69539
  4  8.48912
  5  11.9301
  6  15.4933
  7  0.512278
  8  8.72366
  9  4.24965e-05
  10  1.23517
  11  24.0413
  12  7.46563
  13  0.00182181
  14  2.54276e-05
  15  1.40248e-06
  16  0.225101
  17  0.209335
Done.

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

Extracting fit parameters...

4FGL J1103.0+1157
   Spectrum: LogParabola
267         norm:  1.446e+00  1.235e+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

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.319e+00  2.093e-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:  7.313e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.02
Ra Dec: 165.772 11.965
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.86e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.09e-05

TS (Fixed Index): 3.02
Ra Dec: 165.772 11.965
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436658/likelihoodResults_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.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): 0
logL (Free Index) = 5517.85598848
delta logL = 0.0110496219677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5517.85560137
delta logL = 0.0114367359956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4457       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4186       1.0000          .0000       5.0000    
     3 'Normalizat'    .72596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3220       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.

 FCN=   5517.856     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      201 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4450        40.016        .89635E-02    .30413E-03
   2  alpha         2.4186        2.9193        .41179        .65050E-05
   3  Normalizat    .72597        .88778E-01    .66779E-01    .21316E-04
   4  Prefactor     1.3220        .90543E-01    .50376E-01   -.22053E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44504
  alpha      = 2.41861
  Normalizat = 0.725972
  Prefactor  = 1.32196
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.856     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4450        1.2119        .71170E-04   -1.5468    
   2  alpha         2.4186        .79385        .19200E-01   -.32562E-01
   3  Normalizat    .72597        .21326        .29547E-03   -1.0288    
   4  Prefactor     1.3220        .20841        .22270E-03   -.82656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18444e-13
Minuit parameter uncertainties:
  1  1.21191
  2  0.807852
  3  0.213502
  4  0.208544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436658': 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) = 5517.8556012
delta logL = 0.0114369014173

Extracting fit parameters...

4FGL J1103.0+1157
   Spectrum: LogParabola
267         norm:  1.445e+00  1.212e+00  1.000e-04  1.000e+04 ( 1.000e-11)
268        alpha:  2.419e+00  8.079e-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:  1.322e+00  2.085e-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:  7.260e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 165.772 11.965
Photon Index (Free Index): 2.42 +/- 0.81
Photon Flux (Free Index): 4.27e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/436658/cmap_HighResolution_244512001_244771201_4FGL_J1103.0+1157_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', photon_flux='3.86e-08', energy_flux2='1.26e-05', photon_flux_error='3.30e-08', dlogl='1.14e-02', energy_flux='1.28e-05', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-09-03 03:58:42.244164', photon_index_error2='0.81', photon_index2='2.42', ts='3.02', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.06e-05', EG='0.73', time_epoch_completed='1630666722.24', return_code='0', job_id='436658', GAL2='1.32', EG2='0.73', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.31e-08', ts2='3.03', photon_index='2.30' WHERE bin_id='20' AND source_name='4FGL J1103.0+1157' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:58:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 436658: <4FGL_J1103.0+1157_daily_bin20> in cluster <slac> Done

Job <4FGL_J1103.0+1157_daily_bin20> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 03:46:19 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 03:46:33 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:33 2021
Terminated at Fri Sep  3 03:58:42 2021
Results reported at Fri Sep  3 03:58:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1103.0+1157_daily_bin20 165.772 11.9654 244512001 244771201 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 :                                   525.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            743 sec.

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

