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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1623
RA = 21.7036, Dec = 24.21
tmin = 660009601, tmax = 660268801
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='139548', job_status='RUN', time_executed='2021-12-07 12:07:04.336986', time_epoch_executed='1638907624.34' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139548/ft1_4FGL_J0126.8+2412_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139548/ft2_4FGL_J0126.8+2412_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139548/ft1_4FGL_J0126.8+2412_daily_bin1623.fits outfile=/scratch/kocevski/139548/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1623.fits ra=21.7036 dec=24.21 rad=12.0 tmin=660009601.0 tmax=660268801.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.02
user 3.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139548/ft2_4FGL_J0126.8+2412_daily_bin1623.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/139548/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1623.fits evtable="EVENTS" outfile="/scratch/kocevski/139548/ft1_filtered_4FGL_J0126.8+2412_daily_bin1623.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.44
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139548/ft1_filtered_4FGL_J0126.8+2412_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/139548/ft2_4FGL_J0126.8+2412_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/139548/ltcube_660009601_660268801_4FGL_J0126.8+2412_daily_bin1623.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/139548/ft2_4FGL_J0126.8+2412_daily_bin1623.fits
.....................!
real 9.95
user 9.63
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139548/ft1_filtered_4FGL_J0126.8+2412_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/139548/ft2_4FGL_J0126.8+2412_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/139548/ltcube_660009601_660268801_4FGL_J0126.8+2412_daily_bin1623.fits outfile=/scratch/kocevski/139548/expmap_660009601_660268801_4FGL_J0126.8+2412_daily_bin1623.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/139548/ltcube_660009601_660268801_4FGL_J0126.8+2412_daily_bin1623.fits
.....................!
real 158.74
user 154.51
sys 3.91

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/139548/ft1_filtered_4FGL_J0126.8+2412_daily_bin1623.fits scfile=/scratch/kocevski/139548/ft2_4FGL_J0126.8+2412_daily_bin1623.fits outfile=/scratch/kocevski/139548/cmap_660009601_660268801_4FGL_J0126.8+2412_daily_bin1623.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.46
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139548/ft1_filtered_4FGL_J0126.8+2412_daily_bin1623.fits scfile=/scratch/kocevski/139548/ft2_4FGL_J0126.8+2412_daily_bin1623.fits outfile=/scratch/kocevski/139548/cmap_HighResolution_660009601_660268801_4FGL_J0126.8+2412_daily_bin1623.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.47
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.377       1.0000         .10000E-03   10000.    
     5 'norm      '    .77680       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.574       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13628E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3231       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8757       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    95.883       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0410       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47685E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9649       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93650       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94332       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=   6594.097     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2430 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0283        .18134E-07** at limit **
   2  Prefactor     .10000E-03    3.3462        .17968E-07** at limit **
   3  Prefactor     12.286        15.085       -.25615E-06   -.16020E-05
   4  Prefactor     13.390        31.079        .55429E-07   -.31145E-04
   5  norm          .77675        .49393       -.32881E-07    .55676E-03
   6  norm          1.0894        1.5290        .24506E-06    .81189E-04
   7  Prefactor     11.325        14.692        .31708E-07    .13239E-04
   8  Prefactor     49.609        37.121        .13500E-05    .17024E-03
   9  Prefactor     .10000E-03    7.5803       -.69370E-05** at limit **
  10  Prefactor     3.3220        6.4834        .20422E-06    .25080E-04
  11  Prefactor     8.8803        11.910        .61334E-07    .57257E-04
  12  Prefactor     .10000E-03    16.406       -.16108E-06** at limit **
  13  Prefactor     95.836        78.538       -.37953E-06   -.23223E-04
  14  norm          1.0411        .56975       -.12417E-07    .11223E-03
  15  Prefactor     .18489E-02    4.7635       -.91283E-06** at limit **
  16  Prefactor     1.9640        23.126        .15244E-05    .35523E-05
  17  norm          .10000E-03    .91561        .49844E-07** at limit **
  18  Prefactor     .10000E-03    39.947        .26786E-07** at limit **
  19  Prefactor     .10000E-03    3.2965        .11338E-06** at limit **
  20  Prefactor     .10000E-03    2.6697        .15542E-06** at limit **
  21  Normalizat    .93667        .18764        .69135E-06    .17396E-03
  22  Prefactor     .94332        .11762       -.62401E-06    .34008E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2859
  Prefactor  = 13.3897
  norm       = 0.776745
  norm       = 1.08936
  Prefactor  = 11.3247
  Prefactor  = 49.609
  Prefactor  = 0.0001
  Prefactor  = 3.32202
  Prefactor  = 8.88029
  Prefactor  = 0.0001
  Prefactor  = 95.836
  norm       = 1.04109
  Prefactor  = 0.00184892
  Prefactor  = 1.96402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.93667
  Prefactor  = 0.94332
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.097     FROM HESSE     STATUS=OK           354 CALLS     2784 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0287        .11295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3531        .14506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.286        15.009        .11426E-03   -1.5007    
   4  Prefactor     13.390        30.968        .10952E-03   -1.4976    
   5  norm          .77675        .50089        .42302E-04   -1.5532    
   6  norm          1.0894        1.4806        .10622E-03   -1.5499    
   7  Prefactor     11.325        14.720        .11903E-03   -1.5035    
   8  Prefactor     49.609        37.645        .56956E-04   -1.4298    
   9  Prefactor     .10000E-03    7.5960        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3220        6.4122        .22205E-03   -1.5343    
  11  Prefactor     8.8803        11.897        .13454E-03   -1.5112    
  12  Prefactor     .10000E-03    16.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     95.836        78.422        .20524E-03   -1.3747    
  14  norm          1.0411        .56700        .43020E-04   -1.5504    
  15  Prefactor     .18489E-02    9.5717        .54686E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9640        23.138        .29587E-03   -1.5428    
  17  norm          .10000E-03    .91907        .75875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3204        .14395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6969        .12956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93667        .21840        .28718E-03   -.95183    
  22  Prefactor     .94332        .13706        .18769E-03   -.94643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30412e-09
