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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin238
RA = 21.7036, Dec = 24.21
tmin = 301017601, tmax = 301276801
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='573669', job_status='RUN', time_executed='2021-08-14 00:42:55.977361', time_epoch_executed='1628926975.98' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573669

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573669/ft1_4FGL_J0126.8+2412_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573669/ft2_4FGL_J0126.8+2412_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573669/ft1_4FGL_J0126.8+2412_daily_bin238.fits outfile=/scratch/kocevski/573669/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin238.fits ra=21.7036 dec=24.21 rad=12.0 tmin=301017601.0 tmax=301276801.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.30
user 3.34
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573669/ft2_4FGL_J0126.8+2412_daily_bin238.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/573669/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin238.fits evtable="EVENTS" outfile="/scratch/kocevski/573669/ft1_filtered_4FGL_J0126.8+2412_daily_bin238.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 1.16
user 0.35
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573669/ft1_filtered_4FGL_J0126.8+2412_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/573669/ft2_4FGL_J0126.8+2412_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/573669/ltcube_301017601_301276801_4FGL_J0126.8+2412_daily_bin238.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/573669/ft2_4FGL_J0126.8+2412_daily_bin238.fits
.....................!
real 15.25
user 14.12
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573669/ft1_filtered_4FGL_J0126.8+2412_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/573669/ft2_4FGL_J0126.8+2412_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/573669/ltcube_301017601_301276801_4FGL_J0126.8+2412_daily_bin238.fits outfile=/scratch/kocevski/573669/expmap_301017601_301276801_4FGL_J0126.8+2412_daily_bin238.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/573669/ltcube_301017601_301276801_4FGL_J0126.8+2412_daily_bin238.fits
.....................!
real 193.95
user 187.00
sys 6.50

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/573669/ft1_filtered_4FGL_J0126.8+2412_daily_bin238.fits scfile=/scratch/kocevski/573669/ft2_4FGL_J0126.8+2412_daily_bin238.fits outfile=/scratch/kocevski/573669/cmap_301017601_301276801_4FGL_J0126.8+2412_daily_bin238.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 1.18
user 0.39
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573669/ft1_filtered_4FGL_J0126.8+2412_daily_bin238.fits scfile=/scratch/kocevski/573669/ft2_4FGL_J0126.8+2412_daily_bin238.fits outfile=/scratch/kocevski/573669/cmap_HighResolution_301017601_301276801_4FGL_J0126.8+2412_daily_bin238.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 1.20
user 0.39
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2636       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .87472E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .59889       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.806       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.929       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7680       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46744E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6822       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0554       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.5440       1.0000         .10000E-03   10000.    
    18 'Prefactor '    105.64       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4745       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89315       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0999       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=   7296.834     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2382 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.479       -.11235E-05** at limit **
   2  Prefactor     7.2613        12.643       -.24336E-06   -.66023E-04
   3  Prefactor     .10642E-03    6.4605       -.68236E-06** at limit **
   4  Prefactor     .10000E-03    10.750        .15972E-06** at limit **
   5  norm          .59884        .52600        .35153E-07    .11100E-04
   6  norm          2.5373        1.5534        .98047E-06   -.40832E-03
   7  Prefactor     .10000E-03    16.237        .22181E-06** at limit **
   8  Prefactor     15.806        22.947       -.17791E-06   -.49796E-04
   9  Prefactor     .10000E-03    1.5774       -.29437E-07** at limit **
  10  Prefactor     13.929        8.2878       -.55479E-06   -.23377E-04
  11  Prefactor     8.7654        11.632        .41542E-06   -.94060E-05
  12  Prefactor     .10000E-03    15.393        .55424E-07** at limit **
  13  Prefactor     .10002E-03    365.91        .51124E-05** at limit **
  14  norm          1.6822        .66508        .48675E-07   -.20171E-03
  15  Prefactor     7.0539        10.355        .34040E-06    .16041E-04
  16  Prefactor     .10000E-03    5.9391        .84432E-08** at limit **
  17  norm          5.5433        4.8721        .13798E-06   -.52048E-04
  18  Prefactor     105.55        138.73       -.14935E-05   -.90021E-04
  19  Prefactor     7.4741        8.1631        .40870E-07   -.18148E-04
  20  Prefactor     .10000E-03    4.0411       -.20377E-06** at limit **
  21  Normalizat    .89320        .20290       -.27228E-06    .16441E-04
  22  Prefactor     1.0999        .12668       -.15669E-06    .46975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.26129
  Prefactor  = 0.000106415
  Prefactor  = 0.0001
  norm       = 0.598841
  norm       = 2.5373
  Prefactor  = 0.0001
  Prefactor  = 15.8056
  Prefactor  = 0.0001
  Prefactor  = 13.9285
  Prefactor  = 8.76538
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 1.6822
  Prefactor  = 7.05394
  Prefactor  = 0.0001
  norm       = 5.54333
  Prefactor  = 105.554
  Prefactor  = 7.47413
  Prefactor  = 0.0001
  Normalizat = 0.893196
  Prefactor  = 1.09992
 **********
 **   18 **HESSE 
 **********

 FCN=   7296.834     FROM HESSE     STATUS=OK           354 CALLS     2736 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.686        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.2613        12.641        .14883E-03   -1.5169    
   3  Prefactor     .10642E-03    9.4253        .70209E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .59884        .49539        .55686E-03   -1.5553    
   6  norm          2.5373        1.5628        .38709E-03   -1.5389    
   7  Prefactor     .10000E-03    16.722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.806        22.950        .10074E-03   -1.4913    
   9  Prefactor     .10000E-03    1.5808        .10473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.929        8.3173        .10732E-03   -1.4961    
  11  Prefactor     8.7654        11.601        .13537E-03   -1.5116    
  12  Prefactor     .10000E-03    15.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    372.71        .21190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6822        .66388        .42194E-04   -1.5449    
  15  Prefactor     7.0539        10.347        .15103E-03   -1.5177    
  16  Prefactor     .10000E-03    5.9407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5433        4.8586        .15878E-03   -1.5237    
  18  Prefactor     105.55        140.13        .19563E-03   -1.3650    
  19  Prefactor     7.4741        8.1425        .14669E-03   -1.5161    
  20  Prefactor     .10000E-03    4.0881        .16761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89320        .23196        .32583E-03   -.96700    
  22  Prefactor     1.0999        .14565        .19298E-03   -.89469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78394e-10
