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


Performing analysis on: 4FGL_J0102.4+4214_daily_bin1303
RA = 15.6069, Dec = 42.2371
tmin = 577065601, tmax = 577324801
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='288700', job_status='RUN', time_executed='2021-08-13 09:21:58.010912', time_epoch_executed='1628871718.01' WHERE source_name='4FGL J0102.4+4214' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288700/ft1_4FGL_J0102.4+4214_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288700/ft2_4FGL_J0102.4+4214_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288700/ft1_4FGL_J0102.4+4214_daily_bin1303.fits outfile=/scratch/kocevski/288700/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin1303.fits ra=15.6069 dec=42.2371 rad=12.0 tmin=577065601.0 tmax=577324801.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 8.47
user 2.94
sys 5.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288700/ft2_4FGL_J0102.4+4214_daily_bin1303.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/288700/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin1303.fits evtable="EVENTS" outfile="/scratch/kocevski/288700/ft1_filtered_4FGL_J0102.4+4214_daily_bin1303.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 5.70
user 0.35
sys 5.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288700/ft1_filtered_4FGL_J0102.4+4214_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/288700/ft2_4FGL_J0102.4+4214_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/288700/ltcube_577065601_577324801_4FGL_J0102.4+4214_daily_bin1303.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/288700/ft2_4FGL_J0102.4+4214_daily_bin1303.fits
.....................!
real 20.37
user 14.13
sys 6.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288700/ft1_filtered_4FGL_J0102.4+4214_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/288700/ft2_4FGL_J0102.4+4214_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/288700/ltcube_577065601_577324801_4FGL_J0102.4+4214_daily_bin1303.fits outfile=/scratch/kocevski/288700/expmap_577065601_577324801_4FGL_J0102.4+4214_daily_bin1303.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/288700/ltcube_577065601_577324801_4FGL_J0102.4+4214_daily_bin1303.fits
.....................!
real 198.83
user 186.27
sys 12.07

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/288700/ft1_filtered_4FGL_J0102.4+4214_daily_bin1303.fits scfile=/scratch/kocevski/288700/ft2_4FGL_J0102.4+4214_daily_bin1303.fits outfile=/scratch/kocevski/288700/cmap_577065601_577324801_4FGL_J0102.4+4214_daily_bin1303.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 5.67
user 0.38
sys 5.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288700/ft1_filtered_4FGL_J0102.4+4214_daily_bin1303.fits scfile=/scratch/kocevski/288700/ft2_4FGL_J0102.4+4214_daily_bin1303.fits outfile=/scratch/kocevski/288700/cmap_HighResolution_577065601_577324801_4FGL_J0102.4+4214_daily_bin1303.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 5.63
user 0.39
sys 4.97

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.488       1.0000         .10000E-03   10000.    
     2 'norm      '    8.6997       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5480       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7346       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14992E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.520       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8567       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    328.68       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10014E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1679       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2001.435     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     3683 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.480        1.2704       -.24678E-06   -.28618E-03
   2  norm          8.6919        1.0931       -.14839E-06   -.19011E-03
   3  Prefactor     .10000E-03    5.9981        .11126E-05** at limit **
   4  Prefactor     2.5479        3.6912        .90277E-06    .34178E-04
   5  Prefactor     .10000E-03    10.146        .81063E-07** at limit **
   6  Prefactor     .10001E-03    28.018       -.51938E-05** at limit **
   7  Prefactor     .10002E-03    26.835       -.10423E-04** at limit **
   8  norm          1.7340        5.2664        .93001E-06    .52331E-04
   9  Prefactor     5.8309        1.0822        .63542E-06   -.37085E-03
  10  Prefactor     .16986E-03    120.94       -.12561E-04** at limit **
  11  Prefactor     .10000E-03    16.219       -.16349E-05** at limit **
  12  norm          .10020E-03    36.353        .86686E-05** at limit **
  13  Prefactor     58.520        1.0053       -.30958E-07    .60360E-04
  14  Prefactor     .10726E-03    35.407       -.10820E-05** at limit **
  15  norm          .10000E-03    10.998        .10151E-05** at limit **
  16  norm          3.8611        7.5549        .19375E-04    .30013E-02
  17  Prefactor    10000.0        209.55        .50120E-04** at limit **
  18  Prefactor     .10039E-03    23.922       -.54306E-05** at limit **
  19  Prefactor     .10434E-03    29.479        .53911E-05** at limit **
  20  norm          .10001E-03    29.322        .36530E-05** at limit **
  21  norm          .10000E-03    4.9687       -.47981E-06** at limit **
  22  Prefactor    10000.0        1.5319        .50204E-05** at limit **
  23  Prefactor     .10210E-03    31.722        .15609E-05** at limit **
  24  Prefactor     328.68        1.1367        .70811E-07   -.12914E-02
  25  Normalizat    .10000E-01    6.5628       -.69799E-04** at limit **
  26  Prefactor     1.1679        .10878       -.30519E-05   -.83542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4796
  norm       = 8.69188
  Prefactor  = 0.0001
  Prefactor  = 2.54792
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100017
  norm       = 1.73399
  Prefactor  = 5.83088
  Prefactor  = 0.000169855
  Prefactor  = 0.0001
  norm       = 0.000100199
  Prefactor  = 58.5198
  Prefactor  = 0.000107257
  norm       = 0.0001
  norm       = 3.86114
  Prefactor  = 10000
  Prefactor  = 0.000100389
  Prefactor  = 0.000104339
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000102105
  Prefactor  = 328.683
  Normalizat = 0.01
  Prefactor  = 1.16788
 **********
 **   18 **HESSE 
 **********

 FCN=   2001.435     FROM HESSE     STATUS=OK           498 CALLS     4181 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.480        32.499        .28338E-02   -1.5001    
   2  norm          8.6919        29.149        .33975E-02   -1.5118    
   3  Prefactor     .10000E-03    5.9879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5479        3.7618        .63952E-02   -1.5389    
   5  Prefactor     .10000E-03    10.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    28.012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    51.230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7340        5.3046        .79667E-02   -1.5445    
   9  Prefactor     5.8309        9.6777        .41575E-02   -1.5225    
  10  Prefactor     .16986E-03    208.64        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10020E-03    36.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.520        69.395        .13111E-02   -1.4177    
  14  Prefactor     .10726E-03    110.74        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.997        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8611        7.6268        .51372E-02   -1.5315    
  17  Prefactor    10000.0        505.53        .90712E-02    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10039E-03    49.582        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10434E-03    133.03        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    122.54        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.9669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        6682.6        .10510E-01    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10210E-03    116.32        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     328.68        1443.7        .56088E-03   -1.2062    
  25  Normalizat    .10000E-01    .66715        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.1679        .15920        .35439E-01   -.87325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28314e-06
