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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1302
RA = 21.7036, Dec = 24.21
tmin = 576806401, tmax = 577065601
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='577436', job_status='RUN', time_executed='2021-08-14 01:00:19.258288', time_epoch_executed='1628928019.26' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577436

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577436/ft1_4FGL_J0126.8+2412_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577436/ft2_4FGL_J0126.8+2412_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577436/ft1_4FGL_J0126.8+2412_daily_bin1302.fits outfile=/scratch/kocevski/577436/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1302.fits ra=21.7036 dec=24.21 rad=12.0 tmin=576806401.0 tmax=577065601.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 6.36
user 2.85
sys 3.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577436/ft2_4FGL_J0126.8+2412_daily_bin1302.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/577436/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1302.fits evtable="EVENTS" outfile="/scratch/kocevski/577436/ft1_filtered_4FGL_J0126.8+2412_daily_bin1302.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.73
user 0.34
sys 3.27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577436/ft1_filtered_4FGL_J0126.8+2412_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/577436/ft2_4FGL_J0126.8+2412_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/577436/ltcube_576806401_577065601_4FGL_J0126.8+2412_daily_bin1302.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/577436/ft2_4FGL_J0126.8+2412_daily_bin1302.fits
.....................!
real 16.13
user 12.21
sys 3.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577436/ft1_filtered_4FGL_J0126.8+2412_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/577436/ft2_4FGL_J0126.8+2412_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/577436/ltcube_576806401_577065601_4FGL_J0126.8+2412_daily_bin1302.fits outfile=/scratch/kocevski/577436/expmap_576806401_577065601_4FGL_J0126.8+2412_daily_bin1302.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/577436/ltcube_576806401_577065601_4FGL_J0126.8+2412_daily_bin1302.fits
.....................!
real 195.93
user 186.25
sys 9.17

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/577436/ft1_filtered_4FGL_J0126.8+2412_daily_bin1302.fits scfile=/scratch/kocevski/577436/ft2_4FGL_J0126.8+2412_daily_bin1302.fits outfile=/scratch/kocevski/577436/cmap_576806401_577065601_4FGL_J0126.8+2412_daily_bin1302.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.59
user 0.38
sys 3.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577436/ft1_filtered_4FGL_J0126.8+2412_daily_bin1302.fits scfile=/scratch/kocevski/577436/ft2_4FGL_J0126.8+2412_daily_bin1302.fits outfile=/scratch/kocevski/577436/cmap_HighResolution_576806401_577065601_4FGL_J0126.8+2412_daily_bin1302.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.65
user 0.37
sys 3.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10458E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .26908E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    527.51       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15996E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'norm      '    10000.       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32661       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'norm      '    .12772E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25059E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71974       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=   202.5718     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2807 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    91.582        .14482E-04** at limit **
   2  Prefactor     .10001E-03    412.07        .27214E-03** at limit **
   3  Prefactor     .10000E-03    21.259       -.21638E-06** at limit **
   4  Prefactor     .10000E-03    766.61       -.10629E-03** at limit **
   5  norm          .10141E-03    694.65        .36695E-05** at limit **
   6  norm          .10000E-03    8.1349       -.80487E-06** at limit **
   7  Prefactor     .10000E-03    100.46        .10711E-04** at limit **
   8  Prefactor     528.82        5899.8        .58264E-03   -.11403E-04
   9  Prefactor     .10000E-03    216.63       -.68410E-04** at limit **
  10  Prefactor     .10000E-03    88.335       -.18043E-04** at limit **
  11  Prefactor    10000.0        1511.1        .13184E-03** at limit **
  12  Prefactor    10000.0        8725.8        .19418E-02** at limit **
  13  Prefactor    10000.0        7403.3        .42454E-02** at limit **
  14  norm         10000.0        1062.0        .43191E-03** at limit **
  15  Prefactor     .10000E-03    5045.5       -.11228E-01** at limit **
  16  Prefactor    10000.0        8607.7        .73452E-03** at limit **
  17  norm          .10000E-03    1792.0       -.25160E-03** at limit **
  18  Prefactor     .10000E-03    8659.8       -.17362E-02** at limit **
  19  Prefactor     .10000E-03    9971.9       -.92850E-03** at limit **
  20  Prefactor     .10000E-03    53.412        .87461E-07** at limit **
  21  Normalizat    .10000E-01    .33215       -.36494E-05** at limit **
  22  Prefactor     .71922        .34418       -.26387E-04   -.29595E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000101412
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 528.818
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.719223
 **********
 **   18 **HESSE 
 **********

 FCN=   202.5718     FROM HESSE     STATUS=OK           320 CALLS     3127 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    91.937        .13326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    415.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.260        .64186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    766.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10141E-03    706.28        .42870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.1709        .39662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    100.46        .13972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     528.82        5899.3        .89471E-04   -1.1067    
   9  Prefactor     .10000E-03    216.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    88.334        .13099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        1511.6        .20957E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        8725.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        7403.5        .18513E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        1062.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5046.0        .21082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        8607.1        .20449E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1792.0        .20593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8659.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9971.9        .20016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.412        .10180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .33478        .50417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .71922        .34312        .16932E-03   -1.0278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57293e-09
