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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin795
RA = 21.7036, Dec = 24.21
tmin = 445392001, tmax = 445651201
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='575657', job_status='RUN', time_executed='2021-08-14 00:48:31.907313', time_epoch_executed='1628927311.91' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='795'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575657/ft1_4FGL_J0126.8+2412_daily_bin795.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575657/ft2_4FGL_J0126.8+2412_daily_bin795.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575657/ft1_4FGL_J0126.8+2412_daily_bin795.fits outfile=/scratch/kocevski/575657/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin795.fits ra=21.7036 dec=24.21 rad=12.0 tmin=445392001.0 tmax=445651201.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 7.12
user 3.59
sys 3.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575657/ft1_filtered_4FGL_J0126.8+2412_daily_bin795.fits" evtable="EVENTS" scfile=/scratch/kocevski/575657/ft2_4FGL_J0126.8+2412_daily_bin795.fits sctable="SC_DATA" outfile=/scratch/kocevski/575657/ltcube_445392001_445651201_4FGL_J0126.8+2412_daily_bin795.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/575657/ft2_4FGL_J0126.8+2412_daily_bin795.fits
.....................!
real 17.69
user 13.57
sys 3.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575657/ft1_filtered_4FGL_J0126.8+2412_daily_bin795.fits evtable="EVENTS" scfile=/scratch/kocevski/575657/ft2_4FGL_J0126.8+2412_daily_bin795.fits sctable="SC_DATA" expcube=/scratch/kocevski/575657/ltcube_445392001_445651201_4FGL_J0126.8+2412_daily_bin795.fits outfile=/scratch/kocevski/575657/expmap_445392001_445651201_4FGL_J0126.8+2412_daily_bin795.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/575657/ltcube_445392001_445651201_4FGL_J0126.8+2412_daily_bin795.fits
.....................!
real 196.04
user 186.02
sys 9.40

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/575657/ft1_filtered_4FGL_J0126.8+2412_daily_bin795.fits scfile=/scratch/kocevski/575657/ft2_4FGL_J0126.8+2412_daily_bin795.fits outfile=/scratch/kocevski/575657/cmap_445392001_445651201_4FGL_J0126.8+2412_daily_bin795.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.88
user 0.37
sys 3.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575657/ft1_filtered_4FGL_J0126.8+2412_daily_bin795.fits scfile=/scratch/kocevski/575657/ft2_4FGL_J0126.8+2412_daily_bin795.fits outfile=/scratch/kocevski/575657/cmap_HighResolution_445392001_445651201_4FGL_J0126.8+2412_daily_bin795.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.68
user 0.38
sys 3.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8357       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .60520E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8327       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.952       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3308       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.082       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.132       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.855       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4770       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5819       1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.340       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0198       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2582       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.757       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88128       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85565       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=   6537.497     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2362 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8391        6.7262       -.93377E-07   -.13938E-03
   2  Prefactor     .10000E-03    6.0575        .52861E-06** at limit **
   3  Prefactor     5.8319        8.3465        .20750E-06   -.86324E-05
   4  Prefactor     33.964        40.354        .46857E-06    .26654E-04
   5  norm          1.3308        .72318       -.26358E-08   -.52547E-04
   6  norm          .10000E-03    .41250        .56584E-07** at limit **
   7  Prefactor     10.081        12.936        .23374E-06   -.20067E-05
   8  Prefactor     17.127        21.276        .49444E-07   -.17432E-04
   9  Prefactor     .10000E-03    1.6241        .61606E-07** at limit **
  10  Prefactor     .10000E-03    2.7467        .27691E-07** at limit **
  11  Prefactor     20.855        12.564        .12753E-06   -.85409E-05
  12  Prefactor     .10000E-03    14.840       -.24693E-06** at limit **
  13  Prefactor     9.3817        194.59       -.78550E-05   -.50197E-04
  14  norm          1.5821        .79861        .11437E-06   -.89626E-04
  15  Prefactor     42.502        12.492        .67682E-07   -.35994E-05
  16  Prefactor     10.338        17.699        .30682E-06   -.25466E-04
  17  norm          5.0195        3.7288       -.52153E-06   -.45500E-04
  18  Prefactor     .10000E-03    61.566        .11892E-07** at limit **
  19  Prefactor     6.2570        8.1743        .39173E-05   -.11168E-03
  20  Prefactor     10.756        5.8434       -.13843E-07   -.10669E-03
  21  Normalizat    .88132        .18920       -.19253E-05   -.10557E-04
  22  Prefactor     .85570        .11920        .56470E-06   -.16776E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.83911
  Prefactor  = 0.000100002
  Prefactor  = 5.83186
  Prefactor  = 33.9636
  norm       = 1.33085
  norm       = 0.0001
  Prefactor  = 10.0806
  Prefactor  = 17.1266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8552
  Prefactor  = 0.0001
  Prefactor  = 9.38169
  norm       = 1.58207
  Prefactor  = 42.502
  Prefactor  = 10.338
  norm       = 5.01953
  Prefactor  = 0.0001
  Prefactor  = 6.25698
  Prefactor  = 10.7557
  Normalizat = 0.881321
  Prefactor  = 0.855703
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.497     FROM HESSE     STATUS=OK           350 CALLS     2712 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8391        6.7159        .13484E-03   -1.5113    
   2  Prefactor     .10000E-03    31.209        .38041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8319        8.3401        .16629E-03   -1.5225    
   4  Prefactor     33.964        40.473        .68772E-04   -1.4542    
   5  norm          1.3308        .72599        .44740E-04   -1.5477    
   6  norm          .10000E-03    .42776        .10132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.081        12.941        .12620E-03   -1.5073    
   8  Prefactor     17.127        21.271        .96765E-04   -1.4880    
   9  Prefactor     .10000E-03    1.6293        .10059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7760        .13081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.855        12.560        .87707E-04   -1.4794    
  12  Prefactor     .10000E-03    14.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3817        202.76        .13018E-03   -1.5095    
  14  norm          1.5821        .79785        .45104E-04   -1.5456    
  15  Prefactor     42.502        12.489        .61490E-04   -1.4403    
  16  Prefactor     10.338        17.685        .62302E-03   -1.5065    
  17  norm          5.0195        3.7267        .12595E-03   -1.5260    
  18  Prefactor     .10000E-03    61.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.2570        8.1875        .80231E-03   -1.5208    
  20  Prefactor     10.756        5.8477        .12216E-03   -1.5052    
  21  Normalizat    .88132        .21790        .29332E-03   -.97120    
  22  Prefactor     .85570        .13936        .19348E-03   -.97707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30142e-10
