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


Performing analysis on: 4FGL_J0102.4+4214_daily_bin686
RA = 15.6069, Dec = 42.2371
tmin = 417139201, tmax = 417398401
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='285582', job_status='RUN', time_executed='2021-08-13 09:08:47.944413', time_epoch_executed='1628870927.94' WHERE source_name='4FGL J0102.4+4214' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285582

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285582/ft1_4FGL_J0102.4+4214_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285582/ft2_4FGL_J0102.4+4214_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285582/ft1_4FGL_J0102.4+4214_daily_bin686.fits outfile=/scratch/kocevski/285582/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin686.fits ra=15.6069 dec=42.2371 rad=12.0 tmin=417139201.0 tmax=417398401.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 14.61
user 5.27
sys 9.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285582/ft2_4FGL_J0102.4+4214_daily_bin686.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/285582/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin686.fits evtable="EVENTS" outfile="/scratch/kocevski/285582/ft1_filtered_4FGL_J0102.4+4214_daily_bin686.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 10.20
user 0.37
sys 9.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285582/ft1_filtered_4FGL_J0102.4+4214_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/285582/ft2_4FGL_J0102.4+4214_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/285582/ltcube_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.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/285582/ft2_4FGL_J0102.4+4214_daily_bin686.fits
.....................!
real 25.47
user 14.77
sys 10.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285582/ft1_filtered_4FGL_J0102.4+4214_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/285582/ft2_4FGL_J0102.4+4214_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/285582/ltcube_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.fits outfile=/scratch/kocevski/285582/expmap_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.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/285582/ltcube_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.fits
.....................!
real 205.33
user 187.69
sys 16.98

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/285582/ft1_filtered_4FGL_J0102.4+4214_daily_bin686.fits scfile=/scratch/kocevski/285582/ft2_4FGL_J0102.4+4214_daily_bin686.fits outfile=/scratch/kocevski/285582/cmap_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.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
real 9.49
user 0.42
sys 8.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285582/ft1_filtered_4FGL_J0102.4+4214_daily_bin686.fits scfile=/scratch/kocevski/285582/ft2_4FGL_J0102.4+4214_daily_bin686.fits outfile=/scratch/kocevski/285582/cmap_HighResolution_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.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
real 9.57
user 0.41
sys 9.06

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/285582/ft1_filtered_4FGL_J0102.4+4214_daily_bin686.fits', '/scratch/kocevski/285582/ft2_4FGL_J0102.4+4214_daily_bin686.fits', expMap='/scratch/kocevski/285582/expmap_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.fits', expCube='/scratch/kocevski/285582/ltcube_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/285582/Model_4FGL_J0102.4+4214_daily_bin686.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/285582/ft1_filtered_4FGL_J0102.4+4214_daily_bin686.fits
Spacecraft file(s): /scratch/kocevski/285582/ft2_4FGL_J0102.4+4214_daily_bin686.fits
Exposure map: /scratch/kocevski/285582/expmap_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.fits
Exposure cube: /scratch/kocevski/285582/ltcube_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/285582/Model_4FGL_J0102.4+4214_daily_bin686.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) = 4262.75900045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.905       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.644       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.028       1.0000         .10000E-03   10000.    
     8 'norm      '    4.5246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81826       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.340       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2571       1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.131       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5817       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3477       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1339       1.0000         .10000E-03   10000.    
    18 'Prefactor '    77.381       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9502       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5771       1.0000         .10000E-03   10000.    
    21 'norm      '    .57945       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.239       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5042       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .72905       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1364       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=   4262.689     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3170 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.904        44.445        .39788E-05    .11279E-04
   2  norm          .10000E-03    18.529        .28505E-06** at limit **
   3  Prefactor     .10000E-03    5.7473        .14524E-06** at limit **
   4  Prefactor     .10000E-03    7.6574       -.25382E-05** at limit **
   5  Prefactor     67.315        42.440        .56232E-05    .10277E-03
   6  Prefactor     58.602        50.523       -.67482E-05   -.30639E-03
   7  Prefactor     27.879        64.162       -.96511E-05   -.57546E-04
   8  norm          4.5241        3.5856        .12379E-06   -.99643E-04
   9  Prefactor     .80546        13.353        .34874E-05   -.17887E-04
  10  Prefactor     .10000E-03    8.9905       -.18649E-06** at limit **
  11  Prefactor     11.348        15.593       -.41522E-05   -.33455E-03
  12  norm          .10000E-03    38.852        .16762E-06** at limit **
  13  Prefactor     3.2502        31.586       -.27076E-05   -.68219E-04
  14  Prefactor     62.731        97.569        .28438E-04    .19498E-04
  15  norm          2.5791        2.7901       -.97704E-06    .15487E-03
  16  norm          2.3475        4.8303       -.15224E-06   -.60332E-04
  17  Prefactor     1.1315        25.969        .32733E-04   -.23769E-03
  18  Prefactor     77.387        55.762        .27200E-05    .36833E-04
  19  Prefactor     2.9807        237.12        .45098E-05   -.99917E-05
  20  norm          1.5770        1.3759        .25287E-07   -.14811E-04
  21  norm          .57913        .82036       -.28255E-06   -.10875E-02
  22  Prefactor     19.235        19.113       -.40587E-06   -.25096E-04
  23  Prefactor     2.5015        3.7498        .45733E-06    .17380E-04
  24  Prefactor     .10000E-03    23.070       -.13496E-06** at limit **
  25  Normalizat    .72909        .34045       -.89507E-05   -.20555E-03
  26  Prefactor     1.1364        .14725        .10405E-05   -.18470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9044
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 67.3147
  Prefactor  = 58.6018
  Prefactor  = 27.8795
  norm       = 4.52414
  Prefactor  = 0.805456
  Prefactor  = 0.0001
  Prefactor  = 11.3483
  norm       = 0.0001
  Prefactor  = 3.25024
  Prefactor  = 62.7311
  norm       = 2.57907
  norm       = 2.3475
  Prefactor  = 1.13146
  Prefactor  = 77.3868
  Prefactor  = 2.98073
  norm       = 1.57695
  norm       = 0.579135
  Prefactor  = 19.2353
  Prefactor  = 2.50151
  Prefactor  = 0.0001
  Normalizat = 0.729086
  Prefactor  = 1.13643
 **********
 **   18 **HESSE 
 **********

 FCN=   4262.689     FROM HESSE     STATUS=OK           468 CALLS     3638 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.904        44.448        .97411E-04   -1.4885    
   2  norm          .10000E-03    18.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7575        .15287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8501        .35180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.315        42.351        .24464E-03   -1.4065    
   6  Prefactor     58.602        50.403        .26195E-03   -1.4175    
   7  Prefactor     27.879        64.064        .75674E-04   -1.4651    
   8  norm          4.5241        3.5862        .10685E-03   -1.5283    
   9  Prefactor     .80546        39.950        .42953E-02   -1.5528    
  10  Prefactor     .10000E-03    9.0039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.348        15.564        .11897E-03   -1.5034    
  12  norm          .10000E-03    38.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2502        31.326        .22440E-03   -1.5347    
  14  Prefactor     62.731        97.236        .25252E-03   -1.4122    
  15  norm          2.5791        2.8276        .96264E-04   -1.5387    
  16  norm          2.3475        4.8159        .19677E-03   -1.5402    
  17  Prefactor     1.1315        26.658        .21900E-02   -1.5495    
  18  Prefactor     77.387        55.271        .45650E-04   -1.3946    
  19  Prefactor     2.9807        237.56        .23644E-03   -1.5363    
  20  norm          1.5770        1.3868        .69648E-04   -1.5457    
  21  norm          .57913        .76710        .65999E-03   -1.5556    
  22  Prefactor     19.235        19.064        .91314E-04   -1.4831    
  23  Prefactor     2.5015        3.7225        .14375E-03   -1.5392    
  24  Prefactor     .10000E-03    23.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .72909        .36537        .42976E-03   -1.0276    
  26  Prefactor     1.1364        .16104        .17015E-03   -.88310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27389e-08
