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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin729
RA = 21.7036, Dec = 24.21
tmin = 428284801, tmax = 428544001
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='575560', job_status='RUN', time_executed='2021-08-14 00:47:26.602939', time_epoch_executed='1628927246.6' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575560

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575560/ft1_4FGL_J0126.8+2412_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575560/ft2_4FGL_J0126.8+2412_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575560/ft1_4FGL_J0126.8+2412_daily_bin729.fits outfile=/scratch/kocevski/575560/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin729.fits ra=21.7036 dec=24.21 rad=12.0 tmin=428284801.0 tmax=428544001.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 8.93
user 5.79
sys 3.04

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575560/ft1_filtered_4FGL_J0126.8+2412_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/575560/ft2_4FGL_J0126.8+2412_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/575560/ltcube_428284801_428544001_4FGL_J0126.8+2412_daily_bin729.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/575560/ft2_4FGL_J0126.8+2412_daily_bin729.fits
.....................!
real 16.36
user 12.62
sys 3.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575560/ft1_filtered_4FGL_J0126.8+2412_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/575560/ft2_4FGL_J0126.8+2412_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/575560/ltcube_428284801_428544001_4FGL_J0126.8+2412_daily_bin729.fits outfile=/scratch/kocevski/575560/expmap_428284801_428544001_4FGL_J0126.8+2412_daily_bin729.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/575560/ltcube_428284801_428544001_4FGL_J0126.8+2412_daily_bin729.fits
.....................!
real 195.67
user 185.93
sys 8.41

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/575560/ft1_filtered_4FGL_J0126.8+2412_daily_bin729.fits scfile=/scratch/kocevski/575560/ft2_4FGL_J0126.8+2412_daily_bin729.fits outfile=/scratch/kocevski/575560/cmap_428284801_428544001_4FGL_J0126.8+2412_daily_bin729.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 3.31
user 0.39
sys 2.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575560/ft1_filtered_4FGL_J0126.8+2412_daily_bin729.fits scfile=/scratch/kocevski/575560/ft2_4FGL_J0126.8+2412_daily_bin729.fits outfile=/scratch/kocevski/575560/cmap_HighResolution_428284801_428544001_4FGL_J0126.8+2412_daily_bin729.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 3.41
user 0.38
sys 2.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.649       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.849       1.0000         .10000E-03   10000.    
     5 'norm      '    .73066       1.0000         .10000E-03   10000.    
     6 'norm      '    .33876       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6451       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.162       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    97.655       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7592       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.047       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7751       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0905       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.445       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2915       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0831       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94257       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=   5291.961     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2346 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8925        .29528E-07** at limit **
   2  Prefactor     17.651        18.221        .25685E-06   -.12201E-04
   3  Prefactor     14.103        13.184       -.26678E-06   -.62017E-04
   4  Prefactor     21.843        29.902        .11043E-06   -.19117E-04
   5  norm          .73062        .69109        .10918E-06    .54613E-04
   6  norm          .33871        1.4829        .14541E-05   -.56775E-04
   7  Prefactor     .10000E-03    7.4168        .38514E-07** at limit **
   8  Prefactor     9.6912        68.153       -.44927E-06   -.68196E-06
   9  Prefactor     .10000E-03    4.0652        .14297E-05** at limit **
  10  Prefactor     .10000E-03    2.8514        .42151E-07** at limit **
  11  Prefactor     29.162        20.750       -.19136E-06   -.51201E-04
  12  Prefactor     3.8870        195.99       -.10809E-05   -.10331E-04
  13  Prefactor     97.653        140.71       -.34784E-06   -.70566E-05
  14  norm          1.7592        1.0199       -.92162E-09   -.30178E-04
  15  Prefactor     .10000E-03    10.391       -.10776E-05** at limit **
  16  Prefactor     15.046        18.106        .22931E-07   -.48665E-05
  17  norm          2.7749        4.8072        .43143E-06    .16707E-05
  18  Prefactor     5.0755        541.98        .23323E-06   -.74344E-06
  19  Prefactor     17.445        12.565       -.50636E-07   -.15052E-04
  20  Prefactor     4.2914        6.3224        .28541E-06    .33854E-05
  21  Normalizat    1.0831        .24150       -.16373E-05   -.75800E-04
  22  Prefactor     .94257        .14651        .33259E-07   -.17838E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 17.6506
  Prefactor  = 14.1027
  Prefactor  = 21.8429
  norm       = 0.73062
  norm       = 0.338712
  Prefactor  = 0.0001
  Prefactor  = 9.69124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.1622
  Prefactor  = 3.88695
  Prefactor  = 97.6531
  norm       = 1.75922
  Prefactor  = 0.0001
  Prefactor  = 15.0463
  norm       = 2.77493
  Prefactor  = 5.0755
  Prefactor  = 17.4447
  Prefactor  = 4.29141
  Normalizat = 1.08311
  Prefactor  = 0.942566
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.961     FROM HESSE     STATUS=OK           348 CALLS     2694 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8936        .14017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.651        18.302        .95336E-04   -1.4867    
   3  Prefactor     14.103        13.191        .10666E-03   -1.4957    
   4  Prefactor     21.843        29.867        .85692E-04   -1.4773    
   5  norm          .73062        .67840        .55932E-04   -1.5537    
   6  norm          .33871        1.5021        .16606E-03   -1.5592    
   7  Prefactor     .10000E-03    7.4316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6912        67.772        .12903E-03   -1.5085    
   9  Prefactor     .10000E-03    4.0860        .14314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8578        .11992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.162        20.715        .74191E-04   -1.4627    
  12  Prefactor     3.8870        199.12        .20303E-03   -1.5314    
  13  Prefactor     97.653        140.57        .40677E-04   -1.3728    
  14  norm          1.7592        1.0122        .49600E-04   -1.5443    
  15  Prefactor     .10000E-03    10.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.046        18.103        .10325E-03   -1.4932    
  17  norm          2.7749        4.7814        .19044E-03   -1.5375    
  18  Prefactor     5.0755        545.89        .17820E-03   -1.5257    
  19  Prefactor     17.445        12.523        .95892E-04   -1.4872    
  20  Prefactor     4.2914        6.3255        .19448E-03   -1.5294    
  21  Normalizat    1.0831        .28180        .31324E-03   -.90296    
  22  Prefactor     .94257        .17310        .20450E-03   -.94669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61137e-11
