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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin387
RA = 21.7036, Dec = 24.21
tmin = 339638401, tmax = 339897601
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='573879', job_status='RUN', time_executed='2021-08-14 00:44:35.277990', time_epoch_executed='1628927075.28' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573879/ft1_4FGL_J0126.8+2412_daily_bin387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573879/ft2_4FGL_J0126.8+2412_daily_bin387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573879/ft1_4FGL_J0126.8+2412_daily_bin387.fits outfile=/scratch/kocevski/573879/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin387.fits ra=21.7036 dec=24.21 rad=12.0 tmin=339638401.0 tmax=339897601.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 5.56
user 3.12
sys 2.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573879/ft2_4FGL_J0126.8+2412_daily_bin387.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/573879/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin387.fits evtable="EVENTS" outfile="/scratch/kocevski/573879/ft1_filtered_4FGL_J0126.8+2412_daily_bin387.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.74
user 0.32
sys 2.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573879/ft1_filtered_4FGL_J0126.8+2412_daily_bin387.fits" evtable="EVENTS" scfile=/scratch/kocevski/573879/ft2_4FGL_J0126.8+2412_daily_bin387.fits sctable="SC_DATA" outfile=/scratch/kocevski/573879/ltcube_339638401_339897601_4FGL_J0126.8+2412_daily_bin387.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/573879/ft2_4FGL_J0126.8+2412_daily_bin387.fits
.....................!
real 20.61
user 17.69
sys 2.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573879/ft1_filtered_4FGL_J0126.8+2412_daily_bin387.fits evtable="EVENTS" scfile=/scratch/kocevski/573879/ft2_4FGL_J0126.8+2412_daily_bin387.fits sctable="SC_DATA" expcube=/scratch/kocevski/573879/ltcube_339638401_339897601_4FGL_J0126.8+2412_daily_bin387.fits outfile=/scratch/kocevski/573879/expmap_339638401_339897601_4FGL_J0126.8+2412_daily_bin387.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/573879/ltcube_339638401_339897601_4FGL_J0126.8+2412_daily_bin387.fits
.....................!
real 193.24
user 185.08
sys 7.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/573879/ft1_filtered_4FGL_J0126.8+2412_daily_bin387.fits scfile=/scratch/kocevski/573879/ft2_4FGL_J0126.8+2412_daily_bin387.fits outfile=/scratch/kocevski/573879/cmap_339638401_339897601_4FGL_J0126.8+2412_daily_bin387.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.68
user 0.36
sys 2.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573879/ft1_filtered_4FGL_J0126.8+2412_daily_bin387.fits scfile=/scratch/kocevski/573879/ft2_4FGL_J0126.8+2412_daily_bin387.fits outfile=/scratch/kocevski/573879/cmap_HighResolution_339638401_339897601_4FGL_J0126.8+2412_daily_bin387.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.72
user 0.37
sys 2.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9593       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2670       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.546       1.0000         .10000E-03   10000.    
     5 'norm      '    4.9102       1.0000         .10000E-03   10000.    
     6 'norm      '    .56840       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5268       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    115.58       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13905E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.733       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6276       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15387E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10679E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88631       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95462       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=   6578.635     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2371 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9616        5.6039        .43320E-06   -.41610E-04
   2  Prefactor     .10000E-03    3.5797        .52529E-07** at limit **
   3  Prefactor     4.2643        12.512        .13681E-05    .19232E-03
   4  Prefactor     20.541        28.901        .68723E-06    .93498E-05
   5  norm          4.9104        1.0487        .10022E-07   -.45998E-04
   6  norm          .56873        1.5068       -.48476E-06    .32882E-03
   7  Prefactor     7.5097        11.394        .10906E-06   -.32037E-05
   8  Prefactor     .10000E-03    30.336       -.18811E-05** at limit **
   9  Prefactor     .10000E-03    2.8383        .19273E-06** at limit **
  10  Prefactor     9.5259        7.6846        .71677E-06    .54318E-03
  11  Prefactor     .10000E-03    4.2157        .47467E-06** at limit **
  12  Prefactor     .10000E-03    29.116       -.96253E-07** at limit **
  13  Prefactor     115.49        82.989       -.38798E-06    .62079E-04
  14  norm          .10000E-03    .76957       -.18063E-05** at limit **
  15  Prefactor     .10000E-03    10.308        .65571E-06** at limit **
  16  Prefactor     11.756        24.448       -.17593E-05   -.12916E-03
  17  norm          3.6314        3.4394        .17242E-06   -.34662E-03
  18  Prefactor     .10000E-03    50.036        .69812E-06** at limit **
  19  Prefactor     .10000E-03    22.543       -.11709E-04** at limit **
  20  Prefactor     .10000E-03    2.1725        .75607E-07** at limit **
  21  Normalizat    .88636        .19199       -.15235E-05    .10995E-04
  22  Prefactor     .95460        .12056       -.26332E-06    .44853E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.96164
  Prefactor  = 0.0001
  Prefactor  = 4.26426
  Prefactor  = 20.5407
  norm       = 4.91037
  norm       = 0.568734
  Prefactor  = 7.50966
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.52586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 115.485
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.7563
  norm       = 3.63136
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.886362
  Prefactor  = 0.954599
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.635     FROM HESSE     STATUS=OK           346 CALLS     2717 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9616        5.6008        .18059E-03   -1.5262    
   2  Prefactor     .10000E-03    3.5867        .14987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2643        12.479        .19505E-03   -1.5295    
   4  Prefactor     20.541        28.897        .88364E-04   -1.4801    
   5  norm          4.9104        1.0488        .18151E-04   -1.5265    
   6  norm          .56873        1.4552        .13786E-03   -1.5557    
   7  Prefactor     7.5097        11.389        .14634E-03   -1.5160    
   8  Prefactor     .10000E-03    30.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8798        .13346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5259        7.6190        .12984E-03   -1.5091    
  11  Prefactor     .10000E-03    4.2457        .16279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     115.49        83.015        .18712E-03   -1.3555    
  14  norm          .10000E-03    2.2748        .83954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.756        23.616        .11695E-03   -1.5022    
  17  norm          3.6314        3.3516        .13776E-03   -1.5327    
  18  Prefactor     .10000E-03    50.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.084        .34047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1920        .11676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88636        .22579        .29846E-03   -.96941    
  22  Prefactor     .95460        .14218        .18864E-03   -.94259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07597e-09
