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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin381
RA = 21.7036, Dec = 24.21
tmin = 338083201, tmax = 338342401
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='573871', job_status='RUN', time_executed='2021-08-14 00:42:49.987694', time_epoch_executed='1628926969.99' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573871

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573871/ft1_4FGL_J0126.8+2412_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573871/ft2_4FGL_J0126.8+2412_daily_bin381.fits


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

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

Done.
real 8.32
user 6.54
sys 1.74

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573871/ft1_filtered_4FGL_J0126.8+2412_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/573871/ft2_4FGL_J0126.8+2412_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/573871/ltcube_338083201_338342401_4FGL_J0126.8+2412_daily_bin381.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/573871/ft2_4FGL_J0126.8+2412_daily_bin381.fits
.....................!
real 13.46
user 11.37
sys 2.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573871/ft1_filtered_4FGL_J0126.8+2412_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/573871/ft2_4FGL_J0126.8+2412_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/573871/ltcube_338083201_338342401_4FGL_J0126.8+2412_daily_bin381.fits outfile=/scratch/kocevski/573871/expmap_338083201_338342401_4FGL_J0126.8+2412_daily_bin381.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/573871/ltcube_338083201_338342401_4FGL_J0126.8+2412_daily_bin381.fits
.....................!
real 193.41
user 184.95
sys 7.46

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/573871/ft1_filtered_4FGL_J0126.8+2412_daily_bin381.fits scfile=/scratch/kocevski/573871/ft2_4FGL_J0126.8+2412_daily_bin381.fits outfile=/scratch/kocevski/573871/cmap_338083201_338342401_4FGL_J0126.8+2412_daily_bin381.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 2.00
user 0.38
sys 1.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573871/ft1_filtered_4FGL_J0126.8+2412_daily_bin381.fits scfile=/scratch/kocevski/573871/ft2_4FGL_J0126.8+2412_daily_bin381.fits outfile=/scratch/kocevski/573871/cmap_HighResolution_338083201_338342401_4FGL_J0126.8+2412_daily_bin381.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 2.02
user 0.39
sys 1.62

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .34193       1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .82752E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.858       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8243       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    110.34       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.881       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7548       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1904       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99091       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=   6986.906     FROM MIGRAD    STATUS=CONVERGED    857 CALLS     3097 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8878        .16077E-02** at limit **
   2  Prefactor     .10000E-03    6.0412        .18142E-02** at limit **
   3  Prefactor     2.8655        10.812        .24012E-03   -.87778E-04
   4  Prefactor     .10000E-03    10.873        .18142E-02** at limit **
   5  norm          .34182        .37302        .56126E-03    .17720E-02
   6  norm          .10000E-03    .81877        .11668E-02** at limit **
   7  Prefactor     .10001E-03    16.474        .84824E-01** at limit **
   8  Prefactor     20.860        35.713        .87701E-04   -.18444E-03
   9  Prefactor     .10000E-03    3.3995        .14902E-02** at limit **
  10  Prefactor     5.8243        7.6114        .16641E-03   -.47473E-03
  11  Prefactor     .10000E-03    3.6454        .15568E-02** at limit **
  12  Prefactor     15.859        32.239        .10051E-03   -.83476E-04
  13  Prefactor     110.39        94.769        .19146E-03    .21374E-03
  14  norm          .10000E-03    .17442        .67186E-04** at limit **
  15  Prefactor     .10000E-03    5.3165        .18142E-02** at limit **
  16  Prefactor     21.874        23.391        .85629E-04   -.11723E-03
  17  norm          1.7552        3.1795        .18931E-03    .81912E-04
  18  Prefactor     .10000E-03    39.703        .18142E-02** at limit **
  19  Prefactor     1.4013        6.3944        .18321E-02    .54954E-04
  20  Prefactor     .10000E-03    1.9539        .11395E-02** at limit **
  21  Normalizat    1.1904        .22868        .28276E-03   -.16846E-03
  22  Prefactor     .99097        .14247        .19857E-03   -.15213E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86552
  Prefactor  = 0.0001
  norm       = 0.341822
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 20.8595
  Prefactor  = 0.0001
  Prefactor  = 5.82428
  Prefactor  = 0.0001
  Prefactor  = 15.8587
  Prefactor  = 110.394
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8741
  norm       = 1.75525
  Prefactor  = 0.0001
  Prefactor  = 1.40134
  Prefactor  = 0.0001
  Normalizat = 1.19044
  Prefactor  = 0.99097
 **********
 **   18 **HESSE 
 **********

 FCN=   6986.906     FROM HESSE     STATUS=OK           332 CALLS     3429 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8881        .32154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8655        10.810        .96049E-05   -1.5369    
   4  Prefactor     .10000E-03    10.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .34182        .37293        .22450E-04   -1.5591    
   6  norm          .10000E-03    .81928        .23336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    14.979        .90376E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.860        35.707        .17540E-04   -1.4794    
   9  Prefactor     .10000E-03    3.4004        .29803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8243        7.6097        .66565E-05   -1.5225    
  11  Prefactor     .10000E-03    3.6456        .31136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.859        32.236        .40203E-05   -1.4911    
  13  Prefactor     110.39        94.765        .38292E-04   -1.3603    
  14  norm          .10000E-03    .17442        .13437E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.874        23.355        .34252E-05   -1.4772    
  17  norm          1.7552        3.1736        .75725E-05   -1.5443    
  18  Prefactor     .10000E-03    39.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4013        6.3457        .73284E-04   -1.5471    
  20  Prefactor     .10000E-03    1.9540        .22791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1904        .22882        .11311E-04   -.86899    
  22  Prefactor     .99097        .14258        .39714E-04   -.93031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56125e-09
