/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 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7424
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0102.4+4214_daily_bin451
RA = 15.6069, Dec = 42.2371
tmin = 356227201, tmax = 356486401
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='284212', job_status='RUN', time_executed='2021-08-13 09:03:50.147923', time_epoch_executed='1628870630.15' WHERE source_name='4FGL J0102.4+4214' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284212

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284212/ft1_4FGL_J0102.4+4214_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/284212/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284212/ft1_4FGL_J0102.4+4214_daily_bin451.fits outfile=/scratch/kocevski/284212/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin451.fits ra=15.6069 dec=42.2371 rad=12.0 tmin=356227201.0 tmax=356486401.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 6.08
user 2.86
sys 2.97

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.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/284212/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/284212/ft1_filtered_4FGL_J0102.4+4214_daily_bin451.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 3.23
user 0.34
sys 2.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284212/ft1_filtered_4FGL_J0102.4+4214_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/284212/ltcube_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.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/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits
.....................!
real 6.78
user 3.29
sys 3.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284212/ft1_filtered_4FGL_J0102.4+4214_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/284212/ltcube_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.fits outfile=/scratch/kocevski/284212/expmap_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.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/284212/ltcube_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.fits
.....................!
real 195.18
user 185.80
sys 8.58

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

Setting source of interest to:
4FGL J0102.4+4214 @ 15.6069 42.2371

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/284212/ft1_filtered_4FGL_J0102.4+4214_daily_bin451.fits scfile=/scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits outfile=/scratch/kocevski/284212/cmap_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.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=15.6069 yref=42.2371 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 3.27
user 0.37
sys 2.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284212/ft1_filtered_4FGL_J0102.4+4214_daily_bin451.fits scfile=/scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits outfile=/scratch/kocevski/284212/cmap_HighResolution_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.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=15.6069 yref=42.2371 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 3.23
user 0.39
sys 2.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/284212/ft1_filtered_4FGL_J0102.4+4214_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284212/Model_4FGL_J0102.4+4214_daily_bin451.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/284212/ft1_filtered_4FGL_J0102.4+4214_daily_bin451.fits.......................!
real 33.02
user 28.16
sys 4.75

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/284212/ft1_filtered_4FGL_J0102.4+4214_daily_bin451.fits', '/scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits', expMap='/scratch/kocevski/284212/expmap_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.fits', expCube='/scratch/kocevski/284212/ltcube_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/284212/Model_4FGL_J0102.4+4214_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0102.4+4214'

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  3.800e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
179        Index:  2.680e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/284212/ft1_filtered_4FGL_J0102.4+4214_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/284212/ft2_4FGL_J0102.4+4214_daily_bin451.fits
Exposure map: /scratch/kocevski/284212/expmap_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.fits
Exposure cube: /scratch/kocevski/284212/ltcube_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/284212/Model_4FGL_J0102.4+4214_daily_bin451.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) = 1636.20503015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.6069       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30697E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.693       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.374       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12401E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27072E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.960       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13788E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    2.0792       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .48783       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1636.192     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3036 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.988       -.36874E-06** at limit **
   2  norm          7.6204        64.393        .85961E-06   -.12338E-04
   3  Prefactor     .10000E-03    9.7539        .71033E-06** at limit **
   4  Prefactor     .10003E-03    10.922        .40901E-05** at limit **
   5  Prefactor     .10000E-03    28.277        .75679E-07** at limit **
   6  Prefactor     .10000E-03    33.115       -.56082E-07** at limit **
   7  Prefactor     .10000E-03    34.648       -.11472E-06** at limit **
   8  norm          .10000E-03    3.0702        .18102E-07** at limit **
   9  Prefactor     30.693        20.949        .20974E-06   -.29125E-04
  10  Prefactor     .10000E-03    26.965        .23549E-06** at limit **
  11  Prefactor     .10000E-03    11.684       -.96121E-07** at limit **
  12  norm          .10000E-03    73.673        .82635E-07** at limit **
  13  Prefactor     69.372        60.078        .48109E-06   -.30519E-04
  14  Prefactor     .10000E-03    63.897        .23177E-06** at limit **
  15  norm          .10000E-03    7.9206        .41839E-05** at limit **
  16  norm          .10000E-03    2.6958       -.38934E-07** at limit **
  17  Prefactor     .10000E-03    13.289        .10819E-06** at limit **
  18  Prefactor     .10001E-03    292.47       -.45652E-05** at limit **
  19  Prefactor     .10000E-03    46.077        .63950E-07** at limit **
  20  norm          .10000E-03    2.8679       -.20939E-07** at limit **
  21  norm          .10000E-03    .90725       -.14587E-06** at limit **
  22  Prefactor     22.961        37.310       -.23252E-06   -.72410E-04
  23  Prefactor     .10000E-03    5.6782       -.22076E-06** at limit **
  24  Prefactor     .10015E-03    801.03       -.12568E-04** at limit **
  25  Normalizat    2.0792        .41635       -.35425E-05   -.48292E-03
  26  Prefactor     .48799        .16970        .61882E-06   -.46074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.62043
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.6933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.3723
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.9605
  Prefactor  = 0.0001
  Prefactor  = 0.000100151
  Normalizat = 2.07924
  Prefactor  = 0.487985
 **********
 **   18 **HESSE 
 **********

 FCN=   1636.192     FROM HESSE     STATUS=OK           438 CALLS     3474 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.6204        64.619        .14540E-03   -1.5156    
   3  Prefactor     .10000E-03    9.8141        .12368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    23.271        .19590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.0755        .69226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.693        20.981        .36160E-03   -1.4599    
  10  Prefactor     .10000E-03    27.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.703        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    73.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     69.372        60.289        .48193E-04   -1.4040    
  14  Prefactor     .10000E-03    63.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.377        .16992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6986        .64863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.325        .14403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    299.32        .21433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    46.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.9052        .66882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .92005        .37562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.961        37.417        .83594E-04   -1.4749    
  23  Prefactor     .10000E-03    5.6923        .94094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10015E-03    826.13        .20536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    2.0792        .47544        .26615E-03   -.62579    
  26  Prefactor     .48799        .18734        .20461E-03   -1.1253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59591e-09
