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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1616
RA = 21.7036, Dec = 24.21
tmin = 658195201, tmax = 658454401
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='139539', job_status='RUN', time_executed='2021-12-07 12:10:42.776443', time_epoch_executed='1638907842.78' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139539/ft1_4FGL_J0126.8+2412_daily_bin1616.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139539/ft2_4FGL_J0126.8+2412_daily_bin1616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139539/ft1_4FGL_J0126.8+2412_daily_bin1616.fits outfile=/scratch/kocevski/139539/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1616.fits ra=21.7036 dec=24.21 rad=12.0 tmin=658195201.0 tmax=658454401.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 4.67
user 4.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139539/ft1_filtered_4FGL_J0126.8+2412_daily_bin1616.fits" evtable="EVENTS" scfile=/scratch/kocevski/139539/ft2_4FGL_J0126.8+2412_daily_bin1616.fits sctable="SC_DATA" outfile=/scratch/kocevski/139539/ltcube_658195201_658454401_4FGL_J0126.8+2412_daily_bin1616.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/139539/ft2_4FGL_J0126.8+2412_daily_bin1616.fits
.....................!
real 13.86
user 13.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139539/ft1_filtered_4FGL_J0126.8+2412_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/139539/ft2_4FGL_J0126.8+2412_daily_bin1616.fits sctable="SC_DATA" expcube=/scratch/kocevski/139539/ltcube_658195201_658454401_4FGL_J0126.8+2412_daily_bin1616.fits outfile=/scratch/kocevski/139539/expmap_658195201_658454401_4FGL_J0126.8+2412_daily_bin1616.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/139539/ltcube_658195201_658454401_4FGL_J0126.8+2412_daily_bin1616.fits
.....................!
real 192.12
user 187.60
sys 4.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/139539/ft1_filtered_4FGL_J0126.8+2412_daily_bin1616.fits scfile=/scratch/kocevski/139539/ft2_4FGL_J0126.8+2412_daily_bin1616.fits outfile=/scratch/kocevski/139539/cmap_658195201_658454401_4FGL_J0126.8+2412_daily_bin1616.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.56
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139539/ft1_filtered_4FGL_J0126.8+2412_daily_bin1616.fits scfile=/scratch/kocevski/139539/ft2_4FGL_J0126.8+2412_daily_bin1616.fits outfile=/scratch/kocevski/139539/cmap_HighResolution_658195201_658454401_4FGL_J0126.8+2412_daily_bin1616.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3943       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .66865       1.0000         .10000E-03   10000.    
     6 'norm      '    .89159       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11541E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3938       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11330E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.898       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .74361       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89241       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1691       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=   5113.703     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2323 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3942        7.7272        .50648E-05   -.13936E-03
   2  Prefactor     .10000E-03    5.3422       -.29175E-07** at limit **
   3  Prefactor     5.7301        12.095        .73340E-07   -.12154E-04
   4  Prefactor     .10000E-03    34.099        .10033E-06** at limit **
   5  norm          .66911        .66674        .67329E-07    .10378E-03
   6  norm          .89160        1.5873        .36477E-06    .48380E-04
   7  Prefactor     .10000E-03    8.1327        .10560E-06** at limit **
   8  Prefactor     .10000E-03    58.504       -.37943E-07** at limit **
   9  Prefactor     .10000E-03    3.2591        .95970E-07** at limit **
  10  Prefactor     .10000E-03    7.5511       -.11810E-06** at limit **
  11  Prefactor     7.3693        17.143        .21565E-06   -.19958E-05
  12  Prefactor     .10000E-03    49.769        .19231E-06** at limit **
  13  Prefactor     33.751        120.07       -.34572E-05   -.75030E-04
  14  norm          1.6293        .90123        .70060E-07    .97838E-04
  15  Prefactor     .10000E-03    6.4054       -.58618E-07** at limit **
  16  Prefactor     .10000E-03    7.1781       -.83816E-08** at limit **
  17  norm          .74907        4.1884       -.94713E-06    .31313E-03
  18  Prefactor     .10000E-03    60.020       -.30637E-06** at limit **
  19  Prefactor     .10000E-03    5.3897       -.15234E-06** at limit **
  20  Prefactor     .10000E-03    4.6780        .10891E-06** at limit **
  21  Normalizat    .89232        .23392       -.13734E-05    .34432E-04
  22  Prefactor     1.1692        .14908        .22136E-06    .33189E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.39419
  Prefactor  = 0.0001
  Prefactor  = 5.73008
  Prefactor  = 0.0001
  norm       = 0.66911
  norm       = 0.891597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36928
  Prefactor  = 0.000100001
  Prefactor  = 33.7506
  norm       = 1.62932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.749067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.892321
  Prefactor  = 1.16922
 **********
 **   18 **HESSE 
 **********

 FCN=   5113.703     FROM HESSE     STATUS=OK           342 CALLS     2665 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3942        7.7628        .96062E-03   -1.5289    
   2  Prefactor     .10000E-03    5.3475        .16142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7301        12.050        .16780E-03   -1.5229    
   4  Prefactor     .10000E-03    34.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .66911        .62926        .55768E-03   -1.5544    
   6  norm          .89160        1.5465        .11298E-03   -1.5519    
   7  Prefactor     .10000E-03    8.1570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    58.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2708        .12602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3693        17.082        .14750E-03   -1.5165    
  12  Prefactor     .10000E-03    49.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.751        120.50        .68826E-04   -1.4545    
  14  norm          1.6293        .89987        .46534E-04   -1.5453    
  15  Prefactor     .10000E-03    6.4266        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .74907        7.5646        .27438E-02   -1.5535    
  18  Prefactor     .10000E-03    60.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4055        .16191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7148        .15104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89232        .26552        .32420E-03   -.96730    
  22  Prefactor     1.1692        .17094        .18644E-03   -.87284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35368e-10
