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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin478
RA = 21.7036, Dec = 24.21
tmin = 363225601, tmax = 363484801
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='574009', job_status='RUN', time_executed='2021-08-14 00:42:34.451228', time_epoch_executed='1628926954.45' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574009/ft1_4FGL_J0126.8+2412_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574009/ft2_4FGL_J0126.8+2412_daily_bin478.fits


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

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

Done.
real 5.57
user 5.31
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574009/ft1_filtered_4FGL_J0126.8+2412_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/574009/ft2_4FGL_J0126.8+2412_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/574009/ltcube_363225601_363484801_4FGL_J0126.8+2412_daily_bin478.fits outfile=/scratch/kocevski/574009/expmap_363225601_363484801_4FGL_J0126.8+2412_daily_bin478.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/574009/ltcube_363225601_363484801_4FGL_J0126.8+2412_daily_bin478.fits
.....................!
real 155.14
user 150.11
sys 4.77

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/574009/ft1_filtered_4FGL_J0126.8+2412_daily_bin478.fits scfile=/scratch/kocevski/574009/ft2_4FGL_J0126.8+2412_daily_bin478.fits outfile=/scratch/kocevski/574009/cmap_363225601_363484801_4FGL_J0126.8+2412_daily_bin478.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574009/ft1_filtered_4FGL_J0126.8+2412_daily_bin478.fits scfile=/scratch/kocevski/574009/ft2_4FGL_J0126.8+2412_daily_bin478.fits outfile=/scratch/kocevski/574009/cmap_HighResolution_363225601_363484801_4FGL_J0126.8+2412_daily_bin478.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.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.113       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.191       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3928       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92995       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.938       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.220       1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.257       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0414       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.735       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8638       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11560E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3264       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4653       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74327       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=   9109.250     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2353 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7707        .34111E-07** at limit **
   2  Prefactor     10.115        10.837       -.16126E-05    .15110E-03
   3  Prefactor     .10000E-03    3.8270       -.47100E-07** at limit **
   4  Prefactor     16.189        39.397       -.18881E-05    .18549E-04
   5  norm          1.3928        .71183        .18302E-07   -.21638E-03
   6  norm          .10000E-03    .45023       -.24776E-07** at limit **
   7  Prefactor     .10000E-03    9.3799       -.47204E-07** at limit **
   8  Prefactor     .10000E-03    18.301        .13598E-06** at limit **
   9  Prefactor     .10000E-03    1.4954       -.32676E-09** at limit **
  10  Prefactor     .93323        3.2385        .45454E-06   -.97777E-03
  11  Prefactor     12.938        11.450       -.43053E-07   -.73273E-04
  12  Prefactor     13.213        27.879        .41494E-05   -.10319E-03
  13  Prefactor     61.253        69.272       -.40655E-05    .55769E-04
  14  norm          1.0414        .52466        .62056E-07   -.35168E-03
  15  Prefactor     16.732        9.2792       -.58369E-06    .59996E-04
  16  Prefactor     .10000E-03    5.4163        .84244E-07** at limit **
  17  norm          1.8638        1.7621        .38133E-06    .40963E-03
  18  Prefactor     .10000E-03    206.51       -.16274E-05** at limit **
  19  Prefactor     2.3278        5.6960       -.46840E-05   -.29966E-03
  20  Prefactor     .10000E-03    2.7403       -.21252E-07** at limit **
  21  Normalizat    1.4652        .18064        .10043E-05   -.11301E-03
  22  Prefactor     .74324        .10354        .19920E-08    .38022E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.1148
  Prefactor  = 0.0001
  Prefactor  = 16.1889
  norm       = 1.39279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.933227
  Prefactor  = 12.938
  Prefactor  = 13.2129
  Prefactor  = 61.2526
  norm       = 1.04137
  Prefactor  = 16.7322
  Prefactor  = 0.0001
  norm       = 1.86379
  Prefactor  = 0.0001
  Prefactor  = 2.32782
  Prefactor  = 0.0001
  Normalizat = 1.46524
  Prefactor  = 0.743244
 **********
 **   18 **HESSE 
 **********

 FCN=   9109.250     FROM HESSE     STATUS=OK           344 CALLS     2697 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7714        .15515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.115        10.803        .12600E-03   -1.5072    
   3  Prefactor     .10000E-03    3.8333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.189        39.696        .99537E-04   -1.4903    
   5  norm          1.3928        .71455        .50872E-04   -1.5472    
   6  norm          .10000E-03    .46668        .12473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.4636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4990        .11393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .93323        10.808        .29286E-02   -1.5515    
  11  Prefactor     12.938        11.455        .11136E-03   -1.4988    
  12  Prefactor     13.213        27.528        .11016E-03   -1.4981    
  13  Prefactor     61.253        68.586        .51266E-04   -1.4141    
  14  norm          1.0414        .51610        .45894E-04   -1.5504    
  15  Prefactor     16.732        9.2988        .97904E-04   -1.4890    
  16  Prefactor     .10000E-03    5.4208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8638        1.7845        .11805E-03   -1.5435    
  18  Prefactor     .10000E-03    206.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3278        6.2046        .26889E-03   -1.5403    
  20  Prefactor     .10000E-03    2.7992        .15421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4652        .21199        .27124E-03   -.78760    
  22  Prefactor     .74324        .12034        .21920E-03   -1.0186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57856e-09
