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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin905
RA = 21.7036, Dec = 24.21
tmin = 473904001, tmax = 474163201
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='575816', job_status='RUN', time_executed='2021-08-14 00:49:44.463000', time_epoch_executed='1628927384.46' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575816

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575816/ft1_4FGL_J0126.8+2412_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575816/ft2_4FGL_J0126.8+2412_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575816/ft1_4FGL_J0126.8+2412_daily_bin905.fits outfile=/scratch/kocevski/575816/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin905.fits ra=21.7036 dec=24.21 rad=12.0 tmin=473904001.0 tmax=474163201.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.49
user 3.97
sys 1.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575816/ft2_4FGL_J0126.8+2412_daily_bin905.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/575816/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/575816/ft1_filtered_4FGL_J0126.8+2412_daily_bin905.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.77
user 0.32
sys 1.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575816/ft1_filtered_4FGL_J0126.8+2412_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/575816/ft2_4FGL_J0126.8+2412_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/575816/ltcube_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.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/575816/ft2_4FGL_J0126.8+2412_daily_bin905.fits
.....................!
real 13.52
user 11.82
sys 1.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575816/ft1_filtered_4FGL_J0126.8+2412_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/575816/ft2_4FGL_J0126.8+2412_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/575816/ltcube_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.fits outfile=/scratch/kocevski/575816/expmap_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.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/575816/ltcube_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.fits
.....................!
real 157.89
user 152.10
sys 5.32

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/575816/ft1_filtered_4FGL_J0126.8+2412_daily_bin905.fits scfile=/scratch/kocevski/575816/ft2_4FGL_J0126.8+2412_daily_bin905.fits outfile=/scratch/kocevski/575816/cmap_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.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.70
user 0.32
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575816/ft1_filtered_4FGL_J0126.8+2412_daily_bin905.fits scfile=/scratch/kocevski/575816/ft2_4FGL_J0126.8+2412_daily_bin905.fits outfile=/scratch/kocevski/575816/cmap_HighResolution_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.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.69
user 0.33
sys 1.36

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575816/ft1_filtered_4FGL_J0126.8+2412_daily_bin905.fits', '/scratch/kocevski/575816/ft2_4FGL_J0126.8+2412_daily_bin905.fits', expMap='/scratch/kocevski/575816/expmap_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.fits', expCube='/scratch/kocevski/575816/ltcube_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575816/Model_4FGL_J0126.8+2412_daily_bin905.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/575816/ft1_filtered_4FGL_J0126.8+2412_daily_bin905.fits
Spacecraft file(s): /scratch/kocevski/575816/ft2_4FGL_J0126.8+2412_daily_bin905.fits
Exposure map: /scratch/kocevski/575816/expmap_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.fits
Exposure cube: /scratch/kocevski/575816/ltcube_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575816/Model_4FGL_J0126.8+2412_daily_bin905.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8899.60106547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2134       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13310E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6131       1.0000         .10000E-03   10000.    
     6 'norm      '    4.0879       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.701       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.316       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72066E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21804       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.175       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10667E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20789E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98651       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0197       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=   8898.386     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2165 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.713        13.217       -.32634E-07   -.21653E-04
   2  Prefactor     9.2169        19.456        .60119E-06   -.35068E-05
   3  Prefactor     .10006E-03    6.5448        .25672E-06** at limit **
   4  Prefactor     .10000E-03    18.144        .61194E-08** at limit **
   5  norm          2.6134        .83299        .27277E-07   -.92981E-05
   6  norm          4.0882        1.7015        .56326E-06    .85611E-03
   7  Prefactor     .10000E-03    4.1813        .37258E-07** at limit **
   8  Prefactor     .10000E-03    20.967        .28610E-07** at limit **
   9  Prefactor     4.7604        4.0792        .23610E-06    .57150E-04
  10  Prefactor     .65949        3.5597       -.56379E-06    .22169E-03
  11  Prefactor     12.673        15.092       -.99926E-06   -.37399E-04
  12  Prefactor     10.285        25.967       -.32313E-06   -.41542E-04
  13  Prefactor     .10005E-03    983.85       -.11902E-04** at limit **
  14  norm          .21738        .49003       -.10604E-06    .11526E-02
  15  Prefactor     12.172        9.3932       -.35195E-08   -.92180E-05
  16  Prefactor     .10000E-03    5.2702        .13148E-07** at limit **
  17  norm          .10000E-03    1.4907        .24012E-06** at limit **
  18  Prefactor     .10000E-03    54.818        .15316E-06** at limit **
  19  Prefactor     .10035E-03    5.1302       -.79746E-06** at limit **
  20  Prefactor     .10000E-03    2.3561        .20853E-06** at limit **
  21  Normalizat    .98620        .19330       -.11064E-05    .36234E-04
  22  Prefactor     1.0198        .11109       -.30704E-06   -.46733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7135
  Prefactor  = 9.21688
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  norm       = 2.61339
  norm       = 4.08823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76036
  Prefactor  = 0.659486
  Prefactor  = 12.6728
  Prefactor  = 10.2851
  Prefactor  = 0.000100053
  norm       = 0.217376
  Prefactor  = 12.1722
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100353
  Prefactor  = 0.0001
  Normalizat = 0.986203
  Prefactor  = 1.01981
 **********
 **   18 **HESSE 
 **********

 FCN=   8898.386     FROM HESSE     STATUS=OK           366 CALLS     2531 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.713        13.187        .95140E-04   -1.4866    
   2  Prefactor     9.2169        19.483        .13204E-03   -1.5101    
   3  Prefactor     .10006E-03    82.231        .46022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6134        .83060        .45975E-04   -1.5385    
   6  norm          4.0882        1.6984        .36750E-03   -1.5304    
   7  Prefactor     .10000E-03    4.1870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7604        4.0801        .84708E-03   -1.5272    
  10  Prefactor     .65949        13.612        .31524E-02   -1.5546    
  11  Prefactor     12.673        15.082        .11240E-03   -1.4996    
  12  Prefactor     10.285        26.000        .12475E-03   -1.5066    
  13  Prefactor     .10005E-03    999.22        .41926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .21738        .60994        .90112E-03   -1.5615    
  15  Prefactor     12.172        9.3866        .11480E-03   -1.5010    
  16  Prefactor     .10000E-03    5.2723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.1392        .21705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10035E-03    5.8506        .61925E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4664        .28073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98620        .22402        .32161E-03   -.93494    
  22  Prefactor     1.0198        .13042        .19579E-03   -.92072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27306e-09