Minuit parameter uncertainties:
  1  1.81019e-07
  2  2.38804e-07
  3  15.0139
  4  31.0054
  5  0.500893
  6  1.48065
  7  14.7252
  8  37.6631
  9  3.74436e-05
  10  6.41355
  11  11.9003
  12  5.1431e-06
  13  78.5068
  14  0.566999
  15  0.258808
  16  13.4884
  17  5.46529e-08
  18  1.3272e-05
  19  4.43836e-07
  20  2.19728e-06
  21  0.218606
  22  0.137109
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  8.880e+00  1.190e+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:  9.433e-01  1.371e-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:  9.367e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/139548/likelihoodResults_660009601_660268801_4FGL_J0126.8+2412_daily_bin1623.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) = 6593.82587414
delta logL = 0.270969446909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6593.81717701
delta logL = 0.279666579555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62773       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4018       1.0000          .0000       10.000    
     3 'Normalizat'    .88642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97081       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.

 FCN=   6593.817     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      305 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62119        8.3279        .11782E-01   -.56636E-03
   2  Index         5.4091        3.5800        .20205        .84250E-06
   3  Normalizat    .88656        .38919E-01    .66497E-01   -.99210E-04
   4  Prefactor     .97071        .25685E-01    .45901E-01   -.92323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.621194
  Index      = 5.40906
  Normalizat = 0.886559
  Prefactor  = 0.970711
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.817     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      336 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62119        27.554        .59281E-04   -1.5550    
   2  Index         5.4091        7.6006        .82313E-02    .81903E-01
   3  Normalizat    .88656        .18169        .29416E-03   -.96934    
   4  Prefactor     .97071        .11801        .18533E-03   -.93712    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4855e-09
Minuit parameter uncertainties:
  1  8.27777
  2  9.67759
  3  0.181814
  4  0.118036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139548': 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): 102
logL (Free Index) = 6593.81717374
delta logL = 0.279669851225

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  6.212e-01  8.278e+00  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  5.409e+00  9.678e+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:  9.707e-01  1.180e-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.866e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 21.704 24.210
Photon Index (Free Index): 5.41 +/- 9.68
Photon Flux (Free Index): 6.36e-08 +/- 6.58e-08
Energy Flux (Free Index): 8.19e-06 +/- 1.18e-05

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/139548/cmap_HighResolution_660009601_660268801_4FGL_J0126.8+2412_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='8.19e-06', dlogl='2.80e-01', photon_flux2='6.36e-08', job_status='DONE', time_completed='2021-12-07 12:16:24.452373', photon_index_error2='9.68', photon_index2='5.41', ts='0.70', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.18e-05', EG='0.94', time_epoch_completed='1638908184.45', return_code='0', job_id='139548', GAL2='0.97', EG2='0.89', return_code2='102', photon_flux_error2='6.58e-08', ts2='1.36', photon_index='2.76' WHERE bin_id='1623' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:16:24 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 139548: <4FGL_J0126.8+2412_daily_bin1623> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1623> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:05:26 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:06:59 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:59 2021
Terminated at Tue Dec  7 12:16:25 2021
Results reported at Tue Dec  7 12:16:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1623 21.7036 24.21 660009601 660268801 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 :                                   558.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             397.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            659 sec.

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

