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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin284
RA = 21.7036, Dec = 24.21
tmin = 312940801, tmax = 313200001
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='573734', job_status='RUN', time_executed='2021-08-14 00:42:16.944966', time_epoch_executed='1628926936.94' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573734

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573734/ft1_4FGL_J0126.8+2412_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573734/ft2_4FGL_J0126.8+2412_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573734/ft1_4FGL_J0126.8+2412_daily_bin284.fits outfile=/scratch/kocevski/573734/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin284.fits ra=21.7036 dec=24.21 rad=12.0 tmin=312940801.0 tmax=313200001.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.08
user 3.25
sys 1.78

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573734/ft1_filtered_4FGL_J0126.8+2412_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/573734/ft2_4FGL_J0126.8+2412_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/573734/ltcube_312940801_313200001_4FGL_J0126.8+2412_daily_bin284.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/573734/ft2_4FGL_J0126.8+2412_daily_bin284.fits
.....................!
real 15.59
user 13.08
sys 2.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573734/ft1_filtered_4FGL_J0126.8+2412_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/573734/ft2_4FGL_J0126.8+2412_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/573734/ltcube_312940801_313200001_4FGL_J0126.8+2412_daily_bin284.fits outfile=/scratch/kocevski/573734/expmap_312940801_313200001_4FGL_J0126.8+2412_daily_bin284.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/573734/ltcube_312940801_313200001_4FGL_J0126.8+2412_daily_bin284.fits
.....................!
real 194.03
user 185.43
sys 7.59

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/573734/ft1_filtered_4FGL_J0126.8+2412_daily_bin284.fits scfile=/scratch/kocevski/573734/ft2_4FGL_J0126.8+2412_daily_bin284.fits outfile=/scratch/kocevski/573734/cmap_312940801_313200001_4FGL_J0126.8+2412_daily_bin284.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.11
user 0.38
sys 1.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573734/ft1_filtered_4FGL_J0126.8+2412_daily_bin284.fits scfile=/scratch/kocevski/573734/ft2_4FGL_J0126.8+2412_daily_bin284.fits outfile=/scratch/kocevski/573734/cmap_HighResolution_312940801_313200001_4FGL_J0126.8+2412_daily_bin284.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.06
user 0.38
sys 1.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .63218       1.0000         .10000E-03   10000.    
     6 'norm      '    .72582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.320       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.001       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.312       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5216       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.723       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5234       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74569       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99867       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=   7796.045     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2055 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10091E-03    5.2860       -.22331E-05** at limit **
   2  Prefactor     6.4756        12.758        .78720E-06    .24099E-03
   3  Prefactor     .59067        6.4399       -.27128E-05    .28280E-03
   4  Prefactor     .10000E-03    24.380       -.13618E-05** at limit **
   5  norm          .63231        .52873       -.62043E-07   -.10444E-02
   6  norm          .72745        1.1772       -.53189E-07   -.54595E-03
   7  Prefactor     15.322        11.352        .72410E-07    .10395E-05
   8  Prefactor     .10000E-03    24.087       -.26389E-05** at limit **
   9  Prefactor     .10000E-03    3.0448        .25970E-07** at limit **
  10  Prefactor     9.9972        8.9627       -.29873E-06    .53911E-04
  11  Prefactor     10.315        11.322       -.59850E-07   -.20598E-04
  12  Prefactor     29.795        28.741        .16725E-05    .51414E-05
  13  Prefactor     .10000E-03    43.458       -.34592E-06** at limit **
  14  norm          1.5216        .68024       -.13088E-07   -.19269E-03
  15  Prefactor     16.849        12.808       -.42787E-07   -.43526E-04
  16  Prefactor     .10000E-03    7.8257       -.12264E-06** at limit **
  17  norm          15.723        5.4469       -.23917E-06   -.25080E-04
  18  Prefactor     .10000E-03    39.057        .22127E-04** at limit **
  19  Prefactor     .10000E-03    6.5462       -.21982E-07** at limit **
  20  Prefactor     3.5234        5.2278        .33156E-06   -.46961E-03
  21  Normalizat    .74551        .18758        .16476E-06    .24926E-03
  22  Prefactor     .99873        .11176        .19518E-06    .40983E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100908
  Prefactor  = 6.47562
  Prefactor  = 0.590675
  Prefactor  = 0.0001
  norm       = 0.632307
  norm       = 0.727451
  Prefactor  = 15.3217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.99717
  Prefactor  = 10.3145
  Prefactor  = 29.7948
  Prefactor  = 0.0001
  norm       = 1.52163
  Prefactor  = 16.849
  Prefactor  = 0.0001
  norm       = 15.7233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.52344
  Normalizat = 0.745512
  Prefactor  = 0.998728
 **********
 **   18 **HESSE 
 **********

 FCN=   7796.045     FROM HESSE     STATUS=OK           354 CALLS     2409 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10091E-03    45.083        .36108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4756        12.355        .15764E-03   -1.5199    
   3  Prefactor     .59067        23.618        .42071E-02   -1.5554    
   4  Prefactor     .10000E-03    24.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .63231        .49790        .56040E-03   -1.5549    
   6  norm          .72745        .97402        .10825E-02   -1.5537    
   7  Prefactor     15.322        11.364        .10233E-03   -1.4925    
   8  Prefactor     .10000E-03    24.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1422        .30069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9972        8.6883        .12671E-03   -1.5075    
  11  Prefactor     10.315        11.314        .12478E-03   -1.5066    
  12  Prefactor     29.795        28.730        .73403E-04   -1.4616    
  13  Prefactor     .10000E-03    43.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5216        .67794        .46647E-04   -1.5461    
  15  Prefactor     16.849        12.802        .97581E-04   -1.4887    
  16  Prefactor     .10000E-03    7.8291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.723        5.4443        .10101E-03   -1.4915    
  18  Prefactor     .10000E-03    39.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5234        5.1954        .21536E-03   -1.5333    
  21  Normalizat    .74551        .21658        .33176E-03   -1.0212    
  22  Prefactor     .99873        .13096        .18543E-03   -.92772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03089e-08