Minuit parameter uncertainties:
  1  1.41879e-05
  2  12.646
  3  0.0155543
  4  5.68615e-05
  5  0.495389
  6  1.56282
  7  2.924e-06
  8  22.9627
  9  1.05592e-07
  10  8.31796
  11  11.6042
  12  1.0696e-05
  13  0.00487846
  14  0.663886
  15  10.3496
  16  2.394e-07
  17  4.8589
  18  140.57
  19  8.14367
  20  4.8719e-06
  21  0.232223
  22  0.145704
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  8.765e+00  1.160e+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:  1.100e+00  1.457e-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.932e-01  2.322e-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.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573669/likelihoodResults_301017601_301276801_4FGL_J0126.8+2412_daily_bin238.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) = 7296.64488052
delta logL = 0.189131295999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7296.58508115
delta logL = 0.248930660624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.460       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1081       1.0000          .0000       10.000    
     3 'Normalizat'    .91392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0858       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=   7296.585     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      224 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.453        24.511        .27294E-02    .51644E-04
   2  Index         2.1087        .87754        .25202       -.55364E-04
   3  Normalizat    .91408        .19411        .72867E-01    .23252E-04
   4  Prefactor     1.0858        .12860        .38151E-01    .41566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4532
  Index      = 2.10867
  Normalizat = 0.914083
  Prefactor  = 1.08577
 **********
 **   18 **HESSE 
 **********

 FCN=   7296.585     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.453        14.062        .10918E-03   -1.4974    
   2  Index         2.1087        .68689        .10249E-01   -.61660    
   3  Normalizat    .91408        .22088        .32244E-03   -.95967    
   4  Prefactor     1.0858        .14459        .19400E-03   -.89923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90457e-12
Minuit parameter uncertainties:
  1  14.065
  2  0.690177
  3  0.221104
  4  0.144647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573669': 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) = 7296.58508024
delta logL = 0.24893157545

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.345e+01  1.406e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.109e+00  6.902e-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.086e+00  1.446e-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.141e-01  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 21.704 24.210
Photon Index (Free Index): 2.11 +/- 0.69
Photon Flux (Free Index): 3.22e-08 +/- 3.73e-08
Energy Flux (Free Index): 1.73e-05 +/- 2.46e-05

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/573669/cmap_HighResolution_301017601_301276801_4FGL_J0126.8+2412_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='1.73e-05', dlogl='2.49e-01', photon_flux2='3.22e-08', job_status='DONE', time_completed='2021-08-14 00:54:53.696468', photon_index_error2='0.69', photon_index2='2.11', ts='0.70', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='2.46e-05', EG='0.89', time_epoch_completed='1628927693.7', return_code='0', job_id='573669', GAL2='1.09', EG2='0.91', return_code2='0', photon_flux_error2='3.73e-08', ts2='1.19', photon_index='2.76' WHERE bin_id='238' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:54:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 573669: <4FGL_J0126.8+2412_daily_bin238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin238 21.7036 24.21 301017601 301276801 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 :                                   726.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            876 sec.

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

