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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1171
RA = 165.673, Dec = 52.8569
tmin = 542851201, tmax = 543110401
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='430561', job_status='RUN', time_executed='2021-09-03 03:34:23.934963', time_epoch_executed='1630665263.93' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430561

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430561/ft1_4FGL_J1102.6+5251_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430561/ft2_4FGL_J1102.6+5251_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430561/ft1_4FGL_J1102.6+5251_daily_bin1171.fits outfile=/scratch/kocevski/430561/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1171.fits ra=165.673 dec=52.8569 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.80
user 0.62
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430561/ft2_4FGL_J1102.6+5251_daily_bin1171.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/430561/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/430561/ft1_filtered_4FGL_J1102.6+5251_daily_bin1171.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.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430561/ft1_filtered_4FGL_J1102.6+5251_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/430561/ft2_4FGL_J1102.6+5251_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/430561/ltcube_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.fits outfile=/scratch/kocevski/430561/expmap_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.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/430561/ltcube_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.fits
.....................!
real 193.98
user 187.29
sys 5.81

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/430561/ft1_filtered_4FGL_J1102.6+5251_daily_bin1171.fits scfile=/scratch/kocevski/430561/ft2_4FGL_J1102.6+5251_daily_bin1171.fits outfile=/scratch/kocevski/430561/cmap_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.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.51
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430561/ft1_filtered_4FGL_J1102.6+5251_daily_bin1171.fits scfile=/scratch/kocevski/430561/ft2_4FGL_J1102.6+5251_daily_bin1171.fits outfile=/scratch/kocevski/430561/cmap_HighResolution_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.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.56
user 0.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430561/ft1_filtered_4FGL_J1102.6+5251_daily_bin1171.fits', '/scratch/kocevski/430561/ft2_4FGL_J1102.6+5251_daily_bin1171.fits', expMap='/scratch/kocevski/430561/expmap_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.fits', expCube='/scratch/kocevski/430561/ltcube_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430561/Model_4FGL_J1102.6+5251_daily_bin1171.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/430561/ft1_filtered_4FGL_J1102.6+5251_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/430561/ft2_4FGL_J1102.6+5251_daily_bin1171.fits
Exposure map: /scratch/kocevski/430561/expmap_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.fits
Exposure cube: /scratch/kocevski/430561/ltcube_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430561/Model_4FGL_J1102.6+5251_daily_bin1171.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) = 121.657635876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    489.33       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6209       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.495       1.0000         .10000E-03   10000.    
     6 'norm      '    17.562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2292.7       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27781E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    431.13       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15394E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .33230E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    635.51       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76752E-08   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=   121.6159     FROM MIGRAD    STATUS=CONVERGED   1232 CALLS     5887 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.753        85.024        .49492E-04    .18793E-05
   2  Prefactor     489.19        353.15        .92710E-04   -.98853E-05
   3  norm          .10000E-03    1.4303        .12903E-03** at limit **
   4  norm          2.5190        8356.9        .33242E-02    .23838E-05
   5  Prefactor     44.336        82.941        .60103E-04   -.34845E-05
   6  norm          17.476        42.078        .65281E-04    .54503E-05
   7  Prefactor     .10000E-03    162.52        .13792E-02** at limit **
   8  norm          .10000E-03    189.98        .14921E-02** at limit **
   9  Prefactor     .10000E-03    166.36        .13947E-02** at limit **
  10  norm          .10000E-03    11.137        .36004E-03** at limit **
  11  norm          .10000E-03    9.8624        .33888E-03** at limit **
  12  Prefactor     2292.0        1730.5        .47578E-04   -.35992E-05
  13  Prefactor     .10000E-03    921.22        .21422E-02** at limit **
  14  Prefactor     429.65        1602.2        .98468E-04   -.16048E-05
  15  norm          .10000E-03    15.472        .42459E-03** at limit **
  16  Prefactor     .10000E-03    395.64        .18142E-02** at limit **
  17  Prefactor     .10000E-03    153.56        .13407E-02** at limit **
  18  Prefactor     .10001E-03    921.43        .18142E-02** at limit **
  19  norm          .10000E-03    928.85        .21346E-02** at limit **
  20  Prefactor     .10000E-03    63.872        .86338E-03** at limit **
  21  Prefactor     .10000E-03    284.89        .18142E-02** at limit **
  22  norm          635.51        629.17        .16397E-04    .25784E-06
  23  Prefactor     .10000E-03    49.460        .75958E-03** at limit **
  24  norm          .10000E-03    93.675        .10461E-02** at limit **
  25  Prefactor     .10000E-03    288.13        .18142E-02** at limit **
  26  Prefactor     .10000E-03    312.94        .18142E-02** at limit **
  27  norm          .10000E-03    39.033        .67466E-03** at limit **
  28  Normalizat    .10000E-01    1.9709        .81810E-02** at limit **
  29  Prefactor     .38858E-13    .36785        .20761E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.7533
  Prefactor  = 489.188
  norm       = 0.0001
  norm       = 2.51903
  Prefactor  = 44.336
  norm       = 17.4758
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2291.96
  Prefactor  = 0.0001
  Prefactor  = 429.647
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 635.515
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 3.88578e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   121.6159     FROM HESSE     STATUS=OK           525 CALLS     6412 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.753        85.015        .98984E-05   -1.4084    
   2  Prefactor     489.19        353.07        .18542E-04   -1.1248    
   3  norm          .10000E-03    1.4303        .25806E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5190        7762.2        .13297E-03   -1.5391    
   5  Prefactor     44.336        77.489        .24041E-05   -1.4375    
   6  norm          17.476        38.044        .26112E-05   -1.4872    
   7  Prefactor     .10000E-03    162.52        .27583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    189.98        .29841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    166.36        .27893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.137        .72009E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.8624        .67776E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2292.0        1730.2        .95155E-05   -.57235    
  13  Prefactor     .10000E-03    921.22        .42844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     429.65        1599.7        .19694E-04   -1.1532    
  15  norm          .10000E-03    15.472        .84917E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    395.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    153.56        .26814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    921.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    928.85        .42692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    63.872        .17268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    284.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          635.51        629.16        .32793E-05   -1.0611    
  23  Prefactor     .10000E-03    49.460        .15192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    93.675        .20922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    288.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    312.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    39.033        .13493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    1.9709        .16362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .38858E-13    .36785        .41522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82135e-11