Minuit parameter uncertainties:
  1  0.000544548
  2  0.00341568
  3  9.74588e-05
  4  0.00320258
  5  0.0639306
  6  0.000231555
  7  3.76453e-08
  8  3291.88
  9  0.00136732
  10  0.00028556
  11  0.00266734
  12  0.0915849
  13  0.00174388
  14  0.000352543
  15  0.0184384
  16  0.01159
  17  2.87776e-05
  18  0.000130434
  19  0.00105441
  20  9.38919e-10
  21  6.40199e-06
  22  0.344138
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e+04  2.667e-03  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:  7.192e-01  3.441e-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  6.402e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.70
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.15e-05 +/- 1.10e-11
Energy Flux (Fixed Index): 9.55e-03 +/- 2.55e-09

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) = 192.335145604
delta logL = 10.2366456465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 192.331202215
delta logL = 10.240589035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Index     '    6.6180       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57918       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=   192.3312     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      175 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        2014.3        .19550E-02** at limit **
   2  Index         6.6186        .41417        .40622E-06    .70616E-04
   3  Normalizat    .10000E-01    .24220        .18123E-06** at limit **
   4  Prefactor     .57883        .28268       -.76435E-09    .61028E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 6.61858
  Normalizat = 0.01
  Prefactor  = 0.578833
 **********
 **   18 **HESSE 
 **********

 FCN=   192.3312     FROM HESSE     STATUS=OK            23 CALLS      198 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        2016.8        .18143E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6186        .41439        .11880E-03    .32965    
   3  Normalizat    .10000E-01    .24331        .21062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .57883        .28075        .16337E-03   -1.0848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64916e-11
Minuit parameter uncertainties:
  1  0.0121319
  2  0.414919
  3  2.50533e-08
  4  0.281435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577436': 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) = 192.331197859
delta logL = 10.2405933906

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e+04  1.213e-02  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  6.619e+00  4.149e-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:  5.788e-01  2.814e-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.505e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.98
Ra Dec: 21.704 24.210
Photon Index (Free Index): 6.62 +/- 0.41
Photon Flux (Free Index): 5.29e-03 +/- 2.98e-03
Energy Flux (Free Index): 6.40e-01 +/- 3.52e-01

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/577436/cmap_HighResolution_576806401_577065601_4FGL_J0126.8+2412_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.15e-05', energy_flux2='6.40e-01', photon_flux_error='1.10e-11', dlogl='1.02e+01', energy_flux='9.55e-03', photon_flux2='5.29e-03', job_status='DONE', time_completed='2021-08-14 01:06:41.711654', photon_index_error2='0.41', photon_index2='6.62', ts='9.70', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='3.52e-01', EG='0.01', time_epoch_completed='1628928401.71', return_code='0', job_id='577436', GAL2='0.58', EG2='0.01', return_code2='0', energy_flux_error='2.55e-09', photon_flux_error2='2.98e-03', ts2='30.98', photon_index='2.76' WHERE bin_id='1302' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:06:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 577436: <4FGL_J0126.8+2412_daily_bin1302> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1302> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 14 00:50:44 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:56:18 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:56:18 2021
Terminated at Sat Aug 14 01:06:42 2021
Results reported at Sat Aug 14 01:06:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1302 21.7036 24.21 576806401 577065601 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 :                                   422.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            958 sec.

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

