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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin390
RA = 21.7036, Dec = 24.21
tmin = 340416001, tmax = 340675201
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='573884', job_status='RUN', time_executed='2021-08-14 00:43:20.349432', time_epoch_executed='1628927000.35' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573884

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573884/ft1_4FGL_J0126.8+2412_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573884/ft2_4FGL_J0126.8+2412_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573884/ft1_4FGL_J0126.8+2412_daily_bin390.fits outfile=/scratch/kocevski/573884/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin390.fits ra=21.7036 dec=24.21 rad=12.0 tmin=340416001.0 tmax=340675201.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.87
user 6.57
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573884/ft1_filtered_4FGL_J0126.8+2412_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/573884/ft2_4FGL_J0126.8+2412_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/573884/ltcube_340416001_340675201_4FGL_J0126.8+2412_daily_bin390.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/573884/ft2_4FGL_J0126.8+2412_daily_bin390.fits
.....................!
real 12.34
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573884/ft1_filtered_4FGL_J0126.8+2412_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/573884/ft2_4FGL_J0126.8+2412_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/573884/ltcube_340416001_340675201_4FGL_J0126.8+2412_daily_bin390.fits outfile=/scratch/kocevski/573884/expmap_340416001_340675201_4FGL_J0126.8+2412_daily_bin390.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/573884/ltcube_340416001_340675201_4FGL_J0126.8+2412_daily_bin390.fits
.....................!
real 191.97
user 186.24
sys 4.83

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/573884/ft1_filtered_4FGL_J0126.8+2412_daily_bin390.fits scfile=/scratch/kocevski/573884/ft2_4FGL_J0126.8+2412_daily_bin390.fits outfile=/scratch/kocevski/573884/cmap_340416001_340675201_4FGL_J0126.8+2412_daily_bin390.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573884/ft1_filtered_4FGL_J0126.8+2412_daily_bin390.fits scfile=/scratch/kocevski/573884/ft2_4FGL_J0126.8+2412_daily_bin390.fits outfile=/scratch/kocevski/573884/cmap_HighResolution_340416001_340675201_4FGL_J0126.8+2412_daily_bin390.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5640       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.757       1.0000         .10000E-03   10000.    
     8 'Prefactor '    90.984       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8637       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.699       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.0128       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13727E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.483       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .65447       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1397       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=   6591.407     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2364 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2795       -.28264E-07** at limit **
   2  Prefactor     .10000E-03    10.662       -.44988E-06** at limit **
   3  Prefactor     .10000E-03    13.648       -.88196E-05** at limit **
   4  Prefactor     .10000E-03    12.969        .56839E-05** at limit **
   5  norm          .10000E-03    .16892        .94721E-08** at limit **
   6  norm          1.5638        1.4296       -.75047E-07   -.49179E-03
   7  Prefactor     17.757        15.030       -.25717E-05   -.11823E-04
   8  Prefactor     90.974        48.366       -.21818E-05    .14029E-05
   9  Prefactor     3.8640        4.3646        .31451E-06   -.56251E-04
  10  Prefactor     .10000E-03    4.1138        .48797E-07** at limit **
  11  Prefactor     .10000E-03    3.9258        .12723E-07** at limit **
  12  Prefactor     44.694        44.705       -.72936E-06    .31648E-04
  13  Prefactor     .10000E-03    311.29       -.66776E-05** at limit **
  14  norm          .10000E-03    .19144       -.43738E-08** at limit **
  15  Prefactor     .10000E-03    16.596       -.54106E-05** at limit **
  16  Prefactor     .10000E-03    15.904        .90679E-05** at limit **
  17  norm          7.0124        5.1593        .48261E-06   -.12074E-03
  18  Prefactor     .10000E-03    138.76        .21553E-05** at limit **
  19  Prefactor     16.482        13.890       -.20619E-05   -.12098E-03
  20  Prefactor     .10000E-03    2.3712       -.36009E-07** at limit **
  21  Normalizat    .65451        .19698        .16567E-05    .71441E-04
  22  Prefactor     1.1397        .12499        .18000E-06    .23686E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.56375
  Prefactor  = 17.7571
  Prefactor  = 90.9744
  Prefactor  = 3.86404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.6937
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.01242
  Prefactor  = 0.0001
  Prefactor  = 16.4818
  Prefactor  = 0.0001
  Normalizat = 0.65451
  Prefactor  = 1.13973
 **********
 **   18 **HESSE 
 **********

 FCN=   6591.407     FROM HESSE     STATUS=OK           334 CALLS     2698 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2808        .11971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .17522        .65073E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5638        1.4142        .88190E-04   -1.5458    
   7  Prefactor     17.757        15.055        .95045E-04   -1.4865    
   8  Prefactor     90.974        48.256        .42128E-04   -1.3797    
   9  Prefactor     3.8640        4.3480        .16731E-03   -1.5315    
  10  Prefactor     .10000E-03    4.1498        .16067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9317        .15707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.694        44.721        .59967E-04   -1.4370    
  13  Prefactor     .10000E-03    313.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .23779        .69105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.0124        5.1478        .14104E-03   -1.5178    
  18  Prefactor     .10000E-03    138.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.482        13.938        .98651E-04   -1.4896    
  20  Prefactor     .10000E-03    2.3782        .12208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .65451        .22039        .35097E-03   -1.0572    
  22  Prefactor     1.1397        .14120        .17667E-03   -.88207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06428e-10
