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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin61
RA = 165.673, Dec = 52.8569
tmin = 255139201, tmax = 255398401
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='425096', job_status='RUN', time_executed='2021-09-03 03:14:46.937179', time_epoch_executed='1630664086.94' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425096

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425096/ft1_4FGL_J1102.6+5251_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425096/ft2_4FGL_J1102.6+5251_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425096/ft1_4FGL_J1102.6+5251_daily_bin61.fits outfile=/scratch/kocevski/425096/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin61.fits ra=165.673 dec=52.8569 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.56
user 7.20
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425096/ft2_4FGL_J1102.6+5251_daily_bin61.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/425096/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/425096/ft1_filtered_4FGL_J1102.6+5251_daily_bin61.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425096/ft1_filtered_4FGL_J1102.6+5251_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/425096/ft2_4FGL_J1102.6+5251_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/425096/ltcube_255139201_255398401_4FGL_J1102.6+5251_daily_bin61.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/425096/ft2_4FGL_J1102.6+5251_daily_bin61.fits
.....................!
real 17.54
user 16.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425096/ft1_filtered_4FGL_J1102.6+5251_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/425096/ft2_4FGL_J1102.6+5251_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/425096/ltcube_255139201_255398401_4FGL_J1102.6+5251_daily_bin61.fits outfile=/scratch/kocevski/425096/expmap_255139201_255398401_4FGL_J1102.6+5251_daily_bin61.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/425096/ltcube_255139201_255398401_4FGL_J1102.6+5251_daily_bin61.fits
.....................!
real 192.44
user 186.61
sys 4.62

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/425096/ft1_filtered_4FGL_J1102.6+5251_daily_bin61.fits scfile=/scratch/kocevski/425096/ft2_4FGL_J1102.6+5251_daily_bin61.fits outfile=/scratch/kocevski/425096/cmap_255139201_255398401_4FGL_J1102.6+5251_daily_bin61.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425096/ft1_filtered_4FGL_J1102.6+5251_daily_bin61.fits scfile=/scratch/kocevski/425096/ft2_4FGL_J1102.6+5251_daily_bin61.fits outfile=/scratch/kocevski/425096/cmap_HighResolution_255139201_255398401_4FGL_J1102.6+5251_daily_bin61.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3411       1.0000         .10000E-03   10000.    
     4 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4886       1.0000         .10000E-03   10000.    
     6 'norm      '    4.5377       1.0000         .10000E-03   10000.    
     7 'Prefactor '    81.201       1.0000         .10000E-03   10000.    
     8 'norm      '    17.151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.935       1.0000         .10000E-03   10000.    
    10 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8529       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .76486E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.411       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0480       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5733       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10923E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2730       1.0000         .10000E-03   10000.    
    22 'norm      '    .54055E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17418E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12324E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11047E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70471       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2444       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.

 FCN=   3865.213     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3739 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5298       -.12663E-06** at limit **
   2  Prefactor     .10000E-03    25.053       -.36263E-06** at limit **
   3  norm          3.3414        1.0400       -.53052E-07    .21557E-04
   4  norm          .10000E-03    9.4207        .10463E-06** at limit **
   5  Prefactor     4.4920        6.2971       -.12664E-06   -.10078E-04
   6  norm          4.5392        3.2813       -.95782E-09   -.13173E-04
   7  Prefactor     81.219        53.096        .25230E-05    .17672E-04
   8  norm          17.160        30.043        .11021E-06   -.13139E-05
   9  Prefactor     31.972        23.098       -.23715E-06    .31599E-05
  10  norm          .10000E-03    1.6786        .16682E-07** at limit **
  11  norm          1.8531        1.3794       -.12030E-07   -.55637E-04
  12  Prefactor     .10000E-03    165.27        .33143E-05** at limit **
  13  Prefactor     .10000E-03    135.72        .12538E-04** at limit **
  14  Prefactor     58.396        61.219       -.36264E-05   -.74343E-05
  15  norm          3.0488        3.1055       -.55154E-07   -.12702E-04
  16  Prefactor     .10000E-03    97.047       -.10852E-04** at limit **
  17  Prefactor     6.5833        31.580        .12250E-06    .84817E-05
  18  Prefactor     .10000E-03    39.814       -.23705E-05** at limit **
  19  norm          .10000E-03    126.54        .11270E-04** at limit **
  20  Prefactor     .10000E-03    4.5095       -.25947E-06** at limit **
  21  Prefactor     4.2647        30.229       -.83529E-05   -.17394E-04
  22  norm          .10000E-03    246.83       -.56182E-04** at limit **
  23  Prefactor     .10000E-03    2.5575       -.11171E-06** at limit **
  24  norm          .10000E-03    2.6317       -.12997E-06** at limit **
  25  Prefactor     .10000E-03    38.727        .25250E-05** at limit **
  26  Prefactor     .10000E-03    5.0859       -.18128E-06** at limit **
  27  norm          .10000E-03    2.1480        .64488E-07** at limit **
  28  Normalizat    .70431        .19832        .15439E-05   -.54545E-04
  29  Prefactor     1.2445        .25656       -.11285E-05    .78844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.34143
  norm       = 0.0001
  Prefactor  = 4.49197
  norm       = 4.53916
  Prefactor  = 81.2188
  norm       = 17.1599
  Prefactor  = 31.9722
  norm       = 0.0001
  norm       = 1.85306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.3958
  norm       = 3.04881
  Prefactor  = 0.0001
  Prefactor  = 6.58332
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26469
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.70431
  Prefactor  = 1.24452
 **********
 **   18 **HESSE 
 **********

 FCN=   3865.213     FROM HESSE     STATUS=OK           555 CALLS     4294 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5360        .12921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3414        1.0398        .22143E-04   -1.5342    
   4  norm          .10000E-03    9.4424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4920        6.2870        .17713E-03   -1.5284    
   6  norm          4.5392        3.2814        .92711E-04   -1.5282    
   7  Prefactor     81.219        53.178        .44572E-04   -1.3903    
   8  norm          17.160        30.044        .96711E-04   -1.4879    
   9  Prefactor     31.972        22.966        .70905E-04   -1.4576    
  10  norm          .10000E-03    1.6855        .78173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8531        1.3869        .61301E-04   -1.5436    
  12  Prefactor     .10000E-03    165.68        .20929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    135.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.396        61.225        .52493E-04   -1.4178    
  15  norm          3.0488        3.0841        .99210E-04   -1.5359    
  16  Prefactor     .10000E-03    97.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5833        31.322        .15652E-03   -1.5195    
  18  Prefactor     .10000E-03    39.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    127.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5524        .12888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2647        30.544        .97454E-03   -1.5295    
  22  norm          .10000E-03    14.203        .74856E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3239        .19157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.6509        .98472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    39.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.1056        .13692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.2370        .17761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .70431        .23349        .24984E-03   -1.0372    
  29  Prefactor     1.2445        .30448        .25964E-03   -.84972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87048e-10