Minuit parameter uncertainties:
  1  32.5454
  2  29.197
  3  1.49506e-05
  4  3.76212
  5  2.83553e-05
  6  0.00116626
  7  0.00184262
  8  5.30606
  9  9.68027
  10  0.242296
  11  5.81796e-05
  12  0.00541425
  13  69.4913
  14  0.0568034
  15  3.98009e-05
  16  7.6287
  17  0.82006
  18  0.00878821
  19  0.0481572
  20  0.00174348
  21  8.84734e-06
  22  2.29451
  23  0.031355
  24  1440.62
  25  2.32878e-06
  26  0.159262
Done.

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

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  1.000e-04  5.818e-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:  1.168e+00  1.593e-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:  1.000e-02  2.329e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/288700/likelihoodResults_577065601_577324801_4FGL_J0102.4+4214_daily_bin1303.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) = 2001.43530346
delta logL = -0.00029456757693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2001.43501422
delta logL = -5.32585863766e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4021       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1679       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=   2001.435     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      313 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    413.19        .11778E-01** at limit **
   2  Index         1.7897        5.9237        .50000       -.90012E-07
   3  Normalizat    .10000E-01    .76401E-01    .14126E-01** at limit **
   4  Prefactor     1.1679        .15498E-01    .14131E-03   -.25777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.78974
  Normalizat = 0.01
  Prefactor  = 1.16788
 **********
 **   18 **HESSE 
 **********

 FCN=   2001.435     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      342 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1818.3        .23556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7897        5.7431        .50000       -.69717    
   3  Normalizat    .10000E-01    .38758        .56502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1679        .34641E-01    .28263E-04   -.87326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.45801e-11
Minuit parameter uncertainties:
  1  0.0019903
  2  1257.13
  3  4.47107e-06
  4  0.0346416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288700': 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) = 2001.43500711
delta logL = 1.79016547008e-06

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  1.000e-04  1.990e-03  1.000e-04  1.000e+04 ( 1.000e-12)
179        Index:  1.790e+00  1.257e+03  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.168e+00  3.464e-02  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:  1.000e-02  4.471e-06  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/288700/cmap_HighResolution_577065601_577324801_4FGL_J0102.4+4214_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-02', job_status='DONE', photon_flux_upper_limit='3.45e-07', time_completed='2021-08-13 09:31:15.514034', job_id='288700', GAL2='1.17', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1628872275.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1303' AND source_name='4FGL J0102.4+4214' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 09:31:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 288700: <4FGL_J0102.4+4214_daily_bin1303> in cluster <slac> Done

Job <4FGL_J0102.4+4214_daily_bin1303> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 09:15:44 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 09:20:22 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:20:22 2021
Terminated at Fri Aug 13 09:31:17 2021
Results reported at Fri Aug 13 09:31:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.4+4214_daily_bin1303 15.6069 42.2371 577065601 577324801 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 :                                   630.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            933 sec.

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

