/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 83 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 = 7434
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0126.8+2412_daily_bin189
RA = 21.7036, Dec = 24.21
tmin = 288316801, tmax = 288576001
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='572504', job_status='RUN', time_executed='2021-08-14 00:39:36.214437', time_epoch_executed='1628926776.21' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572504

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572504/ft1_4FGL_J0126.8+2412_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572504/ft2_4FGL_J0126.8+2412_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572504/ft1_4FGL_J0126.8+2412_daily_bin189.fits outfile=/scratch/kocevski/572504/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin189.fits ra=21.7036 dec=24.21 rad=12.0 tmin=288316801.0 tmax=288576001.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 3.69
user 3.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572504/ft1_filtered_4FGL_J0126.8+2412_daily_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/572504/ft2_4FGL_J0126.8+2412_daily_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/572504/ltcube_288316801_288576001_4FGL_J0126.8+2412_daily_bin189.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/572504/ft2_4FGL_J0126.8+2412_daily_bin189.fits
.....................!
real 14.62
user 14.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572504/ft1_filtered_4FGL_J0126.8+2412_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/572504/ft2_4FGL_J0126.8+2412_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/572504/ltcube_288316801_288576001_4FGL_J0126.8+2412_daily_bin189.fits outfile=/scratch/kocevski/572504/expmap_288316801_288576001_4FGL_J0126.8+2412_daily_bin189.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/572504/ltcube_288316801_288576001_4FGL_J0126.8+2412_daily_bin189.fits
.....................!
real 192.93
user 187.05
sys 5.51

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/572504/ft1_filtered_4FGL_J0126.8+2412_daily_bin189.fits scfile=/scratch/kocevski/572504/ft2_4FGL_J0126.8+2412_daily_bin189.fits outfile=/scratch/kocevski/572504/cmap_288316801_288576001_4FGL_J0126.8+2412_daily_bin189.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572504/ft1_filtered_4FGL_J0126.8+2412_daily_bin189.fits scfile=/scratch/kocevski/572504/ft2_4FGL_J0126.8+2412_daily_bin189.fits outfile=/scratch/kocevski/572504/cmap_HighResolution_288316801_288576001_4FGL_J0126.8+2412_daily_bin189.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0211       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1033       1.0000         .10000E-03   10000.    
     6 'norm      '    .38440       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12189E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.609       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .23044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2623       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44445E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7584       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7741       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .57514       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1465       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=   6343.408     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2100 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0211        4.2376        .20129E-06    .14150E-04
   2  Prefactor     .10000E-03    3.3953       -.36474E-08** at limit **
   3  Prefactor     28.335        14.257        .27810E-06    .14226E-03
   4  Prefactor     .10000E-03    16.247       -.11731E-06** at limit **
   5  norm          1.1033        .58054        .39385E-07    .56137E-03
   6  norm          .38530        .79518       -.38056E-06   -.24607E-02
   7  Prefactor     .10000E-03    4.7574       -.49374E-08** at limit **
   8  Prefactor     .10000E-03    19.845       -.40652E-06** at limit **
   9  Prefactor     .10000E-03    2.0884       -.10143E-06** at limit **
  10  Prefactor     .10003E-03    7.8235       -.10473E-04** at limit **
  11  Prefactor     15.604        12.967        .66020E-06    .20758E-03
  12  Prefactor     7.0908        23.530       -.77749E-06    .35740E-03
  13  Prefactor     .10000E-03    28.451        .16021E-06** at limit **
  14  norm          .23051        .45567        .58752E-07    .13309E-03
  15  Prefactor     11.503        11.973       -.19028E-06   -.30318E-04
  16  Prefactor     6.2714        15.019        .28602E-06    .52390E-05
  17  norm          .10000E-03    2.0530        .68333E-07** at limit **
  18  Prefactor     .10050E-03    668.11       -.26498E-05** at limit **
  19  Prefactor     3.7565        6.1196        .10679E-06    .73800E-04
  20  Prefactor     1.7797        4.7360        .95845E-05    .35343E-03
  21  Normalizat    .57522        .19616        .11216E-05    .22199E-03
  22  Prefactor     1.1465        .12638       -.18586E-05    .43341E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02107
  Prefactor  = 0.0001
  Prefactor  = 28.3347
  Prefactor  = 0.0001
  norm       = 1.10326
  norm       = 0.385304
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 15.6038
  Prefactor  = 7.09084
  Prefactor  = 0.0001
  norm       = 0.230512
  Prefactor  = 11.5028
  Prefactor  = 6.27143
  norm       = 0.0001
  Prefactor  = 0.000100502
  Prefactor  = 3.75653
  Prefactor  = 1.77968
  Normalizat = 0.57522
  Prefactor  = 1.14645
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.408     FROM HESSE     STATUS=OK           350 CALLS     2450 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0211        4.2042        .23163E-03   -1.5424    
   2  Prefactor     .10000E-03    3.4099        .14331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.335        14.216        .75255E-04   -1.4643    
   4  Prefactor     .10000E-03    16.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1033        .57594        .41989E-04   -1.5498    
   6  norm          .38530        .64491        .98146E-03   -1.5584    
   7  Prefactor     .10000E-03    4.7742        .16966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0986        .11235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    18.751        .32220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.604        12.953        .10137E-03   -1.4918    
  12  Prefactor     7.0908        23.736        .15050E-03   -1.5175    
  13  Prefactor     .10000E-03    28.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23051        .37642        .72247E-03   -1.5612    
  15  Prefactor     11.503        11.945        .11818E-03   -1.5030    
  16  Prefactor     6.2714        14.996        .16041E-03   -1.5207    
  17  norm          .10000E-03    2.0847        .11133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10050E-03    680.49        .19360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7565        6.0974        .20826E-03   -1.5320    
  20  Prefactor     1.7797        5.1078        .14695E-02   -1.5441    
  21  Normalizat    .57522        .21728        .34297E-03   -1.0905    
  22  Prefactor     1.1465        .14305        .16837E-03   -.87995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59564e-09