Minuit parameter uncertainties:
  1  0.000334681
  2  44.4459
  3  0.000101354
  4  0.00163395
  5  1.8785e-05
  6  4.61739e-05
  7  7.08993e-05
  8  2.42288e-06
  9  20.9857
  10  6.36162e-05
  11  2.17755e-05
  12  7.15626e-05
  13  60.3423
  14  0.000199719
  15  0.000127952
  16  1.94752e-06
  17  6.74749e-06
  18  0.00385356
  19  6.39373e-05
  20  9.75065e-07
  21  4.82741e-06
  22  37.4551
  23  1.96618e-05
  24  0.0226364
  25  0.476536
  26  0.187573
Done.

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

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  1.000e-04  2.178e-05  1.000e-04  1.000e+04 ( 1.000e-12)
179        Index:  2.680e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  4.880e-01  1.876e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  2.079e+00  4.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 15.607 42.237
Photon Flux Upper Limit: 2.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284212/likelihoodResults_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.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) = 1636.19289048
delta logL = -0.000391483838939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1636.19249966
delta logL = -6.57364580547e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11960E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6385       1.0000          .0000       10.000    
     3 'Normalizat'    2.0790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48810       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+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=   1636.005     FROM MIGRAD    STATUS=CONVERGED    147 CALLS      299 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8552        915.66        .14780E-01   -.20987E-04
   2  Index         1.3974        9.1815        .18182        .79627E-05
   3  Normalizat    2.0926        .17887        .26615E-03   -.93947E-04
   4  Prefactor     .47520        .75217E-01    .20461E-03   -.90111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.85525
  Index      = 1.39736
  Normalizat = 2.0926
  Prefactor  = 0.4752
 **********
 **   18 **HESSE 
 **********

 FCN=   1636.005     FROM HESSE     STATUS=OK            29 CALLS      328 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8552        16.530        .20853E-03   -1.5184    
   2  Index         1.3974        .84246        .70008E-02   -2.3370    
   3  Normalizat    2.0926        .45348        .53229E-04   -.62249    
   4  Prefactor     .47520        .18569        .81842E-05   -1.1313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30749e-11
Minuit parameter uncertainties:
  1  16.5411
  2  0.850977
  3  0.454427
  4  0.185924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284212': 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) = 1636.00468691
delta logL = 0.187812087498

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  6.855e+00  1.654e+01  1.000e-04  1.000e+04 ( 1.000e-12)
179        Index:  1.397e+00  8.510e-01  0.000e+00  1.000e+01 (-1.000e+00)
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  4.752e-01  1.859e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  2.093e+00  4.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 15.607 42.237

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/284212/cmap_HighResolution_356227201_356486401_4FGL_J0102.4+4214_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-02', job_status='DONE', photon_flux_upper_limit='2.31e-07', time_completed='2021-08-13 09:11:34.921938', job_id='284212', GAL2='0.48', fit_tolerance='1e-08', EG2='2.09', EG='2.08', time_epoch_completed='1628871094.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='1.88e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='451' AND source_name='4FGL J0102.4+4214' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 09:11:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 284212: <4FGL_J0102.4+4214_daily_bin451> in cluster <slac> Done

Job <4FGL_J0102.4+4214_daily_bin451> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 09:00:52 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 09:02:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 09:02:54 2021
Terminated at Fri Aug 13 09:11:35 2021
Results reported at Fri Aug 13 09:11:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.4+4214_daily_bin451 15.6069 42.2371 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0102.4+4214 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   504.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            643 sec.

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

