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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1658
RA = 21.7036, Dec = 24.21
tmin = 669081601, tmax = 669340801
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='694919', job_status='RUN', time_executed='2022-03-19 00:10:02.774625', time_epoch_executed='1647673802.77' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694919/ft1_4FGL_J0126.8+2412_daily_bin1658.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694919/ft1_4FGL_J0126.8+2412_daily_bin1658.fits outfile=/scratch/kocevski/694919/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1658.fits ra=21.7036 dec=24.21 rad=12.0 tmin=669081601.0 tmax=669340801.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.49
user 5.18
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.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/694919/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1658.fits evtable="EVENTS" outfile="/scratch/kocevski/694919/ft1_filtered_4FGL_J0126.8+2412_daily_bin1658.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 survived the gtmktime cut: 708

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694919/ft1_filtered_4FGL_J0126.8+2412_daily_bin1658.fits" evtable="EVENTS" scfile=/scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits sctable="SC_DATA" outfile=/scratch/kocevski/694919/ltcube_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.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/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits
.....................!
real 13.39
user 12.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694919/ft1_filtered_4FGL_J0126.8+2412_daily_bin1658.fits evtable="EVENTS" scfile=/scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits sctable="SC_DATA" expcube=/scratch/kocevski/694919/ltcube_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.fits outfile=/scratch/kocevski/694919/expmap_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.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/694919/ltcube_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.fits
.....................!
real 192.87
user 185.73
sys 4.97

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

Setting source of interest to:
4FGL J0126.8+2412 @ 21.7036 24.21

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/694919/ft1_filtered_4FGL_J0126.8+2412_daily_bin1658.fits scfile=/scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits outfile=/scratch/kocevski/694919/cmap_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.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=21.7036 yref=24.21 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694919/ft1_filtered_4FGL_J0126.8+2412_daily_bin1658.fits scfile=/scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits outfile=/scratch/kocevski/694919/cmap_HighResolution_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.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=21.7036 yref=24.21 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/694919/ft1_filtered_4FGL_J0126.8+2412_daily_bin1658.fits evtable="EVENTS" scfile=/scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/694919/Model_4FGL_J0126.8+2412_daily_bin1658.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/694919/ft1_filtered_4FGL_J0126.8+2412_daily_bin1658.fits.....................!
real 78.01
user 76.00
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/694919/ft1_filtered_4FGL_J0126.8+2412_daily_bin1658.fits', '/scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits', expMap='/scratch/kocevski/694919/expmap_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.fits', expCube='/scratch/kocevski/694919/ltcube_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/694919/Model_4FGL_J0126.8+2412_daily_bin1658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0126.8+2412'

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.716e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/694919/ft1_filtered_4FGL_J0126.8+2412_daily_bin1658.fits
Spacecraft file(s): /scratch/kocevski/694919/ft2_4FGL_J0126.8+2412_daily_bin1658.fits
Exposure map: /scratch/kocevski/694919/expmap_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.fits
Exposure cube: /scratch/kocevski/694919/ltcube_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/694919/Model_4FGL_J0126.8+2412_daily_bin1658.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) = 7514.71475658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4195       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .47226       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5206       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7364       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3241       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7514.602     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2030 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4189        7.3519        .51526E-05   -.34381E-04
   2  Prefactor     .10000E-03    4.2050       -.82047E-08** at limit **
   3  Prefactor     .10000E-03    5.7461        .26832E-08** at limit **
   4  Prefactor     .10000E-03    21.780        .71669E-06** at limit **
   5  norm          .47238        .42846       -.54762E-07   -.12451E-02
   6  norm          .10000E-03    .50507       -.15324E-07** at limit **
   7  Prefactor     16.330        13.954        .17781E-07    .62850E-05
   8  Prefactor     .10000E-03    23.029        .56621E-06** at limit **
   9  Prefactor     .10000E-03    2.1245       -.81366E-07** at limit **
  10  Prefactor     .10000E-03    2.4868       -.21357E-07** at limit **
  11  Prefactor     .10000E-03    10.039       -.77751E-07** at limit **
  12  Prefactor     .10000E-03    9.5704        .31513E-06** at limit **
  13  Prefactor     .10000E-03    29.485       -.14507E-05** at limit **
  14  norm          1.5206        .75280        .68020E-07    .11672E-02
  15  Prefactor     .10000E-03    16.020        .27648E-06** at limit **
  16  Prefactor     .10000E-03    8.0024       -.12343E-06** at limit **
  17  norm          .10000E-03    1.4096       -.64924E-08** at limit **
  18  Prefactor     .10000E-03    68.849        .64923E-06** at limit **
  19  Prefactor     .10000E-03    4.7154       -.17043E-07** at limit **
  20  Prefactor     5.7361        5.8886        .99244E-06    .75701E-04
  21  Normalizat    1.3242        .18439        .11156E-06    .21563E-03
  22  Prefactor     .98171        .11987       -.22881E-06    .33525E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.41885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.472376
  norm       = 0.0001
  Prefactor  = 16.33
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.5206
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.73608
  Normalizat = 1.32417
  Prefactor  = 0.981706
 **********
 **   18 **HESSE 
 **********

 FCN=   7514.602     FROM HESSE     STATUS=OK           334 CALLS     2364 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4189        7.3530        .13157E-02   -1.5397    
   2  Prefactor     .10000E-03    4.2190        .17360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .47238        .40463        .52450E-03   -1.5571    
   6  norm          .10000E-03    1.5001        .11957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.330        13.963        .99110E-04   -1.4900    
   8  Prefactor     .10000E-03    23.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1615        .12339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5104        .13345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.5756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5206        .74550        .50610E-04   -1.5461    
  15  Prefactor     .10000E-03    16.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4256        .10050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    68.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7361        5.8865        .83851E-03   -1.5229    
  21  Normalizat    1.3242        .21515        .27544E-03   -.82848    
  22  Prefactor     .98171        .14054        .20381E-03   -.93342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28144e-10
