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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin484
RA = 21.7036, Dec = 24.21
tmin = 364780801, tmax = 365040001
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='574018', job_status='RUN', time_executed='2021-08-14 00:43:29.648618', time_epoch_executed='1628927009.65' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574018/ft1_4FGL_J0126.8+2412_daily_bin484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574018/ft2_4FGL_J0126.8+2412_daily_bin484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574018/ft1_4FGL_J0126.8+2412_daily_bin484.fits outfile=/scratch/kocevski/574018/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin484.fits ra=21.7036 dec=24.21 rad=12.0 tmin=364780801.0 tmax=365040001.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.39
user 3.09
sys 2.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574018/ft1_filtered_4FGL_J0126.8+2412_daily_bin484.fits" evtable="EVENTS" scfile=/scratch/kocevski/574018/ft2_4FGL_J0126.8+2412_daily_bin484.fits sctable="SC_DATA" outfile=/scratch/kocevski/574018/ltcube_364780801_365040001_4FGL_J0126.8+2412_daily_bin484.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/574018/ft2_4FGL_J0126.8+2412_daily_bin484.fits
.....................!
real 18.34
user 15.82
sys 2.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574018/ft1_filtered_4FGL_J0126.8+2412_daily_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/574018/ft2_4FGL_J0126.8+2412_daily_bin484.fits sctable="SC_DATA" expcube=/scratch/kocevski/574018/ltcube_364780801_365040001_4FGL_J0126.8+2412_daily_bin484.fits outfile=/scratch/kocevski/574018/expmap_364780801_365040001_4FGL_J0126.8+2412_daily_bin484.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/574018/ltcube_364780801_365040001_4FGL_J0126.8+2412_daily_bin484.fits
.....................!
real 193.56
user 185.62
sys 7.53

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/574018/ft1_filtered_4FGL_J0126.8+2412_daily_bin484.fits scfile=/scratch/kocevski/574018/ft2_4FGL_J0126.8+2412_daily_bin484.fits outfile=/scratch/kocevski/574018/cmap_364780801_365040001_4FGL_J0126.8+2412_daily_bin484.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 2.34
user 0.37
sys 1.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574018/ft1_filtered_4FGL_J0126.8+2412_daily_bin484.fits scfile=/scratch/kocevski/574018/ft2_4FGL_J0126.8+2412_daily_bin484.fits outfile=/scratch/kocevski/574018/cmap_HighResolution_364780801_365040001_4FGL_J0126.8+2412_daily_bin484.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 2.33
user 0.38
sys 1.94

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    21.664       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4541       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .25660       1.0000         .10000E-03   10000.    
     6 'norm      '    .92096       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .85803       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.342       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.866       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.648       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6518       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0759       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1117       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94260       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0319       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=   8801.289     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2359 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5480        .22953E-07** at limit **
   2  Prefactor     21.666        12.102        .12657E-06    .28910E-04
   3  Prefactor     1.4556        13.773       -.87727E-06   -.17108E-03
   4  Prefactor     .10000E-03    7.6279        .29347E-06** at limit **
   5  norm          .25663        .23361       -.23114E-07    .14006E-03
   6  norm          .92001        1.6064        .25977E-06   -.23874E-03
   7  Prefactor     13.392        10.056        .11466E-06    .30201E-04
   8  Prefactor     .10000E-03    25.728       -.29336E-06** at limit **
   9  Prefactor     .86210        2.5406        .52967E-06   -.35363E-03
  10  Prefactor     15.346        8.9811       -.89496E-06   -.44500E-03
  11  Prefactor     14.859        13.897        .16685E-06   -.48002E-04
  12  Prefactor     14.643        26.864       -.19032E-05   -.89047E-04
  13  Prefactor     .10000E-03    45.816        .28786E-05** at limit **
  14  norm          3.6517        .87329        .52576E-07    .28089E-03
  15  Prefactor     .10000E-03    7.0535        .17385E-06** at limit **
  16  Prefactor     .10000E-03    33.206        .91001E-06** at limit **
  17  norm          .10000E-03    1.1234       -.23413E-06** at limit **
  18  Prefactor     .10000E-03    49.488       -.27519E-05** at limit **
  19  Prefactor     7.0747        7.2192        .30295E-08   -.45024E-04
  20  Prefactor     1.1115        4.2957        .13195E-05   -.46947E-03
  21  Normalizat    .94258        .18303        .45377E-06   -.10776E-03
  22  Prefactor     1.0319        .11206       -.42755E-06   -.78880E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 21.6658
  Prefactor  = 1.45562
  Prefactor  = 0.0001
  norm       = 0.256626
  norm       = 0.920014
  Prefactor  = 13.3923
  Prefactor  = 0.0001
  Prefactor  = 0.862099
  Prefactor  = 15.3456
  Prefactor  = 14.8594
  Prefactor  = 14.6432
  Prefactor  = 0.000100001
  norm       = 3.65168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.07471
  Prefactor  = 1.11146
  Normalizat = 0.942578
  Prefactor  = 1.03195
 **********
 **   18 **HESSE 
 **********

 FCN=   8801.289     FROM HESSE     STATUS=OK           350 CALLS     2709 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5502        .14622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.666        12.135        .86056E-04   -1.4777    
   3  Prefactor     1.4556        14.893        .35712E-03   -1.5467    
   4  Prefactor     .10000E-03    7.6338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .25663        .25448        .41956E-03   -1.5607    
   6  norm          .92001        1.5505        .13498E-03   -1.5516    
   7  Prefactor     13.392        10.067        .10945E-03   -1.4976    
   8  Prefactor     .10000E-03    25.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .86210        2.7218        .24695E-02   -1.5522    
  10  Prefactor     15.346        9.0094        .10226E-03   -1.4924    
  11  Prefactor     14.859        13.727        .10388E-03   -1.4937    
  12  Prefactor     14.643        27.186        .10465E-03   -1.4942    
  13  Prefactor     .10000E-03    46.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6517        .87323        .41023E-04   -1.5326    
  15  Prefactor     .10000E-03    7.1305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1355        .97033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    49.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0747        7.2200        .15081E-03   -1.5176    
  20  Prefactor     1.1115        6.1888        .44259E-03   -1.5497    
  21  Normalizat    .94258        .20999        .32118E-03   -.94980    
  22  Prefactor     1.0319        .12904        .19665E-03   -.91672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90609e-08
