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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1547
RA = 21.7036, Dec = 24.21
tmin = 640310401, tmax = 640569601
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='579010', job_status='RUN', time_executed='2021-08-14 01:00:19.231441', time_epoch_executed='1628928019.23' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579010

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579010/ft1_4FGL_J0126.8+2412_daily_bin1547.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579010/ft2_4FGL_J0126.8+2412_daily_bin1547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579010/ft1_4FGL_J0126.8+2412_daily_bin1547.fits outfile=/scratch/kocevski/579010/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1547.fits ra=21.7036 dec=24.21 rad=12.0 tmin=640310401.0 tmax=640569601.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 10.05
user 4.77
sys 5.00

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579010/ft2_4FGL_J0126.8+2412_daily_bin1547.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/579010/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1547.fits evtable="EVENTS" outfile="/scratch/kocevski/579010/ft1_filtered_4FGL_J0126.8+2412_daily_bin1547.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.64
user 0.33
sys 4.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579010/ft1_filtered_4FGL_J0126.8+2412_daily_bin1547.fits" evtable="EVENTS" scfile=/scratch/kocevski/579010/ft2_4FGL_J0126.8+2412_daily_bin1547.fits sctable="SC_DATA" outfile=/scratch/kocevski/579010/ltcube_640310401_640569601_4FGL_J0126.8+2412_daily_bin1547.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/579010/ft2_4FGL_J0126.8+2412_daily_bin1547.fits
.....................!
real 18.13
user 12.04
sys 5.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579010/ft1_filtered_4FGL_J0126.8+2412_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/579010/ft2_4FGL_J0126.8+2412_daily_bin1547.fits sctable="SC_DATA" expcube=/scratch/kocevski/579010/ltcube_640310401_640569601_4FGL_J0126.8+2412_daily_bin1547.fits outfile=/scratch/kocevski/579010/expmap_640310401_640569601_4FGL_J0126.8+2412_daily_bin1547.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/579010/ltcube_640310401_640569601_4FGL_J0126.8+2412_daily_bin1547.fits
.....................!
real 199.39
user 186.14
sys 11.60

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/579010/ft1_filtered_4FGL_J0126.8+2412_daily_bin1547.fits scfile=/scratch/kocevski/579010/ft2_4FGL_J0126.8+2412_daily_bin1547.fits outfile=/scratch/kocevski/579010/cmap_640310401_640569601_4FGL_J0126.8+2412_daily_bin1547.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.23
user 0.37
sys 4.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579010/ft1_filtered_4FGL_J0126.8+2412_daily_bin1547.fits scfile=/scratch/kocevski/579010/ft2_4FGL_J0126.8+2412_daily_bin1547.fits outfile=/scratch/kocevski/579010/cmap_HighResolution_640310401_640569601_4FGL_J0126.8+2412_daily_bin1547.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.30
user 0.39
sys 4.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5128       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    84.691       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7452       1.0000         .10000E-03   10000.    
     6 'norm      '    .38943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.078       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8616       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.508       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11777E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.616       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9789       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    94.697       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64681       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0594       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88526       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1302       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=   6909.327     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2513 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5515       -.75358E-06** at limit **
   2  Prefactor     1.5134        31.649       -.79149E-06    .14113E-05
   3  Prefactor     .10000E-03    5.2539       -.45416E-07** at limit **
   4  Prefactor     84.695        71.583        .11160E-05    .12960E-04
   5  norm          5.7452        1.3683       -.23646E-07    .86034E-04
   6  norm          .38958        .90318       -.37298E-06   -.56137E-03
   7  Prefactor     29.114        21.309        .37786E-07   -.26832E-05
   8  Prefactor     31.779        47.051        .28288E-05    .14244E-04
   9  Prefactor     4.8557        8.4840       -.15881E-05   -.52243E-04
  10  Prefactor     5.5308        6.4484        .98930E-07    .81116E-04
  11  Prefactor     26.535        15.995        .22821E-06    .24194E-04
  12  Prefactor     .10000E-03    17.080        .93684E-07** at limit **
  13  Prefactor     24.311        67.599        .15012E-06    .25082E-06
  14  norm          1.9792        .76069        .31876E-07   -.27884E-04
  15  Prefactor     10.242        10.525        .13267E-06   -.72601E-05
  16  Prefactor     .10000E-03    7.7004        .32485E-07** at limit **
  17  norm          .10000E-03    .85905        .58897E-07** at limit **
  18  Prefactor     94.530        116.31        .24900E-06    .52406E-05
  19  Prefactor     .65048        9.2961        .15411E-05   -.13514E-04
  20  Prefactor     2.0588        5.1193        .11161E-05    .31740E-04
  21  Normalizat    .88490        .23329        .25314E-05   -.30486E-04
  22  Prefactor     1.1304        .14819       -.19328E-05    .15380E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.51339
  Prefactor  = 0.0001
  Prefactor  = 84.6954
  norm       = 5.74524
  norm       = 0.38958
  Prefactor  = 29.1143
  Prefactor  = 31.7788
  Prefactor  = 4.85567
  Prefactor  = 5.53082
  Prefactor  = 26.5353
  Prefactor  = 0.0001
  Prefactor  = 24.3115
  norm       = 1.97915
  Prefactor  = 10.2421
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 94.5297
  Prefactor  = 0.650483
  Prefactor  = 2.0588
  Normalizat = 0.884903
  Prefactor  = 1.13041
 **********
 **   18 **HESSE 
 **********

 FCN=   6909.327     FROM HESSE     STATUS=OK           352 CALLS     2865 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.5550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5134        31.667        .34767E-03   -1.5462    
   3  Prefactor     .10000E-03    5.2635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     84.695        72.045        .43651E-04   -1.3865    
   5  norm          5.7452        1.3765        .41326E-04   -1.5229    
   6  norm          .38958        .83707        .11673E-02   -1.5583    
   7  Prefactor     29.114        21.309        .74297E-04   -1.4628    
   8  Prefactor     31.779        47.109        .71044E-04   -1.4580    
   9  Prefactor     4.8557        8.5184        .18244E-03   -1.5267    
  10  Prefactor     5.5308        6.4102        .17094E-03   -1.5238    
  11  Prefactor     26.535        15.999        .77809E-04   -1.4677    
  12  Prefactor     .10000E-03    17.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.311        67.544        .80738E-04   -1.4721    
  14  norm          1.9792        .76025        .42927E-04   -1.5427    
  15  Prefactor     10.242        10.513        .12513E-03   -1.5068    
  16  Prefactor     .10000E-03    7.7066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .86059        .75238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     94.530        116.21        .20651E-03   -1.3760    
  19  Prefactor     .65048        9.2913        .23712E-02   -1.5547    
  20  Prefactor     2.0588        5.0893        .28521E-03   -1.5421    
  21  Normalizat    .88490        .24876        .35411E-03   -.96993    
  22  Prefactor     1.1304        .15619        .20554E-03   -.88500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00567e-08
