aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 65 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 = 7702
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0102.4+4214_daily_bin1672
RA = 15.6069, Dec = 42.2371
tmin = 672710401, tmax = 672969601
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='153846', job_status='RUN', time_executed='2022-04-30 00:09:28.158335', time_epoch_executed='1651302568.16' WHERE source_name='4FGL J0102.4+4214' and cadence='daily' and bin_id='1672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153846

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153846/ft1_4FGL_J0102.4+4214_daily_bin1672.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153846/ft2_4FGL_J0102.4+4214_daily_bin1672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153846/ft1_4FGL_J0102.4+4214_daily_bin1672.fits outfile=/scratch/kocevski/153846/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin1672.fits ra=15.6069 dec=42.2371 rad=12.0 tmin=672710401.0 tmax=672969601.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 3.13
user 2.90
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153846/ft2_4FGL_J0102.4+4214_daily_bin1672.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/153846/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin1672.fits evtable="EVENTS" outfile="/scratch/kocevski/153846/ft1_filtered_4FGL_J0102.4+4214_daily_bin1672.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 517

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153846/ft1_filtered_4FGL_J0102.4+4214_daily_bin1672.fits" evtable="EVENTS" scfile=/scratch/kocevski/153846/ft2_4FGL_J0102.4+4214_daily_bin1672.fits sctable="SC_DATA" outfile=/scratch/kocevski/153846/ltcube_672710401_672969601_4FGL_J0102.4+4214_daily_bin1672.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/153846/ft2_4FGL_J0102.4+4214_daily_bin1672.fits
.....................!
real 13.45
user 13.06
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153846/ft1_filtered_4FGL_J0102.4+4214_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153846/ft2_4FGL_J0102.4+4214_daily_bin1672.fits sctable="SC_DATA" expcube=/scratch/kocevski/153846/ltcube_672710401_672969601_4FGL_J0102.4+4214_daily_bin1672.fits outfile=/scratch/kocevski/153846/expmap_672710401_672969601_4FGL_J0102.4+4214_daily_bin1672.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/153846/ltcube_672710401_672969601_4FGL_J0102.4+4214_daily_bin1672.fits
.....................!
real 191.40
user 185.60
sys 5.44

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/153846/ft1_filtered_4FGL_J0102.4+4214_daily_bin1672.fits scfile=/scratch/kocevski/153846/ft2_4FGL_J0102.4+4214_daily_bin1672.fits outfile=/scratch/kocevski/153846/cmap_672710401_672969601_4FGL_J0102.4+4214_daily_bin1672.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 0.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153846/ft1_filtered_4FGL_J0102.4+4214_daily_bin1672.fits scfile=/scratch/kocevski/153846/ft2_4FGL_J0102.4+4214_daily_bin1672.fits outfile=/scratch/kocevski/153846/cmap_HighResolution_672710401_672969601_4FGL_J0102.4+4214_daily_bin1672.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 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.9835       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.259       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.950       1.0000         .10000E-03   10000.    
    15 'norm      '    .11570E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0134       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.1956       1.0000         .10000E-03   10000.    
    21 'norm      '    .34403       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .86681E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0638       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91222       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=   5595.448     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3085 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5143       -.64480E-06** at limit **
   2  norm          .10000E-03    19.241       -.11693E-04** at limit **
   3  Prefactor     6.9825        6.0298        .14590E-07    .17834E-03
   4  Prefactor     .10001E-03    1.6400       -.72172E-06** at limit **
   5  Prefactor     .10000E-03    15.861        .12043E-04** at limit **
   6  Prefactor     .10000E-03    7.2431        .30687E-05** at limit **
   7  Prefactor     .10000E-03    25.802        .81703E-05** at limit **
   8  norm          6.9851        3.6571       -.78214E-07   -.32767E-04
   9  Prefactor     .10000E-03    2.3509        .25553E-07** at limit **
  10  Prefactor     5.5599        17.462        .44048E-05   -.16328E-04
  11  Prefactor     20.272        17.884        .32910E-06   -.31107E-04
  12  norm          .10000E-03    13.027       -.92072E-05** at limit **
  13  Prefactor     .10000E-03    15.182        .13550E-04** at limit **
  14  Prefactor     35.924        100.84       -.40123E-04   -.72876E-06
  15  norm          .10000E-03    1.3689       -.33484E-06** at limit **
  16  norm          .10000E-03    1.8778       -.12948E-07** at limit **
  17  Prefactor     5.0109        15.317        .51361E-06   -.16365E-04
  18  Prefactor     .10000E-03    19.588       -.12908E-04** at limit **
  19  Prefactor     .10000E-03    25.576        .51146E-05** at limit **
  20  norm          2.1955        2.0287        .92208E-09    .99832E-04
  21  norm          .34356        .87785       -.28253E-06   -.13757E-02
  22  Prefactor     .10000E-03    18.180       -.36666E-05** at limit **
  23  Prefactor     .10000E-03    5.0946        .59171E-07** at limit **
  24  Prefactor     .10000E-03    189.32       -.55352E-04** at limit **
  25  Normalizat    1.0632        .24758        .12284E-05    .14577E-03
  26  Prefactor     .91243        .98891E-01    .53748E-06    .23793E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.98247
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.98511
  Prefactor  = 0.0001
  Prefactor  = 5.55986
  Prefactor  = 20.2721
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.9242
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.01087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1955
  norm       = 0.34356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06317
  Prefactor  = 0.912425
 **********
 **   18 **HESSE 
 **********

 FCN=   5595.448     FROM HESSE     STATUS=OK           452 CALLS     3537 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    19.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9825        6.0363        .15187E-03   -1.5179    
   4  Prefactor     .10001E-03    7.3148        .18166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.9851        3.6574        .99581E-04   -1.5179    
   9  Prefactor     .10000E-03    2.3555        .11200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5599        17.339        .17028E-03   -1.5236    
  11  Prefactor     20.272        17.961        .88986E-04   -1.4807    
  12  norm          .10000E-03    13.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.924        100.69        .66840E-04   -1.4509    
  15  norm          .10000E-03    2.2726        .16475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8963        .10007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0109        15.102        .17960E-03   -1.5260    
  18  Prefactor     .10000E-03    19.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.1955        2.0336        .99856E-04   -1.5412    
  21  norm          .34356        .82725        .10740E-02   -1.5591    
  22  Prefactor     .10000E-03    18.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1438        .16488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    189.41        .20853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0632        .27911        .34891E-03   -.90943    
  26  Prefactor     .91243        .11309        .16088E-03   -.95708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19421e-09
