/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 103 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0102.4+4214_weekly_bin748
RA = 15.6069, Dec = 42.2371
tmin = 691372801, tmax = 691977601
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='993423', job_status='RUN', time_executed='2022-12-06 00:08:02.411082', time_epoch_executed='1670314082.41' WHERE source_name='4FGL J0102.4+4214' and cadence='weekly' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993423

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993423/ft1_4FGL_J0102.4+4214_weekly_bin748.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993423/ft2_4FGL_J0102.4+4214_weekly_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993423/ft1_4FGL_J0102.4+4214_weekly_bin748.fits outfile=/scratch/kocevski/993423/ft1_filteredMKT_4FGL_J0102.4+4214_weekly_bin748.fits ra=15.6069 dec=42.2371 rad=12.0 tmin=691372801.0 tmax=691977601.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 5.60
user 5.25
sys 0.24

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

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

Number of photons that the gtmktime cut: 999

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993423/ft1_filtered_4FGL_J0102.4+4214_weekly_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/993423/ft2_4FGL_J0102.4+4214_weekly_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/993423/ltcube_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.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/993423/ft2_4FGL_J0102.4+4214_weekly_bin748.fits
.....................!
real 33.97
user 33.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993423/ft1_filtered_4FGL_J0102.4+4214_weekly_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/993423/ft2_4FGL_J0102.4+4214_weekly_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/993423/ltcube_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.fits outfile=/scratch/kocevski/993423/expmap_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.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/993423/ltcube_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.fits
.....................!
real 191.11
user 185.32
sys 5.46

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/993423/ft1_filtered_4FGL_J0102.4+4214_weekly_bin748.fits scfile=/scratch/kocevski/993423/ft2_4FGL_J0102.4+4214_weekly_bin748.fits outfile=/scratch/kocevski/993423/cmap_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993423/ft1_filtered_4FGL_J0102.4+4214_weekly_bin748.fits scfile=/scratch/kocevski/993423/ft2_4FGL_J0102.4+4214_weekly_bin748.fits outfile=/scratch/kocevski/993423/cmap_HighResolution_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.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.57
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993423/ft1_filtered_4FGL_J0102.4+4214_weekly_bin748.fits', '/scratch/kocevski/993423/ft2_4FGL_J0102.4+4214_weekly_bin748.fits', expMap='/scratch/kocevski/993423/expmap_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.fits', expCube='/scratch/kocevski/993423/ltcube_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993423/Model_4FGL_J0102.4+4214_weekly_bin748.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  0.000e+00  1.000e+06 ( 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/993423/ft1_filtered_4FGL_J0102.4+4214_weekly_bin748.fits
Spacecraft file(s): /scratch/kocevski/993423/ft2_4FGL_J0102.4+4214_weekly_bin748.fits
Exposure map: /scratch/kocevski/993423/expmap_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.fits
Exposure cube: /scratch/kocevski/993423/ltcube_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993423/Model_4FGL_J0102.4+4214_weekly_bin748.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) = 10787.2750577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56966E-02   1.0000          .0000       .10000E+07
     2 'norm      '    12.383       1.0000          .0000       .10000E+07
     3 'Prefactor '    .26043E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.0811       1.0000          .0000       .10000E+07
     5 'Prefactor '    .96721E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.4603       1.0000          .0000       .10000E+07
     7 'Prefactor '    .52972E-03   1.0000          .0000       .10000E+07
     8 'norm      '    4.5382       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27206E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .85655E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .52178E-03   1.0000          .0000       .10000E+07
    12 'norm      '    7.2178       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.275       1.0000          .0000       .10000E+07
    14 'norm      '    6.9113       1.0000          .0000       .10000E+07
    15 'norm      '    .35659E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.491       1.0000          .0000       .10000E+07
    17 'norm      '    1.2211       1.0000          .0000       .10000E+07
    18 'norm      '    1.9533       1.0000          .0000       .10000E+07
    19 'Prefactor '    .19091E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .19937E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.4300       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1716       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84771       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=   10787.27     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1828 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29310E-07    9.3608       -.17493E-06** at limit **
   2  norm          12.365        11.220       -.16240E-07    .15532E-01
   3  Prefactor      .0000        1.9916        .59742E-07** at limit **
   4  Prefactor     3.0792        2.5210        .28359E-07   -.27266E-03
   5  Prefactor     .11463E-06    6.7089       -.24498E-06** at limit **
   6  Prefactor     5.4370        4.1109       -.69002E-07   -.16386E-01
   7  Prefactor     .13434E-07    6.2478       -.74908E-07** at limit **
   8  norm          4.5372        1.8702        .17044E-07    .79321E-03
   9  Prefactor      .0000        1.0931       -.41181E-07** at limit **
  10  Prefactor     .55511E-10    2.9012        .21845E-06** at limit **
  11  Prefactor      .0000        2.5674        .19336E-07** at limit **
  12  norm          7.3175        32.071        .29531E-06    .10586E-02
  13  Prefactor     14.263        2.4738       -.25043E-07   -.29601E-01
  14  norm          6.9098        1.7880        .20488E-07    .32747E-03
  15  norm          .55511E-10    3.5429       -.11153E-07** at limit **
  16  Prefactor     29.504        1.1432       -.33643E-09    .10075E-02
  17  norm          1.2215        1.1081       -.11436E-07    .30012E-03
  18  norm          1.9533        1.2621        .47740E-08    .32928E-03
  19  Prefactor     .57176E-08    6.8221        .28891E-06** at limit **
  20  Prefactor     .24292E-06    3.8765       -.14058E-06** at limit **
  21  Prefactor     .10580E-06    1708.7       -.11662E-04** at limit **
  22  Normalizat    1.1721        .19536       -.56037E-05    .78829E-04
  23  Prefactor     .84774        .87284E-01    .10654E-05    .10596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93099e-08
  norm       = 12.3653
  Prefactor  = 0
  Prefactor  = 3.07918
  Prefactor  = 1.14631e-07
  Prefactor  = 5.43704
  Prefactor  = 1.34337e-08
  norm       = 4.53719
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 7.31752
  Prefactor  = 14.2634
  norm       = 6.90984
  norm       = 5.55112e-11
  Prefactor  = 29.5042
  norm       = 1.22145
  norm       = 1.95327
  Prefactor  = 5.71765e-09
  Prefactor  = 2.42917e-07
  Prefactor  = 1.05804e-07
  Normalizat = 1.17206
  Prefactor  = 0.847743
 **********
 **   18 **HESSE 
 **********

 FCN=   10787.27     FROM HESSE     STATUS=OK           412 CALLS     2240 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29310E-07    9.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.365        11.545        .28441E-03   -1.5638    
   3  Prefactor      .0000        1.9916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0792        2.5359        .57758E-03   -1.5673    
   5  Prefactor     .11463E-06    8.8850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4370        12.397        .42977E-03   -1.5661    
   7  Prefactor     .13434E-07    7.5235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5372        1.8692        .47233E-03   -1.5665    
   9  Prefactor      .0000        1.0928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    2.9150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.5672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.3175        32.351        .37312E-03   -1.5654    
  13  Prefactor     14.263        12.110        .26484E-03   -1.5632    
  14  norm          6.9098        1.7838        .38139E-03   -1.5655    
  15  norm          .55511E-10    3.5082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.504        33.375        .18417E-03   -1.5599    
  17  norm          1.2215        1.1080        .10201E-03   -1.5686    
  18  norm          1.9533        1.2713        .74214E-03   -1.5680    
  19  Prefactor     .57176E-08    7.1118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .24292E-06    8.9529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10580E-06    1674.4        .65620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1721        .17202        .73968E-01   -.87471    
  23  Prefactor     .84774        .76153E-01    .44335E-01   -.97992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44928e-08