Minuit parameter uncertainties:
  1  4.2048
  2  2.577e-06
  3  14.2175
  4  4.32706e-05
  5  0.575945
  6  0.644924
  7  1.37857e-06
  8  0.000559418
  9  7.99943e-06
  10  0.00143273
  11  12.9553
  12  23.7677
  13  8.08505e-05
  14  0.376427
  15  11.947
  16  15.0053
  17  8.638e-06
  18  0.0373842
  19  6.09844
  20  5.109
  21  0.217599
  22  0.143099
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.560e+01  1.296e+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.146e+00  1.431e-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:  5.752e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.47e-08 +/- 5.37e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.24e-05

TS (Fixed Index): 1.94
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/572504/likelihoodResults_288316801_288576001_4FGL_J0126.8+2412_daily_bin189.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) = 6342.61979212
delta logL = 0.788335012077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6342.61358515
delta logL = 0.794541984789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9131       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8997       1.0000          .0000       10.000    
     3 'Normalizat'    .51942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1721       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=   6342.614     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      277 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9118        13.385        .11926E-03   -.27016E-03
   2  Index         3.8999        1.4847        .61908E-02   -.72871E-04
   3  Normalizat    .51940        .21778        .35969E-03   -.10702E-03
   4  Prefactor     1.1722        .14433        .16665E-03   -.15884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.91179
  Index      = 3.89988
  Normalizat = 0.519397
  Prefactor  = 1.17216
 **********
 **   18 **HESSE 
 **********

 FCN=   6342.614     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9118        9.7052        .47704E-05   -1.5182    
   2  Index         3.8999        1.0833        .24763E-03   -.22184    
   3  Normalizat    .51940        .21776        .14387E-04   -1.1152    
   4  Prefactor     1.1722        .14400        .33330E-04   -.87192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52301e-10
Minuit parameter uncertainties:
  1  9.7074
  2  1.09238
  3  0.218121
  4  0.144048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572504': 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) = 6342.6135851
delta logL = 0.794542033967

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  6.912e+00  9.707e+00  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  3.900e+00  1.092e+00  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.172e+00  1.440e-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:  5.194e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.73
Ra Dec: 21.704 24.210
Photon Index (Free Index): 3.90 +/- 1.09
Photon Flux (Free Index): 1.03e-07 +/- 6.38e-08
Energy Flux (Free Index): 1.56e-05 +/- 9.92e-06

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/572504/cmap_HighResolution_288316801_288576001_4FGL_J0126.8+2412_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.47e-08', energy_flux2='1.56e-05', photon_flux_error='5.37e-08', dlogl='7.95e-01', energy_flux='1.49e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-08-14 00:50:23.241494', photon_index_error2='1.09', photon_index2='3.90', ts='1.94', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='9.92e-06', EG='0.58', time_epoch_completed='1628927423.24', return_code='0', job_id='572504', GAL2='1.17', EG2='0.52', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='6.38e-08', ts2='3.73', photon_index='2.76' WHERE bin_id='189' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:50:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 572504: <4FGL_J0126.8+2412_daily_bin189> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin189> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 00:36:02 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:38:06 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:38:06 2021
Terminated at Sat Aug 14 00:50:23 2021
Results reported at Sat Aug 14 00:50:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin189 21.7036 24.21 288316801 288576001 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 :                                   642.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            861 sec.

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