Minuit parameter uncertainties:
  1  7.76459
  2  1.11809e-05
  3  12.0548
  4  5.70139e-05
  5  0.629268
  6  1.54654
  7  2.37962e-06
  8  0.000111235
  9  6.27859e-07
  10  9.53559e-06
  11  17.0929
  12  0.000417743
  13  121.382
  14  0.899876
  15  9.25662e-08
  16  5.57315e-06
  17  4.76129
  18  0.000243715
  19  2.11738e-05
  20  1.71793e-06
  21  0.265909
  22  0.171022
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  7.369e+00  1.709e+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.169e+00  1.710e-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.923e-01  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/139539/likelihoodResults_658195201_658454401_4FGL_J0126.8+2412_daily_bin1616.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) = 5113.64581038
delta logL = 0.0568546403847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5113.63177918
delta logL = 0.0708858399785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9906       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5400       1.0000          .0000       10.000    
     3 'Normalizat'    .86966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1790       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=   5113.632     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      253 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9888        25.093        .18002E-03   -.24030E-03
   2  Index         3.5402        3.2741        .13368E-01   -.43409E-04
   3  Normalizat    .86968        .27262        .32798E-03   -.41578E-03
   4  Prefactor     1.1791        .17370        .18575E-03   -.61820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98878
  Index      = 3.54016
  Normalizat = 0.869681
  Prefactor  = 1.17905
 **********
 **   18 **HESSE 
 **********

 FCN=   5113.632     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9888        14.852        .72006E-05   -1.5261    
   2  Index         3.5402        2.2888        .53473E-03   -.29628    
   3  Normalizat    .86968        .27178        .65596E-04   -.97534    
   4  Prefactor     1.1791        .17228        .37150E-04   -.86978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33951e-10
Minuit parameter uncertainties:
  1  14.8627
  2  2.38666
  3  0.272205
  4  0.172364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139539': 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) = 5113.63177916
delta logL = 0.0708858664984

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  4.989e+00  1.486e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  3.540e+00  2.387e+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.179e+00  1.724e-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.697e-01  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 21.704 24.210

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/139539/cmap_HighResolution_658195201_658454401_4FGL_J0126.8+2412_daily_bin1616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', job_status='DONE', photon_flux_upper_limit='1.85e-07', time_completed='2021-12-07 12:20:24.760206', job_id='139539', GAL2='1.18', fit_tolerance='1e-08', EG2='0.87', EG='0.89', time_epoch_completed='1638908424.76', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='7.09e-02', ts2='0.38', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1616' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:20:24 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 139539: <4FGL_J0126.8+2412_daily_bin1616> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1616> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:05:25 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:06:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:06:54 2021
Terminated at Tue Dec  7 12:20:25 2021
Results reported at Tue Dec  7 12:20:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1616 21.7036 24.21 658195201 658454401 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 :                                   580.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            900 sec.

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