Minuit parameter uncertainties:
  1  44.5347
  2  4.57015e-05
  3  1.86367e-05
  4  0.000250902
  5  42.3701
  6  50.4395
  7  64.2229
  8  3.58638
  9  11.3524
  10  2.68379e-05
  11  15.5697
  12  7.54016e-06
  13  20.1945
  14  97.4838
  15  2.82772
  16  4.81666
  17  10.989
  18  55.308
  19  53.4401
  20  1.38681
  21  0.767114
  22  19.0702
  23  3.72289
  24  2.71255e-06
  25  0.366596
  26  0.161111
Done.

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

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  1.135e+01  1.557e+01  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:  1.136e+00  1.611e-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:  7.291e-01  3.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/285582/likelihoodResults_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4262.45394631
delta logL = 0.234620258549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4262.44452646
delta logL = 0.244040111319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8304       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5998       1.0000          .0000       10.000    
     3 'Normalizat'    .69355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1475       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=   4262.445     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      275 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8309        15.580        .15122E-03    .21043E-03
   2  Index         3.5999        1.9586        .76077E-02    .61833E-04
   3  Normalizat    .69356        .32515        .43979E-03    .95440E-04
   4  Prefactor     1.1475        .15540        .16941E-03    .16110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.83089
  Index      = 3.59986
  Normalizat = 0.693563
  Prefactor  = 1.1475
 **********
 **   18 **HESSE 
 **********

 FCN=   4262.445     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8309        11.840        .60488E-05   -1.5225    
   2  Index         3.5999        1.5054        .30431E-03   -.28382    
   3  Normalizat    .69356        .32537        .17591E-04   -1.0415    
   4  Prefactor     1.1475        .15536        .33882E-04   -.87962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13718e-10
Minuit parameter uncertainties:
  1  11.8447
  2  1.53123
  3  0.326278
  4  0.155423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285582': 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) = 4262.44452645
delta logL = 0.244040123371

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  5.831e+00  1.184e+01  1.000e-04  1.000e+04 ( 1.000e-12)
179        Index:  3.600e+00  1.531e+00  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:  1.148e+00  1.554e-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:  6.936e-01  3.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 15.607 42.237
Photon Index (Free Index): 3.60 +/- 1.53
Photon Flux (Free Index): 7.89e-08 +/- 8.17e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/285582/cmap_HighResolution_417139201_417398401_4FGL_J0102.4+4214_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='2.44e-01', photon_flux2='7.89e-08', job_status='DONE', time_completed='2021-08-13 09:21:38.333277', photon_index_error2='1.53', photon_index2='3.60', ts='0.79', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='2.09e-07', energy_flux_error2='1.34e-05', EG='0.73', time_epoch_completed='1628871698.33', return_code='0', job_id='285582', GAL2='1.15', EG2='0.69', return_code2='0', photon_flux_error2='8.17e-08', ts2='1.33', photon_index='2.68' WHERE bin_id='686' AND source_name='4FGL J0102.4+4214' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 09:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 285582: <4FGL_J0102.4+4214_daily_bin686> in cluster <slac> Done

Job <4FGL_J0102.4+4214_daily_bin686> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 09:05:31 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 09:06:10 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:06:10 2021
Terminated at Fri Aug 13 09:21:40 2021
Results reported at Fri Aug 13 09:21:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.4+4214_daily_bin686 15.6069 42.2371 417139201 417398401 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 :                                   910.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            969 sec.

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