Minuit parameter uncertainties:
  1  1.76753e-07
  2  12.1367
  3  9.31484
  4  1.5378e-05
  5  0.254481
  6  1.55056
  7  10.0682
  8  4.08e-05
  9  2.72215
  10  9.01015
  11  13.7303
  12  27.2087
  13  0.000402472
  14  0.873233
  15  9.66753e-06
  16  0.000100262
  17  4.71609e-06
  18  0.000407479
  19  7.22093
  20  5.24602
  21  0.210174
  22  0.129083
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.486e+01  1.373e+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.032e+00  1.291e-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.426e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 5.69e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/574018/likelihoodResults_364780801_365040001_4FGL_J0126.8+2412_daily_bin484.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) = 8801.11796502
delta logL = 0.171225749707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8801.0623102
delta logL = 0.226880569611

Fit tolerance = 1e-08

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

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

 FCN=   8801.062     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      283 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.232        16.603        .89034E-04   -.81721E-05
   2  Index         2.2314        .60592        .94765E-02   -.85680E-05
   3  Normalizat    .96950        .20046        .31719E-03   -.82794E-04
   4  Prefactor     1.0152        .12797        .19800E-03    .68098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2324
  Index      = 2.23143
  Normalizat = 0.969502
  Prefactor  = 1.01517
 **********
 **   18 **HESSE 
 **********

 FCN=   8801.062     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.232        16.617        .35614E-05   -1.4808    
   2  Index         2.2314        .60641        .37906E-03   -.58682    
   3  Normalizat    .96950        .20061        .12688E-04   -.94059    
   4  Prefactor     1.0152        .12799        .79199E-05   -.92225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79202e-11
Minuit parameter uncertainties:
  1  16.6205
  2  0.608575
  3  0.200763
  4  0.128026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574018': 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) = 8801.06230867
delta logL = 0.22688210623

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.023e+01  1.662e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.231e+00  6.086e-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.015e+00  1.280e-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.695e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 21.704 24.210
Photon Index (Free Index): 2.23 +/- 0.61
Photon Flux (Free Index): 5.27e-08 +/- 5.03e-08
Energy Flux (Free Index): 2.24e-05 +/- 2.25e-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/574018/cmap_HighResolution_364780801_365040001_4FGL_J0126.8+2412_daily_bin484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='2.24e-05', photon_flux_error='5.69e-08', dlogl='2.27e-01', energy_flux='1.42e-05', photon_flux2='5.27e-08', job_status='DONE', time_completed='2021-08-14 00:57:05.182310', photon_index_error2='0.61', photon_index2='2.23', ts='1.43', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='2.25e-05', EG='0.94', time_epoch_completed='1628927825.18', return_code='0', job_id='574018', GAL2='1.02', EG2='0.97', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.03e-08', ts2='1.88', photon_index='2.76' WHERE bin_id='484' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 574018: <4FGL_J0126.8+2412_daily_bin484> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin484 21.7036 24.21 364780801 365040001 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 :                                   835.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            987 sec.

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

