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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1200
RA = 165.673, Dec = 52.8569
tmin = 550368001, tmax = 550627201
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='432226', job_status='RUN', time_executed='2021-09-03 03:38:03.649987', time_epoch_executed='1630665483.65' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432226

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432226/ft1_4FGL_J1102.6+5251_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432226/ft1_4FGL_J1102.6+5251_daily_bin1200.fits outfile=/scratch/kocevski/432226/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1200.fits ra=165.673 dec=52.8569 rad=12.0 tmin=550368001.0 tmax=550627201.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.05
user 3.80
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.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/432226/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/432226/ft1_filtered_4FGL_J1102.6+5251_daily_bin1200.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.53
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432226/ft1_filtered_4FGL_J1102.6+5251_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/432226/ltcube_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.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/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits
.....................!
real 12.74
user 12.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432226/ft1_filtered_4FGL_J1102.6+5251_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/432226/ltcube_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.fits outfile=/scratch/kocevski/432226/expmap_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.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/432226/ltcube_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.fits
.....................!
real 189.58
user 185.27
sys 3.84

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

Setting source of interest to:
4FGL J1102.6+5251 @ 165.673 52.8569

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/432226/ft1_filtered_4FGL_J1102.6+5251_daily_bin1200.fits scfile=/scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits outfile=/scratch/kocevski/432226/cmap_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.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.673 yref=52.8569 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/432226/ft1_filtered_4FGL_J1102.6+5251_daily_bin1200.fits scfile=/scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits outfile=/scratch/kocevski/432226/cmap_HighResolution_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.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.673 yref=52.8569 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432226/ft1_filtered_4FGL_J1102.6+5251_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432226/Model_4FGL_J1102.6+5251_daily_bin1200.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/432226/ft1_filtered_4FGL_J1102.6+5251_daily_bin1200.fits....................!
real 15.57
user 14.26
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/432226/ft1_filtered_4FGL_J1102.6+5251_daily_bin1200.fits', '/scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits', expMap='/scratch/kocevski/432226/expmap_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.fits', expCube='/scratch/kocevski/432226/ltcube_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/432226/Model_4FGL_J1102.6+5251_daily_bin1200.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1102.6+5251'

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  9.377e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.669e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/432226/ft1_filtered_4FGL_J1102.6+5251_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/432226/ft2_4FGL_J1102.6+5251_daily_bin1200.fits
Exposure map: /scratch/kocevski/432226/expmap_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.fits
Exposure cube: /scratch/kocevski/432226/ltcube_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/432226/Model_4FGL_J1102.6+5251_daily_bin1200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 274.717531156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 272.11612049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30551       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8846       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6918       1.0000         .10000E-03   10000.    
     4 'norm      '    .14456       1.0000         .10000E-03   10000.    
     5 'Prefactor '    116.55       1.0000         .10000E-03   10000.    
     6 'norm      '    .49920E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3057       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2455       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6580       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7184       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1888       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7572       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .39531       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5251       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7158       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7144       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9059       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9060       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7272       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0568       1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.323       1.0000         .10000E-03   10000.    
    24 'norm      '    1.8412       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .92633       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.2788       1.0000         .10000E-03   10000.    
    27 'norm      '    2.5147       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2671       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   272.0933     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      291 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    160.09        .10449E-01** at limit **
   2  Prefactor     8.8846        1.0016         .0000         .0000    
   3  norm          1.6918        1.0522         .0000         .0000    
   4  norm          .10000E-03    .23627       -.68542E-05** at limit **
   5  Prefactor     116.49        .99975        .30304E-06    .14170E-01
   6  norm          .10000E-03    .27979        .10618E-05** at limit **
   7  Prefactor     7.3057        1.0024         .0000         .0000    
   8  norm          3.5703        1.0102         .0000         .0000    
   9  Prefactor     9.2455        1.0015         .0000         .0000    
  10  norm          4.6580        1.0059         .0000         .0000    
  11  norm          1.7184        1.0502         .0000         .0000    
  12  Prefactor     .11991E-03    .34972E-01   -.55609E-04** at limit **
  13  Prefactor     5.7572        1.0038         .0000         .0000    
  14  Prefactor     .10000E-03    .29352        .97591E-05** at limit **
  15  norm          2.5251        1.0211         .0000         .0000    
  16  Prefactor     .20205E-01    .48128E-01   -.13914E-03    .37165E-02
  17  Prefactor     2.7144        1.0181         .0000         .0000    
  18  Prefactor     .30074        .41285       -.81553E-04   -.56838E-02
  19  norm          .10005E-03    .84552E-01    .68004E-04** at limit **
  20  Prefactor     1.9060        1.0394         .0000         .0000    
  21  Prefactor     9.7272        1.0013         .0000         .0000    
  22  norm          2.0568        1.0331         .0000         .0000    
  23  Prefactor     45.495        1.0019       -.42054E-04   -.75416E-03
  24  norm          1.8412        1.0427         .0000         .0000    
  25  Prefactor     .10000E-03    .41620       -.21539E-05** at limit **
  26  Prefactor     3.2788        1.0121         .0000         .0000    
  27  norm          .32961E-02    .10372       -.80035E-04   -.46464E-03
  28  Normalizat    .10000E-01    .25745        .26468E-04** at limit **
  29  Prefactor     1.2688        1.0851        .50873E-05   -.11231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.8846
  norm       = 1.69183
  norm       = 0.0001
  Prefactor  = 116.493
  norm       = 0.0001
  Prefactor  = 7.30573
  norm       = 3.57029
  Prefactor  = 9.24549
  norm       = 4.65798
  norm       = 1.71843
  Prefactor  = 0.000119914
  Prefactor  = 5.75724
  Prefactor  = 0.0001
  norm       = 2.52509
  Prefactor  = 0.0202045
  Prefactor  = 2.71437
  Prefactor  = 0.300744
  norm       = 0.000100049
  Prefactor  = 1.90603
  Prefactor  = 9.72722
  norm       = 2.05675
  Prefactor  = 45.4945
  norm       = 1.84122
  Prefactor  = 0.0001
  Prefactor  = 3.27881
  norm       = 0.00329608
  Normalizat = 0.01
  Prefactor  = 1.26879
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   272.0933     FROM HESSE     STATUS=FAILED        13 CALLS      304 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    160.09        .10449E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     498.59        489.67         .0000       -1.5112    
   3  norm          1.6918        1.0522         .0000       -1.5448    
   4  norm          .10000E-03    .23627       -.68542E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     116.49        .99975        .30304E-06   -1.3545    
   6  norm          .10000E-03    .27979        .10618E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3057        1.0024         .0000       -1.5167    
   8  norm          3.5703        1.0102         .0000       -1.5330    
   9  Prefactor     9.2455        1.0015         .0000       -1.5100    
  10  norm          4.6580        1.0059         .0000       -1.5276    
  11  norm          1.7184        1.0502         .0000       -1.5446    
  12  Prefactor     .11991E-03    .34972E-01   -.55609E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7572        1.0038         .0000       -1.5228    
  14  Prefactor     .10000E-03    .29352        .97591E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5251        1.0211         .0000       -1.5390    
  16  Prefactor     .20205E-01    .48128E-01   -.13914E-03   -1.5680    
  17  Prefactor     2.7144        1.0181         .0000       -1.5378    
  18  Prefactor     .30074        .41285       -.81553E-04   -1.5818    
  19  norm          .10005E-03    .84552E-01    .68004E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9060        1.0394         .0000       -1.5432    
  21  Prefactor     9.7272        1.0013         .0000       -1.5084    
  22  norm          2.0568        1.0331         .0000       -1.5421    
  23  Prefactor     45.495        1.0019       -.42054E-04   -1.4358    
  24  norm          1.8412        1.0427         .0000       -1.5437    
  25  Prefactor     .10000E-03    .41620       -.21539E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.2788        1.0121         .0000       -1.5346    
  27  norm          .32961E-02    .10372       -.80035E-04   -1.5719    
  28  Normalizat    .10000E-01    .25745        .26468E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.2688        1.0851        .50873E-05   -.84240    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.68464e-09
