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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1549
RA = 21.7036, Dec = 24.21
tmin = 640828801, tmax = 641088001
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='579013', job_status='RUN', time_executed='2021-08-14 01:03:39.776369', time_epoch_executed='1628928219.78' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579013

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579013/ft1_4FGL_J0126.8+2412_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579013/ft2_4FGL_J0126.8+2412_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579013/ft1_4FGL_J0126.8+2412_daily_bin1549.fits outfile=/scratch/kocevski/579013/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1549.fits ra=21.7036 dec=24.21 rad=12.0 tmin=640828801.0 tmax=641088001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 8.41
user 2.92
sys 5.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579013/ft2_4FGL_J0126.8+2412_daily_bin1549.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/579013/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1549.fits evtable="EVENTS" outfile="/scratch/kocevski/579013/ft1_filtered_4FGL_J0126.8+2412_daily_bin1549.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 5.80
user 0.33
sys 5.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579013/ft1_filtered_4FGL_J0126.8+2412_daily_bin1549.fits" evtable="EVENTS" scfile=/scratch/kocevski/579013/ft2_4FGL_J0126.8+2412_daily_bin1549.fits sctable="SC_DATA" outfile=/scratch/kocevski/579013/ltcube_640828801_641088001_4FGL_J0126.8+2412_daily_bin1549.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/579013/ft2_4FGL_J0126.8+2412_daily_bin1549.fits
.....................!
real 19.85
user 13.56
sys 6.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579013/ft1_filtered_4FGL_J0126.8+2412_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/579013/ft2_4FGL_J0126.8+2412_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/579013/ltcube_640828801_641088001_4FGL_J0126.8+2412_daily_bin1549.fits outfile=/scratch/kocevski/579013/expmap_640828801_641088001_4FGL_J0126.8+2412_daily_bin1549.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/579013/ltcube_640828801_641088001_4FGL_J0126.8+2412_daily_bin1549.fits
.....................!
real 200.21
user 187.95
sys 11.71

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/579013/ft1_filtered_4FGL_J0126.8+2412_daily_bin1549.fits scfile=/scratch/kocevski/579013/ft2_4FGL_J0126.8+2412_daily_bin1549.fits outfile=/scratch/kocevski/579013/cmap_640828801_641088001_4FGL_J0126.8+2412_daily_bin1549.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 5.67
user 0.39
sys 5.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579013/ft1_filtered_4FGL_J0126.8+2412_daily_bin1549.fits scfile=/scratch/kocevski/579013/ft2_4FGL_J0126.8+2412_daily_bin1549.fits outfile=/scratch/kocevski/579013/cmap_HighResolution_640828801_641088001_4FGL_J0126.8+2412_daily_bin1549.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 5.73
user 0.40
sys 5.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.922       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0571       1.0000         .10000E-03   10000.    
     6 'norm      '    4.0172       1.0000         .10000E-03   10000.    
     7 'Prefactor '    92.185       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.900       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9999.6       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33565E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    203.93       1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10038E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89385       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=   851.0228     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2855 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1694       -.30419E-07** at limit **
   2  Prefactor     61.840        42.777        .44775E-06    .17543E-03
   3  Prefactor     27.948        28.712        .12618E-06    .95836E-04
   4  Prefactor     .10000E-03    60.233        .63937E-07** at limit **
   5  norm          4.0577        2.4872       -.60817E-08    .24897E-03
   6  norm          4.0171        3.3401       -.61261E-07    .28067E-03
   7  Prefactor     92.099        107.82       -.67936E-07    .55769E-04
   8  Prefactor     .10000E-03    46.109        .28575E-07** at limit **
   9  Prefactor     .10000E-03    7.1351       -.15413E-07** at limit **
  10  Prefactor     .10000E-03    7.0025        .19834E-06** at limit **
  11  Prefactor     65.873        68.005       -.22204E-06    .24850E-04
  12  Prefactor     .10000E-03    255.75        .10029E-06** at limit **
  13  Prefactor     .10000E-03    420.12       -.76629E-07** at limit **
  14  norm          .10000E-03    3.5631        .16089E-06** at limit **
  15  Prefactor    10000.0        6396.1        .33549E-04** at limit **
  16  Prefactor     .10000E-03    346.07        .21938E-06** at limit **
  17  norm          207.31        8000.3       -.21561E-04    .62839E-05
  18  Prefactor    10000.0        6786.2       -.43218E-06** at limit **
  19  Prefactor    10000.0        9997.5       -.84796E-05** at limit **
  20  Prefactor    10000.0        7033.3        .17066E-06** at limit **
  21  Normalizat    .10000E-01    .66068       -.22787E-04** at limit **
  22  Prefactor     .89397        .23743        .43520E-05    .71739E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 61.8396
  Prefactor  = 27.9475
  Prefactor  = 0.0001
  norm       = 4.05772
  norm       = 4.01712
  Prefactor  = 92.099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 207.31
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.893973
 **********
 **   18 **HESSE 
 **********

 FCN=   851.0228     FROM HESSE     STATUS=OK           330 CALLS     3185 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1718        .81457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.840        43.317        .51014E-04   -1.4134    
   3  Prefactor     27.948        28.799        .75816E-04   -1.4650    
   4  Prefactor     .10000E-03    60.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0577        2.4897        .34827E-04   -1.5305    
   6  norm          4.0171        3.3423        .46060E-04   -1.5307    
   7  Prefactor     92.099        108.67        .20927E-03   -1.3786    
   8  Prefactor     .10000E-03    46.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1370        .76124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9929        .75361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.873        68.067        .24719E-03   -1.4083    
  12  Prefactor     .10000E-03    255.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    420.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.5564        .53743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        6394.0        .21584E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    346.03        .21342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          207.31        7910.7        .14150E-03   -1.2818    
  18  Prefactor    10000.0        6785.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        9995.0        .18256E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        7033.5        .19973E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    2.1742        .12766E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .89397        .24565        .19553E-03   -.96352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3857e-10