Minuit parameter uncertainties:
  1  5.60137
  2  1.15726e-05
  3  12.487
  4  28.917
  5  1.04882
  6  1.45526
  7  11.392
  8  0.000251706
  9  1.81695e-05
  10  7.61973
  11  9.15331e-06
  12  0.00011103
  13  83.0989
  14  0.000108793
  15  0.000111479
  16  23.6352
  17  3.35182
  18  2.10969e-05
  19  0.000383234
  20  1.35097e-05
  21  0.226029
  22  0.142232
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  9.153e-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.546e-01  1.422e-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.864e-01  2.260e-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: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573879/likelihoodResults_339638401_339897601_4FGL_J0126.8+2412_daily_bin387.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) = 6578.63596653
delta logL = -0.00112206361155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6578.63484444
delta logL = 3.30446709995e-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.7514       1.0000          .0000       10.000    
     3 'Normalizat'    .88636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95460       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=   6578.635     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    131.95        .16327E-02** at limit **
   2  Index         2.6767        8.6536        .50000        .13310E-04
   3  Normalizat    .88636        .27078E-01    .29846E-03   -.19046E-05
   4  Prefactor     .95460        .17818E-01    .18864E-03   -.58458E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6578.635     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      376 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    131.95        .34801E-03** at limit **
   2  Index         2.6767        8.6536        .28425E-03    .13310E-04
   3  Normalizat    .88636        .27078E-01    .48607E-05   -.19046E-05
   4  Prefactor     .95460        .17818E-01    .31742E-05   -.58458E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6578.635     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      417 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    726.41        .32654E-03** at limit **
   2  Index         2.4588        8.1450        .50000        .10868E-07
   3  Normalizat    .88636        .82953E-01    .11938E-04    .17713E-04
   4  Prefactor     .95460        .54586E-01    .75456E-05    .31941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45884
  Normalizat = 0.886362
  Prefactor  = 0.954599
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.635     FROM HESSE     STATUS=OK            29 CALLS      446 TOTAL
                     EDM=   .94E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3468        .65308E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4588        7.3962        .50000       -.53313    
   3  Normalizat    .88636        .21336        .23877E-05   -.96941    
   4  Prefactor     .95460        .14049        .15091E-05   -.94259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39728e-13
Minuit parameter uncertainties:
  1  3.18226e-06
  2  148.524
  3  0.213566
  4  0.140544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573879': 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) = 6578.63484385
delta logL = 6.18859303358e-07

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  3.182e-06  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.459e+00  1.485e+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.546e-01  1.405e-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.864e-01  2.136e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/573879/cmap_HighResolution_339638401_339897601_4FGL_J0126.8+2412_daily_bin387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-08-14 00:56:39.584999', job_id='573879', GAL2='0.95', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1628927799.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='6.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='387' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:56:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 573879: <4FGL_J0126.8+2412_daily_bin387> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin387> 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) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:41:49 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:49 2021
Terminated at Sat Aug 14 00:56:40 2021
Results reported at Sat Aug 14 00:56:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin387 21.7036 24.21 339638401 339897601 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 :                                   743.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            969 sec.

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

