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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin536
RA = 21.7036, Dec = 24.21
tmin = 378259201, tmax = 378518401
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='574093', job_status='RUN', time_executed='2021-08-14 00:43:54.719283', time_epoch_executed='1628927034.72' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574093/ft1_4FGL_J0126.8+2412_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574093/ft2_4FGL_J0126.8+2412_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574093/ft1_4FGL_J0126.8+2412_daily_bin536.fits outfile=/scratch/kocevski/574093/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin536.fits ra=21.7036 dec=24.21 rad=12.0 tmin=378259201.0 tmax=378518401.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 7.09
user 4.19
sys 2.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574093/ft2_4FGL_J0126.8+2412_daily_bin536.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/574093/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin536.fits evtable="EVENTS" outfile="/scratch/kocevski/574093/ft1_filtered_4FGL_J0126.8+2412_daily_bin536.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 3.15
user 0.32
sys 2.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574093/ft1_filtered_4FGL_J0126.8+2412_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/574093/ft2_4FGL_J0126.8+2412_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/574093/ltcube_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.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/574093/ft2_4FGL_J0126.8+2412_daily_bin536.fits
.....................!
real 16.00
user 12.70
sys 3.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574093/ft1_filtered_4FGL_J0126.8+2412_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/574093/ft2_4FGL_J0126.8+2412_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/574093/ltcube_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.fits outfile=/scratch/kocevski/574093/expmap_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.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/574093/ltcube_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.fits
.....................!
real 202.55
user 185.59
sys 8.38

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/574093/ft1_filtered_4FGL_J0126.8+2412_daily_bin536.fits scfile=/scratch/kocevski/574093/ft2_4FGL_J0126.8+2412_daily_bin536.fits outfile=/scratch/kocevski/574093/cmap_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.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 3.12
user 0.36
sys 2.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574093/ft1_filtered_4FGL_J0126.8+2412_daily_bin536.fits scfile=/scratch/kocevski/574093/ft2_4FGL_J0126.8+2412_daily_bin536.fits outfile=/scratch/kocevski/574093/cmap_HighResolution_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.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 3.11
user 0.39
sys 2.69

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574093/ft1_filtered_4FGL_J0126.8+2412_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/574093/ft2_4FGL_J0126.8+2412_daily_bin536.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574093/Model_4FGL_J0126.8+2412_daily_bin536.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/574093/ft1_filtered_4FGL_J0126.8+2412_daily_bin536.fits.....................!
real 80.90
user 76.05
sys 4.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574093/ft1_filtered_4FGL_J0126.8+2412_daily_bin536.fits', '/scratch/kocevski/574093/ft2_4FGL_J0126.8+2412_daily_bin536.fits', expMap='/scratch/kocevski/574093/expmap_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.fits', expCube='/scratch/kocevski/574093/ltcube_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574093/Model_4FGL_J0126.8+2412_daily_bin536.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/574093/ft1_filtered_4FGL_J0126.8+2412_daily_bin536.fits
Spacecraft file(s): /scratch/kocevski/574093/ft2_4FGL_J0126.8+2412_daily_bin536.fits
Exposure map: /scratch/kocevski/574093/expmap_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.fits
Exposure cube: /scratch/kocevski/574093/ltcube_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574093/Model_4FGL_J0126.8+2412_daily_bin536.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) = 7391.0093665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5076       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16773E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .37203       1.0000         .10000E-03   10000.    
     6 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9680       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.205       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13256E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6986       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1447       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9466       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0054       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0650       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=   7390.153     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2095 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5078        6.3841        .22835E-05   -.16593E-03
   2  Prefactor     .10000E-03    22.883        .21098E-04** at limit **
   3  Prefactor     .10085E-03    11.778       -.23663E-05** at limit **
   4  Prefactor     .10000E-03    30.512       -.26608E-04** at limit **
   5  norm          .37159        .56110       -.14246E-06   -.15434E-02
   6  norm          .10000E-03    1.0290        .22173E-06** at limit **
   7  Prefactor     3.9656        11.780       -.76629E-06   -.11603E-03
   8  Prefactor     .10000E-03    12.516        .61636E-05** at limit **
   9  Prefactor     .10000E-03    1.8378        .85877E-07** at limit **
  10  Prefactor     .10000E-03    15.048       -.84674E-05** at limit **
  11  Prefactor     55.206        18.198        .13906E-06    .41286E-03
  12  Prefactor     .10000E-03    10.512       -.36134E-05** at limit **
  13  Prefactor     .10000E-03    199.52       -.99865E-04** at limit **
  14  norm          2.6984        .91459        .42852E-07    .19216E-02
  15  Prefactor     9.1421        11.494       -.26416E-06    .27352E-05
  16  Prefactor     .10000E-03    10.034        .18207E-05** at limit **
  17  norm          .10000E-03    2.2826       -.16536E-07** at limit **
  18  Prefactor     .10000E-03    63.984        .32509E-04** at limit **
  19  Prefactor     .10000E-03    4.9484        .79710E-07** at limit **
  20  Prefactor     7.9459        7.5200       -.15970E-06   -.12596E-03
  21  Normalizat    1.0056        .20431        .47148E-06    .28403E-03
  22  Prefactor     1.0651        .12535       -.64469E-07    .46048E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.50785
  Prefactor  = 0.000100002
  Prefactor  = 0.000100852
  Prefactor  = 0.0001
  norm       = 0.371592
  norm       = 0.0001
  Prefactor  = 3.96559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.2063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.69843
  Prefactor  = 9.14208
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.94595
  Normalizat = 1.00556
  Prefactor  = 1.0651
 **********
 **   18 **HESSE 
 **********

 FCN=   7390.153     FROM HESSE     STATUS=OK           342 CALLS     2437 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5078        6.3747        .14637E-03   -1.5160    
   2  Prefactor     .10000E-03    23.220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10085E-03    97.720        .55405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .37159        .49270        .75228E-03   -1.5586    
   6  norm          .10000E-03    2.1655        .16470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9656        11.766        .20249E-03   -1.5310    
   8  Prefactor     .10000E-03    12.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8420        .11378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     55.206        18.131        .53987E-04   -1.4221    
  12  Prefactor     .10000E-03    10.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    200.35        .20565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6984        .91278        .45756E-04   -1.5379    
  15  Prefactor     9.1421        11.471        .13253E-03   -1.5103    
  16  Prefactor     .10000E-03    10.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3439        .25361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9459        7.5195        .14224E-03   -1.5144    
  21  Normalizat    1.0056        .23128        .32639E-03   -.92844    
  22  Prefactor     1.0651        .14463        .19933E-03   -.90590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73978e-09