Minuit parameter uncertainties:
  1  13.1888
  2  19.4961
  3  0.00438908
  4  4.92322e-06
  5  0.830608
  6  1.69846
  7  3.46298e-06
  8  2.67391e-05
  9  4.08033
  10  5.99349
  11  15.0865
  12  26.0284
  13  0.0147797
  14  0.609956
  15  9.38777
  16  4.33417e-06
  17  9.27393e-05
  18  9.82346e-05
  19  0.0028761
  20  5.02867e-06
  21  0.224237
  22  0.130458
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.267e+01  1.509e+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.020e+00  1.305e-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.862e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
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/575816/likelihoodResults_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.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) = 8897.32778855
delta logL = 1.05771452698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8897.30041581
delta logL = 1.08508727378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0339       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1499       1.0000          .0000       10.000    
     3 'Normalizat'    .90743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0512       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=   8897.300     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      272 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0415        60.633        .40864E-02    .10101E-02
   2  Index         4.1488        3.4660        .19031        .21547E-03
   3  Normalizat    .90691        .58680E-01    .75349E-01    .48836E-03
   4  Prefactor     1.0515        .36486E-01    .39841E-01    .84561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.04152
  Index      = 4.1488
  Normalizat = 0.906915
  Prefactor  = 1.05146
 **********
 **   18 **HESSE 
 **********

 FCN=   8897.300     FROM HESSE     STATUS=OK            31 CALLS      303 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0415        13.489        .13571E-03   -1.5216    
   2  Index         4.1488        1.6311        .67880E-02   -.17107    
   3  Normalizat    .90691        .21695        .33347E-03   -.96218    
   4  Prefactor     1.0515        .13045        .19306E-03   -.91033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20273e-10
Minuit parameter uncertainties:
  1  13.4955
  2  1.66245
  3  0.217163
  4  0.130485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575816': 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) = 8897.3004119
delta logL = 1.08509117833

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.051e+00  1.305e-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.069e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 21.704 24.210
Photon Index (Free Index): 4.15 +/- 1.66
Photon Flux (Free Index): 1.22e-07 +/- 7.91e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.29e-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/575816/cmap_HighResolution_473904001_474163201_4FGL_J0126.8+2412_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', energy_flux2='1.78e-05', dlogl='1.09e+00', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-08-14 01:00:40.357340', photon_index_error2='1.66', photon_index2='4.15', ts='0.86', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.29e-05', EG='0.99', time_epoch_completed='1628928040.36', return_code='0', job_id='575816', GAL2='1.05', EG2='0.91', return_code2='0', photon_flux_error2='7.91e-08', ts2='3.30', photon_index='2.76' WHERE bin_id='905' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:00:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 575816: <4FGL_J0126.8+2412_daily_bin905> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin905> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 00:45:51 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:49:00 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:49:00 2021
Terminated at Sat Aug 14 01:00:41 2021
Results reported at Sat Aug 14 01:00:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin905 21.7036 24.21 473904001 474163201 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 :                                   671.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            890 sec.

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