Minuit parameter uncertainties:
  1  3.50358e-06
  2  9.39242e-06
  3  10.8178
  4  1.41077e-06
  5  0.372929
  6  3.34214e-05
  7  0.000852817
  8  35.7435
  9  1.60998e-05
  10  7.61096
  11  9.64633e-06
  12  32.2716
  13  94.8957
  14  2.86454e-06
  15  2.94461e-05
  16  23.3648
  17  3.17388
  18  1.56926e-05
  19  5.9649
  20  4.1682e-06
  21  0.229014
  22  0.142636
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  9.646e-06  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:  9.910e-01  1.426e-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.190e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573871/likelihoodResults_338083201_338342401_4FGL_J0126.8+2412_daily_bin381.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): 102
logL (Free Index) = 6986.90714682
delta logL = -0.00130516429545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6986.90584164
delta logL = 1.92967490875e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7540       1.0000          .0000       10.000    
     3 'Normalizat'    1.1904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99097       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=   6986.906     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      259 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    399.93        .15590E-02** at limit **
   2  Index         2.4561        6.1208        .50000       -.26125E-07
   3  Normalizat    1.1904        .59751E-01    .28277E-03    .41653E-04
   4  Prefactor     .99097        .38905E-01    .19857E-03    .65211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45609
  Normalizat = 1.19044
  Prefactor  = 0.99097
 **********
 **   18 **HESSE 
 **********

 FCN=   6986.906     FROM HESSE     STATUS=OK            29 CALLS      288 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1841        .31179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4561        6.1138        .50000       -.53377    
   3  Normalizat    1.1904        .21583        .11311E-04   -.86899    
   4  Prefactor     .99097        .14058        .79427E-05   -.93031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47466e-12
Minuit parameter uncertainties:
  1  4.92357e-06
  2  219.524
  3  0.215995
  4  0.140634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573871': 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) = 6986.90584113
delta logL = 5.27057636646e-07

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.924e-06  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.456e+00  2.195e+02  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:  9.910e-01  1.406e-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.190e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.704 24.210

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/573871/cmap_HighResolution_338083201_338342401_4FGL_J0126.8+2412_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.07e-08', time_completed='2021-08-14 00:56:00.698518', job_id='573871', GAL2='0.99', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1628927760.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='381' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:56:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 573871: <4FGL_J0126.8+2412_daily_bin381> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin381> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:30 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:41:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 00:41:46 2021
Terminated at Sat Aug 14 00:56:01 2021
Results reported at Sat Aug 14 00:56:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin381 21.7036 24.21 338083201 338342401 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 :                                   808.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            931 sec.

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