Minuit parameter uncertainties:
  1  2.59959e-06
  2  13.8534
  3  2.63345e-06
  4  72.1194
  5  1.37651
  6  0.837099
  7  21.3142
  8  47.1638
  9  8.52048
  10  6.41103
  11  16.0011
  12  3.72156e-06
  13  67.7573
  14  0.760249
  15  10.5153
  16  1.28636e-06
  17  1.56167e-07
  18  116.491
  19  4.91738
  20  5.09032
  21  0.249085
  22  0.156254
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.654e+01  1.600e+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.130e+00  1.563e-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:  8.849e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.26
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 6.63e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.53e-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) = 6909.20711479
delta logL = 0.120167803831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6909.20401321
delta logL = 0.123269376222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.330       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1682       1.0000          .0000       10.000    
     3 'Normalizat'    .85922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1433       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=   6909.204     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      286 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.333        21.738        .88831E-04    .34824E-03
   2  Index         3.1679        1.0212        .71096E-02    .10205E-03
   3  Normalizat    .85927        .24547        .35858E-03    .44285E-03
   4  Prefactor     1.1432        .15748        .20454E-03    .10180E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3334
  Index      = 3.16786
  Normalizat = 0.859265
  Prefactor  = 1.14324
 **********
 **   18 **HESSE 
 **********

 FCN=   6909.204     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.333        19.341        .35532E-05   -1.4806    
   2  Index         3.1679        .90908        .28439E-03   -.37517    
   3  Normalizat    .85927        .24471        .14343E-04   -.97907    
   4  Prefactor     1.1432        .15695        .40908E-04   -.88096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37523e-10
Minuit parameter uncertainties:
  1  19.347
  2  0.914963
  3  0.245027
  4  0.157017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579010': 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) = 6909.20401253
delta logL = 0.123270064555

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.033e+01  1.935e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  3.168e+00  9.150e-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.143e+00  1.570e-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:  8.593e-01  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.61
Ra Dec: 21.704 24.210
Photon Index (Free Index): 3.17 +/- 0.91
Photon Flux (Free Index): 1.29e-07 +/- 7.86e-08
Energy Flux (Free Index): 2.39e-05 +/- 1.38e-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/579010/cmap_HighResolution_640310401_640569601_4FGL_J0126.8+2412_daily_bin1547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='2.39e-05', photon_flux_error='6.63e-08', dlogl='1.23e-01', energy_flux='2.53e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-08-14 01:12:20.403675', photon_index_error2='0.91', photon_index2='3.17', ts='4.26', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.88', time_epoch_completed='1628928740.4', return_code='0', job_id='579010', GAL2='1.14', EG2='0.86', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='7.86e-08', ts2='4.61', photon_index='2.76' WHERE bin_id='1547' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:12:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 579010: <4FGL_J0126.8+2412_daily_bin1547> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1547> 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) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:58:45 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:45 2021
Terminated at Sat Aug 14 01:12:21 2021
Results reported at Sat Aug 14 01:12:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1547 21.7036 24.21 640310401 640569601 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 :                                   781.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            997 sec.

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