Minuit parameter uncertainties:
  1  7.63318e-07
  2  43.3395
  3  28.8132
  4  9.30125e-05
  5  2.48981
  6  3.34248
  7  108.904
  8  2.68873e-05
  9  6.77386e-07
  10  4.71047e-05
  11  68.1471
  12  0.000116814
  13  0.000656196
  14  2.69819e-05
  15  0.487046
  16  0.00030422
  17  2945.08
  18  0.0543761
  19  0.16275
  20  0.00464499
  21  4.33628e-05
  22  0.245951
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  6.587e+01  6.815e+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:  8.940e-01  2.460e-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.000e-02  4.336e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 2.73e-07 +/- 2.82e-07
Energy Flux (Fixed Index): 6.29e-05 +/- 6.50e-05

TS (Fixed Index): 1.97
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 1.06e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/579013/likelihoodResults_640828801_641088001_4FGL_J0126.8+2412_daily_bin1549.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) = 850.594460043
delta logL = 0.42836927536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 850.475744718
delta logL = 0.547084600492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    105.88       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9270       1.0000          .0000       10.000    
     3 'Normalizat'    .10307E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87640       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=   850.4757     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      261 TOTAL
                     EDM=   .70E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     105.96        90.793        .29827E-06   -.19034E-05
   2  Index         1.9267        .60853        .35959E-05    .33398E-06
   3  Normalizat    .10000E-01    .81534        .16552E-04** at limit **
   4  Prefactor     .87595        .19563       -.33706E-05    .31375E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 105.958
  Index      = 1.92673
  Normalizat = 0.01
  Prefactor  = 0.875946
 **********
 **   18 **HESSE 
 **********

 FCN=   850.4757     FROM HESSE     STATUS=OK            41 CALLS      302 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     105.96        90.833        .19540E-03   -1.3646    
   2  Index         1.9267        .60812        .42347E-02   -.66195    
   3  Normalizat    .10000E-01    2.2552        .16290       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .87595        .30864        .19650E-03   -.96987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14407e-11
Minuit parameter uncertainties:
  1  90.9524
  2  0.610553
  3  2.90294e-05
  4  0.309253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579013': 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) = 850.475732581
delta logL = 0.547096736775

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.060e+02  9.095e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  1.927e+00  6.106e-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:  8.759e-01  3.093e-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.000e-02  2.903e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 21.704 24.210
Photon Index (Free Index): 1.93 +/- 0.61
Photon Flux (Free Index): 2.28e-07 +/- 2.12e-07
Energy Flux (Free Index): 1.90e-04 +/- 2.92e-04

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/579013/cmap_HighResolution_640828801_641088001_4FGL_J0126.8+2412_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.41e-02', comment='SUCCESS', photon_flux='2.73e-07', energy_flux2='1.90e-04', photon_flux_error='2.82e-07', dlogl='5.47e-01', energy_flux='6.29e-05', photon_flux2='2.28e-07', job_status='DONE', time_completed='2021-08-14 01:11:10.923933', photon_index_error2='0.61', photon_index2='1.93', ts='1.97', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.06e-06', energy_flux_error2='2.92e-04', EG='0.01', time_epoch_completed='1628928670.92', return_code='0', job_id='579013', GAL2='0.88', EG2='0.01', return_code2='0', energy_flux_error='6.50e-05', photon_flux_error2='2.12e-07', ts2='3.05', photon_index='2.76' WHERE bin_id='1549' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 579013: <4FGL_J0126.8+2412_daily_bin1549> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1549> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 00:55:44 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:58:46 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:58:46 2021
Terminated at Sat Aug 14 01:11:12 2021
Results reported at Sat Aug 14 01:11:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1549 21.7036 24.21 640828801 641088001 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 :                                   530.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             210.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            928 sec.

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