Minuit parameter uncertainties:
  1  85.1726
  2  354.669
  3  9.00266e-07
  4  271.066
  5  77.6655
  6  38.0967
  7  9.99462e-05
  8  2.382e-05
  9  1.892e-05
  10  6.28887e-06
  11  2.62679e-06
  12  1783.27
  13  0.000328474
  14  1750.47
  15  6.5674e-08
  16  0.000126872
  17  0.000163927
  18  0.00443842
  19  0.000382523
  20  3.07348e-05
  21  0.000392872
  22  636.347
  23  6.98831e-06
  24  0.000107133
  25  0.0003933
  26  0.000399116
  27  7.79497e-07
  28  6.62383e-06
  29  2.40743e-07
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  1.269e-04  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:  3.886e-14  2.407e-07  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  6.624e-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: 1.42e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430561/likelihoodResults_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.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) = 121.615925791
delta logL = -1.33938507076e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 121.615913544
delta logL = -1.14772748816e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12269E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5129       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .27924E-08   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=   121.6159     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      285 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11310E-03    611.65        .15579E-01** at limit **
   2  Index         3.2131        8.3083        .50000        .85293E-06
   3  Normalizat    .10000E-01    .98522E-02    .81918E-02** at limit **
   4  Prefactor     .77716E-14    .17365E-02    .20766E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000113095
  Index      = 3.21314
  Normalizat = 0.01
  Prefactor  = 7.77156e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   121.6159     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11310E-03    7099.1        .17691E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2131        7.9212        .50000       -.36545    
   3  Normalizat    .10000E-01    .80912E-01    .16384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77716E-14    .14273E-01    .41532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78772e-09
Minuit parameter uncertainties:
  1  0.510171
  2  5357.5
  3  2.00386e-08
  4  2.10874e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430561': 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) = 121.615912482
delta logL = -8.5721353571e-08

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.131e-04  5.102e-01  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  3.213e+00  5.357e+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:  7.772e-15  2.109e-08  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  2.004e-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/430561/cmap_HighResolution_542851201_543110401_4FGL_J1102.6+5251_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-01', job_status='DONE', photon_flux_upper_limit='1.42e-06', time_completed='2021-09-03 03:39:55.323728', job_id='430561', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630665595.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-8.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1171' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:39:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 430561: <4FGL_J1102.6+5251_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin1171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 03:27:11 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 03:34:12 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:12 2021
Terminated at Fri Sep  3 03:39:56 2021
Results reported at Fri Sep  3 03:39:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1171 165.673 52.8569 542851201 543110401 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 :                                   333.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             466.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   343 sec.
    Turnaround time :                            765 sec.

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

