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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin701
RA = 21.7036, Dec = 24.21
tmin = 421027201, tmax = 421286401
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='574340', job_status='RUN', time_executed='2021-08-14 00:45:48.070254', time_epoch_executed='1628927148.07' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574340

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574340/ft1_4FGL_J0126.8+2412_daily_bin701.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574340/ft2_4FGL_J0126.8+2412_daily_bin701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574340/ft1_4FGL_J0126.8+2412_daily_bin701.fits outfile=/scratch/kocevski/574340/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin701.fits ra=21.7036 dec=24.21 rad=12.0 tmin=421027201.0 tmax=421286401.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 3.56
user 2.88
sys 0.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574340/ft2_4FGL_J0126.8+2412_daily_bin701.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/574340/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin701.fits evtable="EVENTS" outfile="/scratch/kocevski/574340/ft1_filtered_4FGL_J0126.8+2412_daily_bin701.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.87
user 0.28
sys 0.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574340/ft1_filtered_4FGL_J0126.8+2412_daily_bin701.fits" evtable="EVENTS" scfile=/scratch/kocevski/574340/ft2_4FGL_J0126.8+2412_daily_bin701.fits sctable="SC_DATA" outfile=/scratch/kocevski/574340/ltcube_421027201_421286401_4FGL_J0126.8+2412_daily_bin701.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/574340/ft2_4FGL_J0126.8+2412_daily_bin701.fits
.....................!
real 11.99
user 11.10
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574340/ft1_filtered_4FGL_J0126.8+2412_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/574340/ft2_4FGL_J0126.8+2412_daily_bin701.fits sctable="SC_DATA" expcube=/scratch/kocevski/574340/ltcube_421027201_421286401_4FGL_J0126.8+2412_daily_bin701.fits outfile=/scratch/kocevski/574340/expmap_421027201_421286401_4FGL_J0126.8+2412_daily_bin701.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/574340/ltcube_421027201_421286401_4FGL_J0126.8+2412_daily_bin701.fits
.....................!
real 157.10
user 151.29
sys 4.11

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/574340/ft1_filtered_4FGL_J0126.8+2412_daily_bin701.fits scfile=/scratch/kocevski/574340/ft2_4FGL_J0126.8+2412_daily_bin701.fits outfile=/scratch/kocevski/574340/cmap_421027201_421286401_4FGL_J0126.8+2412_daily_bin701.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.92
user 0.32
sys 0.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574340/ft1_filtered_4FGL_J0126.8+2412_daily_bin701.fits scfile=/scratch/kocevski/574340/ft2_4FGL_J0126.8+2412_daily_bin701.fits outfile=/scratch/kocevski/574340/cmap_HighResolution_421027201_421286401_4FGL_J0126.8+2412_daily_bin701.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.98
user 0.30
sys 0.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3660       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.554       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2790       1.0000         .10000E-03   10000.    
     6 'norm      '    .64502       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.136       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.680       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40651       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.690       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.144       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2778       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.802       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8562       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.402       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .69995       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1895       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=   7560.845     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2444 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3675        15.604        .43857E-05    .77946E-04
   2  Prefactor     12.555        14.761       -.21636E-05   -.16274E-03
   3  Prefactor     .10000E-03    10.120       -.12871E-06** at limit **
   4  Prefactor     .10000E-03    15.790        .13458E-06** at limit **
   5  norm          4.2787        .95907        .21646E-07    .26241E-03
   6  norm          .64508        .95799        .24851E-07    .14857E-04
   7  Prefactor     24.138        15.766       -.19867E-05   -.87463E-05
   8  Prefactor     50.669        36.600       -.12415E-05    .10741E-04
   9  Prefactor     .10000E-03    2.1999        .17969E-06** at limit **
  10  Prefactor     .10000E-03    1.8923       -.10490E-06** at limit **
  11  Prefactor     .42746        7.0782       -.13165E-05    .22101E-03
  12  Prefactor     26.686        28.099       -.21584E-05    .62225E-05
  13  Prefactor     24.888        56.328        .32079E-05    .10278E-04
  14  norm          1.2784        .66423       -.46305E-07   -.86256E-04
  15  Prefactor     .10000E-03    3.7765       -.28573E-07** at limit **
  16  Prefactor     16.810        28.039        .43749E-05    .64698E-05
  17  norm          2.8595        4.7597        .37381E-05   -.12648E-03
  18  Prefactor     .10000E-03    94.407       -.42698E-06** at limit **
  19  Prefactor     11.393        14.263       -.26678E-05   -.58198E-05
  20  Prefactor     .10000E-03    3.7426       -.85150E-07** at limit **
  21  Normalizat    .69983        .20152        .51872E-06   -.14936E-04
  22  Prefactor     1.1895        .12737       -.18323E-06    .10087E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36752
  Prefactor  = 12.5548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.27869
  norm       = 0.645084
  Prefactor  = 24.1377
  Prefactor  = 50.6694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.427463
  Prefactor  = 26.6857
  Prefactor  = 24.8879
  norm       = 1.27842
  Prefactor  = 0.0001
  Prefactor  = 16.8101
  norm       = 2.85948
  Prefactor  = 0.0001
  Prefactor  = 11.3926
  Prefactor  = 0.0001
  Normalizat = 0.699833
  Prefactor  = 1.18948
 **********
 **   18 **HESSE 
 **********

 FCN=   7560.845     FROM HESSE     STATUS=OK           348 CALLS     2792 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3675        15.118        .37332E-03   -1.5474    
   2  Prefactor     12.555        14.504        .11305E-03   -1.4999    
   3  Prefactor     .10000E-03    10.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2787        .95770        .38195E-04   -1.5294    
   6  norm          .64508        .95743        .47397E-04   -1.5547    
   7  Prefactor     24.138        15.726        .81536E-04   -1.4725    
   8  Prefactor     50.669        36.529        .56334E-04   -1.4283    
   9  Prefactor     .10000E-03    2.2079        .12586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9046        .11678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .42746        42.113        .42427E-02   -1.5577    
  12  Prefactor     26.686        28.082        .77543E-04   -1.4674    
  13  Prefactor     24.888        56.210        .79887E-04   -1.4710    
  14  norm          1.2784        .66078        .48472E-04   -1.5482    
  15  Prefactor     .10000E-03    3.7993        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.810        27.935        .97711E-04   -1.4888    
  17  norm          2.8595        4.7811        .10273E-02   -1.5370    
  18  Prefactor     .10000E-03    94.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.393        14.282        .11864E-03   -1.5033    
  20  Prefactor     .10000E-03    3.7959        .16425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .69983        .22335        .35843E-03   -1.0390    
  22  Prefactor     1.1895        .14274        .18767E-03   -.86656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52468e-09