Minuit parameter uncertainties:
  1  1.45371e-07
  2  18.3082
  3  13.1937
  4  29.8873
  5  0.678407
  6  1.4264
  7  4.36891e-06
  8  51.3388
  9  1.42424e-06
  10  4.77237e-06
  11  20.7205
  12  55.8373
  13  141.056
  14  1.01218
  15  2.84573e-05
  16  18.11
  17  4.78202
  18  106.283
  19  12.5249
  20  6.32643
  21  0.282189
  22  0.173202
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.916e+01  2.072e+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.426e-01  1.732e-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.083e+00  2.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.10
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 8.58e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 1.98e-05

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

Saving results to:
/scratch/kocevski/575560/likelihoodResults_428284801_428544001_4FGL_J0126.8+2412_daily_bin729.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) = 5291.0917945
delta logL = 0.869536087683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5291.07052699
delta logL = 0.890803589289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.245       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9903       1.0000          .0000       10.000    
     3 'Normalizat'    1.1613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90489       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=   5291.071     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      208 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.245        20.993        .17641E-02   -.30368E-02
   2  Index         1.9904        .37660        .17113       -.61513E-04
   3  Normalizat    1.1613        .23193        .68735E-01    .90616E-05
   4  Prefactor     .90488        .14252        .45067E-01    .49057E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.2452
  Index      = 1.99035
  Normalizat = 1.16129
  Prefactor  = 0.904882
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.071     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.245        23.249        .70564E-04   -1.4572    
   2  Index         1.9904        .47636        .66288E-02   -.64591    
   3  Normalizat    1.1613        .27265        .30411E-03   -.87808    
   4  Prefactor     .90488        .16694        .20801E-03   -.95971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96265e-08
Minuit parameter uncertainties:
  1  23.2558
  2  0.4775
  3  0.272984
  4  0.167031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575560': 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) = 5291.07052696
delta logL = 0.890803619741

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  9.049e-01  1.670e-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.161e+00  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.92
Ra Dec: 21.704 24.210
Photon Index (Free Index): 1.99 +/- 0.48
Photon Flux (Free Index): 7.17e-08 +/- 6.23e-08
Energy Flux (Free Index): 5.08e-05 +/- 4.53e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-02', comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='5.08e-05', photon_flux_error='8.58e-08', dlogl='8.91e-01', energy_flux='2.78e-05', photon_flux2='7.17e-08', job_status='DONE', time_completed='2021-08-14 00:58:10.613025', photon_index_error2='0.48', photon_index2='1.99', ts='3.10', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='2.82e-07', energy_flux_error2='4.53e-05', EG='1.08', time_epoch_completed='1628927890.61', return_code='0', job_id='575560', GAL2='0.90', EG2='1.16', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='6.23e-08', ts2='4.92', photon_index='2.76' WHERE bin_id='729' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:58:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 575560: <4FGL_J0126.8+2412_daily_bin729> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin729 21.7036 24.21 428284801 428544001 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 :                                   682.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            758 sec.

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