Minuit parameter uncertainties:
  1  7.35572
  2  2.9945e-06
  3  4.05768e-06
  4  6.28125e-05
  5  0.404627
  6  1.79545e-07
  7  13.966
  8  7.77217e-05
  9  8.40049e-06
  10  2.37892e-06
  11  9.82683e-06
  12  1.62543e-06
  13  2.88568e-05
  14  0.745506
  15  0.000258647
  16  8.95179e-07
  17  7.36416e-07
  18  1.79761e-05
  19  2.07524e-06
  20  5.88706
  21  0.215294
  22  0.140593
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  9.827e-06  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  9.817e-01  1.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.324e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 8.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/694919/likelihoodResults_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.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) = 7514.60289173
delta logL = -0.000467038342322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7514.60242479
delta logL = -9.69957909547e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7722       1.0000          .0000       10.000    
     3 'Normalizat'    1.3241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+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=   7514.602     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      260 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13939        .80967E-01** at limit **
   2  Index         3.3152        6.5768        .50000       -.48703E-07
   3  Normalizat    1.3242        .11085E-02    .27544E-03   -.77515E-03
   4  Prefactor     .98170        .72308E-03    .20381E-03   -.10749E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.31521
  Normalizat = 1.32417
  Prefactor  = 0.981704
 **********
 **   18 **HESSE 
 **********

 FCN=   7514.602     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    201.85        .27967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3152        7.5741        .50000       -.34368    
   3  Normalizat    1.3242        .20723E-01    .55088E-04   -.82848    
   4  Prefactor     .98170        .13518E-01    .40761E-04   -.93342    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.51137e-11
Minuit parameter uncertainties:
  1  0.000159322
  2  1170.34
  3  0.0207235
  4  0.0135182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694919': 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) = 7514.60242401
delta logL = 6.7966630013e-07

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.593e-04  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  3.315e+00  1.170e+03  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  9.817e-01  1.352e-02  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.324e+00  2.072e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.704 24.210

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/694919/cmap_HighResolution_669081601_669340801_4FGL_J0126.8+2412_daily_bin1658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.53e-08', time_completed='2022-03-19 00:21:43.035827', job_id='694919', GAL2='0.98', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1647674503.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1658' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 19 00:21:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 694884: <4FGL_J0126.8+2412_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1658> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:40 2022
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:07:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:07:13 2022
Terminated at Sat Mar 19 00:20:54 2022
Results reported at Sat Mar 19 00:20:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1658 21.7036 24.21 669081601 669340801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0126.8+2412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   700.38 sec.
    Max Memory :                                 618 MB
    Average Memory :                             275.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            914 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 694919: <4FGL_J0126.8+2412_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1658> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:42 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:07:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:07:44 2022
Terminated at Sat Mar 19 00:21:43 2022
Results reported at Sat Mar 19 00:21:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1658 21.7036 24.21 669081601 669340801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0126.8+2412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   697.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            961 sec.

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