Minuit parameter uncertainties:
  1  9.09629
  2  14.5083
  3  1.69407e-05
  4  1.86346e-05
  5  0.957704
  6  0.957453
  7  15.7284
  8  36.5456
  9  1.19839e-05
  10  4.46017e-06
  11  8.49082
  12  28.0961
  13  56.33
  14  0.660786
  15  9.17634e-07
  16  27.9566
  17  4.78174
  18  2.05959e-05
  19  14.2865
  20  4.59294e-06
  21  0.223641
  22  0.142791
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  4.275e-01  8.491e+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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.189e+00  1.428e-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.998e-01  2.236e-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: 9.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574340/likelihoodResults_421027201_421286401_4FGL_J0126.8+2412_daily_bin701.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) = 7560.8448055
delta logL = 9.88091078398e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7560.84477607
delta logL = 0.000128242894789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42744       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8171       1.0000          .0000       10.000    
     3 'Normalizat'    .69973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1895       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=   7560.845     FROM MIGRAD    STATUS=FAILED        91 CALLS      258 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42695        226.52        .41718E-02    .14975E-02
   2  Index         2.8407        5.8862        .44427E-01    .14363E-03
   3  Normalizat    .69969        .21212        .35847E-03   -.42681E-03
   4  Prefactor     1.1895        .14038        .18767E-03   -.84776E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7560.845     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      342 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42695        226.52        .62232E-03   -1.5577    
   2  Index         2.8407        5.8862        .62569E-02   -.44655    
   3  Normalizat    .69969        .21212        .19196E-03   -1.0391    
   4  Prefactor     1.1895        .14038        .66407E-04   -.86654    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7560.845     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      376 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42572        38.949        .16687E-03    .43261E-04
   2  Index         2.8401        6.4179        .17771E-02    .21048E-05
   3  Normalizat    .69970        .20987        .14339E-04    .34363E-03
   4  Prefactor     1.1895        .14018        .37534E-04    .63504E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.425725
  Index      = 2.84015
  Normalizat = 0.699696
  Prefactor  = 1.18952
 **********
 **   18 **HESSE 
 **********

 FCN=   7560.845     FROM HESSE     STATUS=OK            23 CALLS      399 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42572        38.598        .66749E-05   -1.5577    
   2  Index         2.8401        6.4174        .71083E-04   -.44668    
   3  Normalizat    .69970        .20984        .28678E-05   -1.0390    
   4  Prefactor     1.1895        .14017        .75068E-05   -.86654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25274e-10
Minuit parameter uncertainties:
  1  8.11171
  2  4.86033
  3  0.210077
  4  0.140211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574340': 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) = 7560.84476462
delta logL = 0.000139692579069

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.190e+00  1.402e-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.997e-01  2.101e-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/574340/cmap_HighResolution_421027201_421286401_4FGL_J0126.8+2412_daily_bin701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.63e-08', time_completed='2021-08-14 00:57:03.189950', job_id='574340', GAL2='1.19', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1628927823.19', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.40e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='701' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:57:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 574340: <4FGL_J0126.8+2412_daily_bin701> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin701> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:58 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:44:50 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:44:50 2021
Terminated at Sat Aug 14 00:57:03 2021
Results reported at Sat Aug 14 00:57:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin701 21.7036 24.21 421027201 421286401 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            965 sec.

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