Minuit parameter uncertainties:
  1  0.00107714
  2  11.5452
  3  5.82125e-06
  4  2.53589
  5  0.00201864
  6  12.3966
  7  0.000635951
  8  1.86917
  9  3.33607e-08
  10  2.65036e-05
  11  1.17653e-05
  12  30.7722
  13  12.1095
  14  1.78383
  15  2.14265e-05
  16  33.3757
  17  1.108
  18  1.2713
  19  0.000404231
  20  0.00294945
  21  0.0266245
  22  0.172102
  23  0.076163
Done.

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

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  0.000e+00  1.177e-05  0.000e+00  1.000e+06 ( 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:  8.477e-01  7.616e-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.172e+00  1.721e-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: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993423/likelihoodResults_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.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) = 10787.2727247
delta logL = -0.000499074987601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10787.2722256
delta logL = -3.4455297282e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11657E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.9791       1.0000          .0000       10.000    
     3 'Normalizat'    1.1721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84775       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.

 FCN=   10787.27     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      258 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66613E-09    .12830        .42118E-03** at limit **
   2  Index         2.3550        7.2315        .50000        .31832E-09
   3  Normalizat    1.1721        .89613E-03    .73968E-01   -.55719E-03
   4  Prefactor     .84774        .41259E-03    .44335E-01   -.12606E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66134e-10
  Index      = 2.355
  Normalizat = 1.17206
  Prefactor  = 0.847742
 **********
 **   18 **HESSE 
 **********

 FCN=   10787.27     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66613E-09    .64500        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3550        6.9118        .50000       -.55742    
   3  Normalizat    1.1721        .20045E-02    .32734E-03   -.87471    
   4  Prefactor     .84774        .92402E-03    .17330E-03   -.97992    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.33315e-11
Minuit parameter uncertainties:
  1  4.1402e-05
  2  16872.5
  3  0.0020045
  4  0.000924017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993423': 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) = 10787.2722256
delta logL = -3.27418092638e-10

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  6.661e-10  4.140e-05  0.000e+00  1.000e+06 ( 1.000e-12)
179        Index:  2.355e+00  1.687e+04  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:  8.477e-01  9.240e-04  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.172e+00  2.005e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/993423/cmap_HighResolution_691372801_691977601_4FGL_J0102.4+4214_weekly_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.36e-08', time_completed='2022-12-06 00:21:54.201398', job_id='993423', GAL2='0.85', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1670314914.2', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-3.27e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='748' AND source_name='4FGL J0102.4+4214' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec  6 00:21:54 PST 2022

weekly';

Database successfully updated.


Analysis Complete.


Tue Dec  6 00:20:56 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 993470: <4FGL_J0102.4+4214_weekly_bin748> in cluster <slac> Done

Job <4FGL_J0102.4+4214_weekly_bin748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec  6 00:05:29 2022
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  6 00:05:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  6 00:05:30 2022
Terminated at Tue Dec  6 00:20:56 2022
Results reported at Tue Dec  6 00:20:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.4+4214_weekly_bin748 15.6069 42.2371 691372801 691977601 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 :                                   830.00 sec.
    Max Memory :                                 620 MB
    Average Memory :                             294.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            927 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 993423: <4FGL_J0102.4+4214_weekly_bin748> in cluster <slac> Done

Job <4FGL_J0102.4+4214_weekly_bin748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  6 00:05:26 2022
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  6 00:05:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  6 00:05:27 2022
Terminated at Tue Dec  6 00:21:54 2022
Results reported at Tue Dec  6 00:21:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.4+4214_weekly_bin748 15.6069 42.2371 691372801 691977601 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 :                                   832.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            988 sec.

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