Minuit parameter uncertainties:
  1  0.000232416
  2  1.00159
  3  1.05216
  4  1.58331e-05
  5  0.999749
  6  2.12082e-06
  7  1.00236
  8  1.01016
  9  1.00147
  10  1.00588
  11  1.05024
  12  0.00166904
  13  1.00382
  14  2.21195e-05
  15  1.02109
  16  0.0481284
  17  1.01806
  18  0.412851
  19  0.000128864
  20  1.03938
  21  1.00133
  22  1.03311
  23  1.00194
  24  1.04267
  25  1.64763e-05
  26  1.01213
  27  0.0364145
  28  1.8243e-06
  29  1.10531
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 272.09329852

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  2.020e-02  4.813e-02  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.669e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  1.269e+00  1.105e+00  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  1.000e-02  1.824e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 165.673 52.857
Photon Flux Upper Limit: 3.77e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432226/likelihoodResults_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.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) = 272.093298528
delta logL = -8.01901478553e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 272.09329326
delta logL = 5.26010933299e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3981       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+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=   272.0933     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      274 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    803.02        .18142E-01** at limit **
   2  Index         3.9337        5.8183        .50000        .43384E-06
   3  Normalizat    .10000E-01    .10171E-02    .63801E-02** at limit **
   4  Prefactor     1.2688        .18917E-01    .19753E-03   -.79214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100137
  Index      = 3.93373
  Normalizat = 0.01
  Prefactor  = 1.2688
 **********
 **   18 **HESSE 
 **********

 FCN=   272.0933     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    6779.9        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.9337        6.9530        .50000       -.21490    
   3  Normalizat    .10000E-01    .50775E-02    .12760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2688        .42262E-01    .39507E-04   -.84240    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.87985e-08
Minuit parameter uncertainties:
  1  0.0472624
  2  3076.46
  3  9.59563e-08
  4  0.0422633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432226': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 272.093293289
delta logL = 5.23080308312e-06

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.001e-04  4.726e-02  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  3.934e+00  3.076e+03  0.000e+00  1.000e+01 (-1.000e+00)
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  1.269e+00  4.226e-02  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  1.000e-02  9.596e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 165.673 52.857

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/432226/cmap_HighResolution_550368001_550627201_4FGL_J1102.6+5251_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-01', job_status='DONE', photon_flux_upper_limit='3.77e-06', time_completed='2021-09-03 03:44:42.563725', job_id='432226', GAL2='1.27', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630665882.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.27', dlogl='5.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1200' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:44:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 432226: <4FGL_J1102.6+5251_daily_bin1200> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin1200> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 03:31:20 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 03:34:17 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:34:17 2021
Terminated at Fri Sep  3 03:44:43 2021
Results reported at Fri Sep  3 03:44:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1200 165.673 52.8569 550368001 550627201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1102.6+5251 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   340.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            803 sec.

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