Minuit parameter uncertainties:
  1  1.342e-06
  2  10.8054
  3  1.75452e-06
  4  39.7612
  5  0.71455
  6  2.05772e-06
  7  6.39546e-06
  8  9.03173e-06
  9  5.83595e-07
  10  6.35284
  11  11.4573
  12  27.5541
  13  68.6749
  14  0.516105
  15  9.29965
  16  1.7913e-05
  17  1.78456
  18  0.000280579
  19  6.20628
  20  2.2097e-06
  21  0.212114
  22  0.120382
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.294e+01  1.146e+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:  7.432e-01  1.204e-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.465e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/574009/likelihoodResults_363225601_363484801_4FGL_J0126.8+2412_daily_bin478.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) = 9108.97027149
delta logL = 0.279689285853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9108.96327987
delta logL = 0.28668090843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.432       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1077       1.0000          .0000       10.000    
     3 'Normalizat'    1.4961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72883       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=   9108.963     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.434        11.184        .32847E-05   -.56980E-03
   2  Index         2.1079        .40318       -.45008E-05   -.45318E-03
   3  Normalizat    1.4961        .17123        .59670E-07    .73229E-04
   4  Prefactor     .72883        .10262       -.39977E-06    .76239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4337
  Index      = 2.10786
  Normalizat = 1.49611
  Prefactor  = 0.728834
 **********
 **   18 **HESSE 
 **********

 FCN=   9108.963     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.434        12.684        .10543E-03   -1.4948    
   2  Index         2.1079        .66671        .10093E-01   -.61680    
   3  Normalizat    1.4961        .19878        .26900E-03   -.77888    
   4  Prefactor     .72883        .11865        .22107E-03   -1.0241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33271e-09
Minuit parameter uncertainties:
  1  12.6863
  2  0.669719
  3  0.198889
  4  0.11869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574009': 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) = 9108.96327984
delta logL = 0.286680939167

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.443e+01  1.269e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.108e+00  6.697e-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:  7.288e-01  1.187e-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.496e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 21.704 24.210
Photon Index (Free Index): 2.11 +/- 0.67
Photon Flux (Free Index): 3.45e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.99e-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/574009/cmap_HighResolution_363225601_363484801_4FGL_J0126.8+2412_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='1.86e-05', photon_flux_error='4.75e-08', dlogl='2.87e-01', energy_flux='1.24e-05', photon_flux2='3.45e-08', job_status='DONE', time_completed='2021-08-14 00:53:38.606239', photon_index_error2='0.67', photon_index2='2.11', ts='1.79', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.99e-05', EG='1.47', time_epoch_completed='1628927618.61', return_code='0', job_id='574009', GAL2='0.73', EG2='1.50', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.83e-08', ts2='2.37', photon_index='2.76' WHERE bin_id='478' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:53:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 574009: <4FGL_J0126.8+2412_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin478 21.7036 24.21 363225601 363484801 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 :                                   658.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            781 sec.

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