Minuit parameter uncertainties:
  1  6.37524
  2  0.000374547
  3  0.0182796
  4  5.63285e-05
  5  0.49271
  6  2.81204e-05
  7  11.7726
  8  3.97519e-06
  9  2.20417e-06
  10  0.0001396
  11  18.1326
  12  2.06938e-06
  13  0.000368523
  14  0.912786
  15  11.474
  16  1.2167e-06
  17  4.36516e-07
  18  2.5391e-07
  19  4.93882e-07
  20  7.52038
  21  0.231508
  22  0.144685
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  5.521e+01  1.813e+01  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:  1.065e+00  1.447e-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.006e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.36
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 2.29e-07 +/- 7.51e-08
Energy Flux (Fixed Index): 5.27e-05 +/- 1.73e-05

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) = 7390.09995168
delta logL = 0.0527142951933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7390.09216457
delta logL = 0.0605014085768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.322       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6359       1.0000          .0000       10.000    
     3 'Normalizat'    1.0224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0574       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=   7390.092     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      292 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.320        20.845        .52533E-04    .15213E-02
   2  Index         2.6358        .35247        .55195E-02    .52380E-03
   3  Normalizat    1.0224        .23434        .32411E-03   -.14609E-03
   4  Prefactor     1.0574        .14464        .19995E-03   -.14629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.3203
  Index      = 2.63583
  Normalizat = 1.02236
  Prefactor  = 1.05738
 **********
 **   18 **HESSE 
 **********

 FCN=   7390.092     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.320        20.643        .10507E-04   -1.4179    
   2  Index         2.6358        .34882        .22078E-03   -.49250    
   3  Normalizat    1.0224        .23446        .12964E-04   -.92285    
   4  Prefactor     1.0574        .14469        .39990E-04   -.90841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38761e-09
Minuit parameter uncertainties:
  1  20.6456
  2  0.349184
  3  0.234695
  4  0.144748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574093': 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) = 7390.09216423
delta logL = 0.0605017503385

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  5.832e+01  2.065e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.636e+00  3.492e-01  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:  1.057e+00  1.447e-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.022e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.46
Ra Dec: 21.704 24.210
Photon Index (Free Index): 2.64 +/- 0.35
Photon Flux (Free Index): 2.15e-07 +/- 8.29e-08
Energy Flux (Free Index): 5.45e-05 +/- 1.89e-05

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/574093/cmap_HighResolution_378259201_378518401_4FGL_J0126.8+2412_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.29e-07', energy_flux2='5.45e-05', photon_flux_error='7.51e-08', dlogl='6.05e-02', energy_flux='5.27e-05', photon_flux2='2.15e-07', job_status='DONE', time_completed='2021-08-14 00:55:00.412908', photon_index_error2='0.35', photon_index2='2.64', ts='17.36', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='1.01', time_epoch_completed='1628927700.41', return_code='0', job_id='574093', GAL2='1.06', EG2='1.02', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='8.29e-08', ts2='17.46', photon_index='2.76' WHERE bin_id='536' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:55:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 574093: <4FGL_J0126.8+2412_daily_bin536> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin536> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:44 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:42:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 00:42:50 2021
Terminated at Sat Aug 14 00:55:01 2021
Results reported at Sat Aug 14 00:55:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin536 21.7036 24.21 378259201 378518401 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 :                                   693.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            857 sec.

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