Minuit parameter uncertainties:
  1  0.0128085
  2  12.3597
  3  7.47266
  4  1.07781e-05
  5  0.4979
  6  0.974037
  7  11.3656
  8  9.53228e-06
  9  8.75922e-07
  10  8.68939
  11  11.3158
  12  28.7429
  13  8.26263e-06
  14  0.677939
  15  12.8043
  16  1.25306e-06
  17  5.44443
  18  3.98891e-06
  19  1.06511e-05
  20  5.19607
  21  0.216825
  22  0.131005
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.031e+01  1.132e+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.987e-01  1.310e-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:  7.455e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 9.85e-06 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/573734/likelihoodResults_312940801_313200001_4FGL_J0126.8+2412_daily_bin284.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) = 7795.54570694
delta logL = 0.499636397722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7795.52178744
delta logL = 0.523555891147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7482       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9120       1.0000          .0000       10.000    
     3 'Normalizat'    .69160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0211       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=   7795.522     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      248 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7440        77.103        .41882E-02    .37407E-03
   2  Index         3.9125        3.9582        .20660        .10875E-03
   3  Normalizat    .69163        .56070E-01    .77531E-01   -.70508E-04
   4  Prefactor     1.0211        .35357E-01    .42032E-01   -.23232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.74402
  Index      = 3.91253
  Normalizat = 0.691628
  Prefactor  = 1.0211
 **********
 **   18 **HESSE 
 **********

 FCN=   7795.522     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7440        14.410        .14618E-03   -1.5229    
   2  Index         3.9125        2.0143        .78536E-02   -.21925    
   3  Normalizat    .69163        .21074        .34326E-03   -1.0422    
   4  Prefactor     1.0211        .13226        .18354E-03   -.92029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85042e-08
Minuit parameter uncertainties:
  1  14.4191
  2  2.07635
  3  0.21099
  4  0.1323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573734': 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) = 7795.52178733
delta logL = 0.523556002068

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  5.744e+00  1.442e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  3.913e+00  2.076e+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.021e+00  1.323e-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:  6.916e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 21.704 24.210
Photon Index (Free Index): 3.91 +/- 2.08
Photon Flux (Free Index): 8.65e-08 +/- 6.56e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.04e-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/573734/cmap_HighResolution_312940801_313200001_4FGL_J0126.8+2412_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='1.32e-05', photon_flux_error='4.69e-08', dlogl='5.24e-01', energy_flux='9.85e-06', photon_flux2='8.65e-08', job_status='DONE', time_completed='2021-08-14 00:54:06.568913', photon_index_error2='2.08', photon_index2='3.91', ts='1.21', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.04e-05', EG='0.75', time_epoch_completed='1628927646.57', return_code='0', job_id='573734', GAL2='1.02', EG2='0.69', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='6.56e-08', ts2='2.39', photon_index='2.76' WHERE bin_id='284' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:54:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 573734: <4FGL_J0126.8+2412_daily_bin284> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin284> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:22 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:40:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 00:40:40 2021
Terminated at Sat Aug 14 00:54:07 2021
Results reported at Sat Aug 14 00:54:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin284 21.7036 24.21 312940801 313200001 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 :                                   730.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            825 sec.

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

