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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1400
RA = 21.7036, Dec = 24.21
tmin = 602208001, tmax = 602467201
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='578778', job_status='RUN', time_executed='2021-08-14 01:00:58.713751', time_epoch_executed='1628928058.71' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578778/ft1_4FGL_J0126.8+2412_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578778/ft2_4FGL_J0126.8+2412_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578778/ft1_4FGL_J0126.8+2412_daily_bin1400.fits outfile=/scratch/kocevski/578778/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1400.fits ra=21.7036 dec=24.21 rad=12.0 tmin=602208001.0 tmax=602467201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.12
user 4.99
sys 0.98

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578778/ft1_filtered_4FGL_J0126.8+2412_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/578778/ft2_4FGL_J0126.8+2412_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/578778/ltcube_602208001_602467201_4FGL_J0126.8+2412_daily_bin1400.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/578778/ft2_4FGL_J0126.8+2412_daily_bin1400.fits
.....................!
real 13.07
user 11.73
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578778/ft1_filtered_4FGL_J0126.8+2412_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/578778/ft2_4FGL_J0126.8+2412_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/578778/ltcube_602208001_602467201_4FGL_J0126.8+2412_daily_bin1400.fits outfile=/scratch/kocevski/578778/expmap_602208001_602467201_4FGL_J0126.8+2412_daily_bin1400.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/578778/ltcube_602208001_602467201_4FGL_J0126.8+2412_daily_bin1400.fits
.....................!
real 193.57
user 185.91
sys 6.87

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/578778/ft1_filtered_4FGL_J0126.8+2412_daily_bin1400.fits scfile=/scratch/kocevski/578778/ft2_4FGL_J0126.8+2412_daily_bin1400.fits outfile=/scratch/kocevski/578778/cmap_602208001_602467201_4FGL_J0126.8+2412_daily_bin1400.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.32
user 0.38
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578778/ft1_filtered_4FGL_J0126.8+2412_daily_bin1400.fits scfile=/scratch/kocevski/578778/ft2_4FGL_J0126.8+2412_daily_bin1400.fits outfile=/scratch/kocevski/578778/cmap_HighResolution_602208001_602467201_4FGL_J0126.8+2412_daily_bin1400.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.32
user 0.38
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7033       1.0000         .10000E-03   10000.    
     5 'norm      '    .29412       1.0000         .10000E-03   10000.    
     6 'norm      '    .11442E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17782E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4998       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3164       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2114       1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.087       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6492       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.383       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .68736E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2751       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0917       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91645       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=   5942.202     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2451 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5878        .11541E-06** at limit **
   2  Prefactor     5.1373        16.487       -.10585E-05   -.57756E-05
   3  Prefactor     .10000E-03    12.319        .18129E-06** at limit **
   4  Prefactor     3.7115        47.799       -.24388E-05   -.49047E-05
   5  norm          .29435        .45904        .36520E-06    .16192E-02
   6  norm          .10000E-03    1.2915        .10533E-06** at limit **
   7  Prefactor     .10002E-03    183.11        .18435E-04** at limit **
   8  Prefactor     .10000E-03    57.261        .57773E-06** at limit **
   9  Prefactor     7.4959        6.8571       -.60723E-06   -.60038E-04
  10  Prefactor     9.3054        9.5529       -.16105E-06   -.79418E-04
  11  Prefactor     5.2216        14.915       -.30465E-06   -.27518E-03
  12  Prefactor     69.070        46.054        .87798E-07   -.12686E-03
  13  Prefactor     .10001E-03    134.29       -.10224E-05** at limit **
  14  norm          3.6488        1.0937        .16371E-07    .14216E-03
  15  Prefactor     11.380        16.129       -.49762E-06    .37734E-04
  16  Prefactor     .10000E-03    15.844        .16652E-06** at limit **
  17  norm          .10000E-03    1.6385        .10947E-06** at limit **
  18  Prefactor     .10004E-03    625.91       -.43478E-06** at limit **
  19  Prefactor     1.2790        15.220       -.50001E-05    .33385E-04
  20  Prefactor     .10001E-03    9.7847       -.24681E-05** at limit **
  21  Normalizat    1.0913        .23187        .68740E-06   -.88442E-04
  22  Prefactor     .91650        .13586       -.62197E-06    .41154E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.13729
  Prefactor  = 0.0001
  Prefactor  = 3.71148
  norm       = 0.294348
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 7.49592
  Prefactor  = 9.30537
  Prefactor  = 5.22162
  Prefactor  = 69.0695
  Prefactor  = 0.000100005
  norm       = 3.64883
  Prefactor  = 11.3803
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 1.27902
  Prefactor  = 0.000100011
  Normalizat = 1.09134
  Prefactor  = 0.916498
 **********
 **   18 **HESSE 
 **********

 FCN=   5942.202     FROM HESSE     STATUS=OK           358 CALLS     2809 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1373        16.517        .17754E-03   -1.5255    
   3  Prefactor     .10000E-03    12.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7115        47.478        .20986E-03   -1.5323    
   5  norm          .29435        .45285        .71958E-03   -1.5599    
   6  norm          .10000E-03    2.6771        .16285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    17.106        .81319E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    57.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4959        6.8436        .14644E-03   -1.5160    
  10  Prefactor     9.3054        9.3341        .13130E-03   -1.5098    
  11  Prefactor     5.2216        14.818        .17609E-03   -1.5251    
  12  Prefactor     69.070        46.013        .48292E-04   -1.4044    
  13  Prefactor     .10001E-03    134.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6488        1.0934        .42176E-04   -1.5326    
  15  Prefactor     11.380        16.096        .11874E-03   -1.5033    
  16  Prefactor     .10000E-03    15.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6510        .96500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    626.87        .18729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2790        15.331        .39359E-03   -1.5482    
  20  Prefactor     .10001E-03    61.760        .35657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0913        .27205        .30618E-03   -.90030    
  22  Prefactor     .91650        .15869        .20275E-03   -.95567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0697e-09