Minuit parameter uncertainties:
  1  6.71648
  2  0.000477944
  3  8.3418
  4  40.5058
  5  0.725993
  6  6.58422e-07
  7  12.9446
  8  21.2809
  9  5.86631e-07
  10  2.74257e-06
  11  12.5616
  12  6.2965e-06
  13  87.5689
  14  0.797855
  15  12.4897
  16  17.6936
  17  3.72691
  18  2.21979e-06
  19  8.18896
  20  5.84802
  21  0.218122
  22  0.139417
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.086e+01  1.256e+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:  8.557e-01  1.394e-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:  8.813e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 8.65e-08 +/- 5.20e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.20e-05

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) = 6537.36039572
delta logL = 0.136741304639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6537.35282007
delta logL = 0.144316953546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.882       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4588       1.0000          .0000       10.000    
     3 'Normalizat'    .89964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84804       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=   6537.353     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.878        14.050        .83737E-04   -.11812E-04
   2  Index         2.4591        .54598        .79841E-02   -.51475E-05
   3  Normalizat    .89963        .21403        .29075E-03   -.91262E-04
   4  Prefactor     .84804        .13805        .19427E-03    .45647E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8784
  Index      = 2.45908
  Normalizat = 0.899632
  Prefactor  = 0.848041
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.353     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.878        14.027        .33495E-05   -1.4751    
   2  Index         2.4591        .54478        .31936E-03   -.53307    
   3  Normalizat    .89963        .21423        .11630E-04   -.96473    
   4  Prefactor     .84804        .13816        .77706E-05   -.97981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72809e-11
Minuit parameter uncertainties:
  1  14.0286
  2  0.546248
  3  0.214436
  4  0.138217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575657': 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) = 6537.35281993
delta logL = 0.144317092421

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.288e+01  1.403e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.459e+00  5.462e-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:  8.480e-01  1.382e-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:  8.996e-01  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 21.704 24.210
Photon Index (Free Index): 2.46 +/- 0.55
Photon Flux (Free Index): 7.17e-08 +/- 5.45e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/575657/cmap_HighResolution_445392001_445651201_4FGL_J0126.8+2412_daily_bin795.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.65e-08', energy_flux2='2.18e-05', photon_flux_error='5.20e-08', dlogl='1.44e-01', energy_flux='1.99e-05', photon_flux2='7.17e-08', job_status='DONE', time_completed='2021-08-14 00:59:27.512270', photon_index_error2='0.55', photon_index2='2.46', ts='4.79', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='0.88', time_epoch_completed='1628927967.51', return_code='0', job_id='575657', GAL2='0.85', EG2='0.90', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.45e-08', ts2='5.08', photon_index='2.76' WHERE bin_id='795' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:59:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 575657: <4FGL_J0126.8+2412_daily_bin795> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin795 21.7036 24.21 445392001 445651201 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 :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            827 sec.

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