Minuit parameter uncertainties:
  1  5.85247e-07
  2  1.44755e-05
  3  2.1133e-05
  4  2.27651e-06
  5  3.88356e-07
  6  1.41424
  7  15.058
  8  48.277
  9  4.34834
  10  2.90604e-06
  11  6.56875e-07
  12  44.7543
  13  5.25438e-05
  14  3.88774e-07
  15  6.67805e-06
  16  2.88185e-05
  17  5.14811
  18  3.34018e-05
  19  13.941
  20  1.88566e-06
  21  0.220685
  22  0.141247
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  6.569e-07  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.140e+00  1.412e-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:  6.545e-01  2.207e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573884/likelihoodResults_340416001_340675201_4FGL_J0126.8+2412_daily_bin390.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) = 6591.40814557
delta logL = -0.00120951728877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6591.40693598
delta logL = 7.24630808691e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7460       1.0000          .0000       10.000    
     3 'Normalizat'    .65451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1397       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6591.407     FROM MIGRAD    STATUS=FAILED       129 CALLS      281 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.07        .54427E-01** at limit **
   2  Index         1.3984        8.6199        .50000       -.22637E-04
   3  Normalizat    .65451        .27479E-01    .35097E-03   -.23549E-04
   4  Prefactor     1.1397        .17994E-01    .17667E-03   -.33590E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6591.407     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      437 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.07        .53749E-03** at limit **
   2  Index         1.3984        8.6199        .10954E-03   -.22637E-04
   3  Normalizat    .65451        .27479E-01    .13469E-06   -.23549E-04
   4  Prefactor     1.1397        .17994E-01    .11417E-07   -.33590E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6591.407     FROM MIGRAD    STATUS=FAILED        71 CALLS      508 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.738        .60211E-03** at limit **
   2  Index         1.3984        9.0691        .50000       -.22637E-04
   3  Normalizat    .65451        .21451        .28077E-05   -.23485E-04
   4  Prefactor     1.1397        .14026        .14134E-05   -.33783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.39839
  Normalizat = 0.654511
  Prefactor  = 1.13973
 **********
 **   18 **HESSE 
 **********

 FCN=   6591.407     FROM HESSE     STATUS=OK            27 CALLS      535 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.610        .12042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3984        6.2243        .50000       -.80427    
   3  Normalizat    .65451        .21571        .56155E-06   -1.0572    
   4  Prefactor     1.1397        .14074        .28267E-06   -.88207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10911e-07
Minuit parameter uncertainties:
  1  0.000203063
  2  50.882
  3  0.215991
  4  0.140782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573884': 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): 1
logL (Free Index) = 6591.40692734
delta logL = 8.71024985827e-06

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.031e-04  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  1.398e+00  5.088e+01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.140e+00  1.408e-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:  6.545e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/573884/cmap_HighResolution_340416001_340675201_4FGL_J0126.8+2412_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2021-08-14 00:54:46.875384', job_id='573884', GAL2='1.14', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1628927686.88', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='8.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='390' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:54:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 573884: <4FGL_J0126.8+2412_daily_bin390> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin390> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:31 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:41:51 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:51 2021
Terminated at Sat Aug 14 00:54:47 2021
Results reported at Sat Aug 14 00:54:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin390 21.7036 24.21 340416001 340675201 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 :                                   681.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            856 sec.

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