Minuit parameter uncertainties:
  1  1.89779e-05
  2  16.5314
  3  6.00119e-06
  4  26.5748
  5  0.452858
  6  3.0063e-05
  7  0.00120278
  8  0.000331975
  9  6.84427
  10  9.33558
  11  14.8282
  12  46.0366
  13  0.00171995
  14  1.09338
  15  16.1016
  16  0.000100632
  17  2.14637e-05
  18  0.00955785
  19  8.85872
  20  0.00166423
  21  0.272396
  22  0.158771
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  5.222e+00  1.483e+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.165e-01  1.588e-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:  1.091e+00  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/578778/likelihoodResults_602208001_602467201_4FGL_J0126.8+2412_daily_bin1400.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) = 5942.01498658
delta logL = 0.186810576549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5941.99719145
delta logL = 0.204605710484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5848       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9834       1.0000          .0000       10.000    
     3 'Normalizat'    1.1066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90676       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=   5941.997     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5891        14.245        .54747E-05   -.35512E-03
   2  Index         1.9836        .95907        .46296E-04    .35055E-04
   3  Normalizat    1.1066        .21466       -.67496E-06   -.24065E-03
   4  Prefactor     .90675        .13238       -.43483E-06   -.40027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.58913
  Index      = 1.98358
  Normalizat = 1.10662
  Prefactor  = 0.906749
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.997     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5891        13.736        .14561E-03   -1.5157    
   2  Index         1.9836        .92757        .11667E-01   -.64761    
   3  Normalizat    1.1066        .25312        .30434E-03   -.89540    
   4  Prefactor     .90675        .15620        .20363E-03   -.95906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25294e-10
Minuit parameter uncertainties:
  1  13.7417
  2  0.936143
  3  0.2534
  4  0.156273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578778': 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) = 5941.99719139
delta logL = 0.204605763917

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  7.589e+00  1.374e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  1.984e+00  9.361e-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:  9.067e-01  1.563e-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:  1.107e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 21.704 24.210

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/578778/cmap_HighResolution_602208001_602467201_4FGL_J0126.8+2412_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2021-08-14 01:11:41.232550', job_id='578778', GAL2='0.91', fit_tolerance='1e-08', EG2='1.11', EG='1.09', time_epoch_completed='1628928701.23', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.05e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1400' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:11:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 578778: <4FGL_J0126.8+2412_daily_bin1400> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1400> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 00:55:25 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:57:23 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:57:23 2021
Terminated at Sat Aug 14 01:11:42 2021
Results reported at Sat Aug 14 01:11:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1400 21.7036 24.21 602208001 602467201 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 :                                   648.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            977 sec.

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