Minuit parameter uncertainties:
  1  3.16821e-06
  2  1.12099e-05
  3  6.03683
  4  0.000388752
  5  3.12541e-05
  6  2.47478e-06
  7  1.18049e-05
  8  3.65755
  9  3.35969e-07
  10  17.3546
  11  17.9658
  12  1.02373e-06
  13  1.46985e-05
  14  101.169
  15  5.27859e-05
  16  7.82003e-08
  17  15.1134
  18  2.83265e-05
  19  3.96795e-05
  20  2.03368
  21  0.827281
  22  7.65804e-07
  23  2.85619e-06
  24  5.88128e-05
  25  0.2795
  26  0.113118
Done.

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

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  2.027e+01  1.797e+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:  9.124e-01  1.131e-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.063e+00  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 15.607 42.237
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.48e-08 +/- 8.39e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/153846/likelihoodResults_672710401_672969601_4FGL_J0102.4+4214_daily_bin1672.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) = 5595.15100237
delta logL = 0.296782784582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5595.13982638
delta logL = 0.307958767224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.658       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5191       1.0000          .0000       10.000    
     3 'Normalizat'    1.0181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92612       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5595.140     FROM MIGRAD    STATUS=FAILED       101 CALLS      294 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.677        27.669        .61363E-03   -.18508E-04
   2  Index         3.5177        2.0576        .66896E-02    .33664E-03
   3  Normalizat    1.0184        .26932        .35559E-03   -.32963E-04
   4  Prefactor     .92609        .11323        .15985E-03   -.50339E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5595.140     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      369 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.677        27.669        .17520E-03   -1.5054    
   2  Index         3.5177        2.0576        .98829E-03   -.30099    
   3  Normalizat    1.0184        .26932        .47756E-03   -.92416    
   4  Prefactor     .92609        .11323        .16132E-03   -.95235    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5595.140     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      407 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.677        17.623        .24545E-04   -.14358E-04
   2  Index         3.5177        1.3344        .13379E-02    .30930E-05
   3  Normalizat    1.0184        .26851        .14224E-04   -.47957E-06
   4  Prefactor     .92609        .11246        .31970E-04   -.42672E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6767
  Index      = 3.51767
  Normalizat = 1.01841
  Prefactor  = 0.92609
 **********
 **   18 **HESSE 
 **********

 FCN=   5595.140     FROM HESSE     STATUS=OK            23 CALLS      430 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.677        16.762        .98180E-06   -1.5054    
   2  Index         3.5177        1.2709        .53517E-04   -.30099    
   3  Normalizat    1.0184        .26856        .28447E-05   -.92416    
   4  Prefactor     .92609        .11244        .63940E-05   -.95235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90461e-12
Minuit parameter uncertainties:
  1  16.7695
  2  1.28636
  3  0.268915
  4  0.112471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153846': 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) = 5595.13982423
delta logL = 0.307960916885

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  1.068e+01  1.677e+01  1.000e-04  1.000e+04 ( 1.000e-12)
179        Index:  3.518e+00  1.286e+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:  9.261e-01  1.125e-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.018e+00  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 15.607 42.237
Photon Index (Free Index): 3.52 +/- 1.29
Photon Flux (Free Index): 1.31e-07 +/- 9.44e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.56e-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/153846/cmap_HighResolution_672710401_672969601_4FGL_J0102.4+4214_daily_bin1672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', comment='SUCCESS', photon_flux='9.48e-08', energy_flux2='2.16e-05', photon_flux_error='8.39e-08', dlogl='3.08e-01', energy_flux='2.32e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2022-04-30 00:20:57.016049', photon_index_error2='1.29', photon_index2='3.52', ts='2.16', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.45e-07', energy_flux_error2='1.56e-05', EG='1.06', time_epoch_completed='1651303257.02', return_code='0', job_id='153846', GAL2='0.93', EG2='1.02', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='9.44e-08', ts2='2.92', photon_index='2.68' WHERE bin_id='1672' AND source_name='4FGL J0102.4+4214' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 30 00:20:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 153836: <4FGL_J0102.4+4214_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0102.4+4214_daily_bin1672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:41 2022
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:08:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:08:02 2022
Terminated at Sat Apr 30 00:20:40 2022
Results reported at Sat Apr 30 00:20:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.4+4214_daily_bin1672 15.6069 42.2371 672710401 672969601 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 :                                   699.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            899 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 153846: <4FGL_J0102.4+4214_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0102.4+4214_daily_bin1672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:42 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:08:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:08:15 2022
Terminated at Sat Apr 30 00:20:57 2022
Results reported at Sat Apr 30 00:20:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.4+4214_daily_bin1672 15.6069 42.2371 672710401 672969601 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 :                                   691.00 sec.
    Max Memory :                                 1139 MB
    Average Memory :                             314.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            915 sec.

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