Minuit parameter uncertainties:
  1  8.277e-06
  2  4.28983e-05
  3  1.03983
  4  4.58774e-06
  5  6.2879
  6  3.28152
  7  53.209
  8  30.0706
  9  22.9724
  10  1.41649e-06
  11  1.38694
  12  5.44094e-05
  13  0.000181145
  14  61.2912
  15  3.0843
  16  0.000138753
  17  28.7437
  18  2.16414e-05
  19  0.000151123
  20  6.14544e-06
  21  22.8425
  22  5.63342e-05
  23  5.9469e-05
  24  1.60056e-06
  25  2.74006e-05
  26  6.87937e-07
  27  4.15514e-06
  28  0.233822
  29  0.304915
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  1.388e-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:  1.245e+00  3.049e-01  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:  7.043e-01  2.338e-01  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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425096/likelihoodResults_255139201_255398401_4FGL_J1102.6+5251_daily_bin61.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) = 3865.21336624
delta logL = -4.88352534376e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3865.21331768
delta logL = -2.74787453236e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1598       1.0000          .0000       10.000    
     3 'Normalizat'    .70431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2445       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=   3865.213     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      274 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10774E-03    78.348        .18142E-01** at limit **
   2  Index         3.0023        7.3589        .50000        .32188E-05
   3  Normalizat    .70431        .47792E-02    .24984E-03    .40862E-04
   4  Prefactor     1.2445        .64533E-02    .25964E-03    .25111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107737
  Index      = 3.00229
  Normalizat = 0.704313
  Prefactor  = 1.24451
 **********
 **   18 **HESSE 
 **********

 FCN=   3865.213     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10774E-03    490.65        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0023        5.9203        .50000       -.41102    
   3  Normalizat    .70431        .12008E-01    .99936E-05   -1.0372    
   4  Prefactor     1.2445        .16214E-01    .10386E-04   -.84972    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.42716e-09
Minuit parameter uncertainties:
  1  0.124255
  2  1045.28
  3  0.0120083
  4  0.0162144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425096': 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) = 3865.2133176
delta logL = -1.92701008928e-07

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.077e-04  1.243e-01  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  3.002e+00  1.045e+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.245e+00  1.621e-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:  7.043e-01  1.201e-02  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/425096/cmap_HighResolution_255139201_255398401_4FGL_J1102.6+5251_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-03 03:27:26.718695', job_id='425096', GAL2='1.24', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630664846.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-1.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='61' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:27:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 425096: <4FGL_J1102.6+5251_daily_bin61> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin61 165.673 52.8569 255139201 255398401 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 :                                   755.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            960 sec.

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

