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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin375
RA = 21.7036, Dec = 24.21
tmin = 336528001, tmax = 336787201
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='573862', job_status='RUN', time_executed='2021-08-14 00:44:13.521772', time_epoch_executed='1628927053.52' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573862

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573862/ft1_4FGL_J0126.8+2412_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573862/ft2_4FGL_J0126.8+2412_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573862/ft1_4FGL_J0126.8+2412_daily_bin375.fits outfile=/scratch/kocevski/573862/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin375.fits ra=21.7036 dec=24.21 rad=12.0 tmin=336528001.0 tmax=336787201.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 10.96
user 5.55
sys 5.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573862/ft2_4FGL_J0126.8+2412_daily_bin375.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/573862/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/573862/ft1_filtered_4FGL_J0126.8+2412_daily_bin375.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 5.65
user 0.33
sys 5.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573862/ft1_filtered_4FGL_J0126.8+2412_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/573862/ft2_4FGL_J0126.8+2412_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/573862/ltcube_336528001_336787201_4FGL_J0126.8+2412_daily_bin375.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/573862/ft2_4FGL_J0126.8+2412_daily_bin375.fits
.....................!
real 18.20
user 12.03
sys 6.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573862/ft1_filtered_4FGL_J0126.8+2412_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/573862/ft2_4FGL_J0126.8+2412_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/573862/ltcube_336528001_336787201_4FGL_J0126.8+2412_daily_bin375.fits outfile=/scratch/kocevski/573862/expmap_336528001_336787201_4FGL_J0126.8+2412_daily_bin375.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/573862/ltcube_336528001_336787201_4FGL_J0126.8+2412_daily_bin375.fits
.....................!
real 197.05
user 184.07
sys 12.61

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/573862/ft1_filtered_4FGL_J0126.8+2412_daily_bin375.fits scfile=/scratch/kocevski/573862/ft2_4FGL_J0126.8+2412_daily_bin375.fits outfile=/scratch/kocevski/573862/cmap_336528001_336787201_4FGL_J0126.8+2412_daily_bin375.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 5.58
user 0.37
sys 5.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573862/ft1_filtered_4FGL_J0126.8+2412_daily_bin375.fits scfile=/scratch/kocevski/573862/ft2_4FGL_J0126.8+2412_daily_bin375.fits outfile=/scratch/kocevski/573862/cmap_HighResolution_336528001_336787201_4FGL_J0126.8+2412_daily_bin375.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 5.51
user 0.37
sys 5.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9881       1.0000         .10000E-03   10000.    
     6 'norm      '    .10899E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    75.993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5754       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0276       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9025       1.0000         .10000E-03   10000.    
    12 'Prefactor '    70.358       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2660       1.0000         .10000E-03   10000.    
    14 'norm      '    .28536       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.490       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.055       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91402       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89290       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=   5090.885     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2458 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8435       -.19416E-06** at limit **
   2  Prefactor     .10000E-03    3.8026        .19672E-06** at limit **
   3  Prefactor     21.368        23.231        .10762E-04    .13938E-03
   4  Prefactor     .10000E-03    13.413        .93163E-05** at limit **
   5  norm          1.9881        .83957       -.78416E-07   -.42223E-03
   6  norm          .10000E-03    .91477       -.39425E-06** at limit **
   7  Prefactor     .10000E-03    8.1779        .31295E-06** at limit **
   8  Prefactor     75.991        54.902       -.35670E-05   -.13900E-04
   9  Prefactor     3.5752        3.7145       -.31181E-06    .10948E-03
  10  Prefactor     2.0326        11.807       -.84989E-05   -.28505E-03
  11  Prefactor     2.9356        31.530        .18355E-04    .40395E-04
  12  Prefactor     70.331        50.916       -.28679E-04   -.44671E-04
  13  Prefactor     7.2565        469.47       -.38357E-04   -.10775E-04
  14  norm          .28531        .48480        .21374E-06    .11263E-02
  15  Prefactor     10.491        12.509        .23108E-05   -.33603E-04
  16  Prefactor     .10000E-03    13.112       -.93068E-05** at limit **
  17  norm          .10000E-03    2.2425        .15474E-07** at limit **
  18  Prefactor     .10000E-03    60.751        .96929E-06** at limit **
  19  Prefactor     16.060        12.238       -.17117E-05    .69607E-04
  20  Prefactor     .10000E-03    1.3257        .79295E-08** at limit **
  21  Normalizat    .91347        .23945        .11987E-05    .63327E-04
  22  Prefactor     .89319        .13600        .86295E-06    .99942E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3675
  Prefactor  = 0.0001
  norm       = 1.9881
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.9912
  Prefactor  = 3.57523
  Prefactor  = 2.03259
  Prefactor  = 2.93556
  Prefactor  = 70.3311
  Prefactor  = 7.25646
  norm       = 0.285307
  Prefactor  = 10.4909
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0596
  Prefactor  = 0.0001
  Normalizat = 0.913468
  Prefactor  = 0.893192
 **********
 **   18 **HESSE 
 **********

 FCN=   5090.885     FROM HESSE     STATUS=OK           344 CALLS     2802 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8493        .13662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8051        .13588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.368        22.880        .86675E-04   -1.4783    
   4  Prefactor     .10000E-03    13.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9881        .83877        .40470E-04   -1.5426    
   6  norm          .10000E-03    1.4026        .12463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     75.991        54.740        .46062E-04   -1.3962    
   9  Prefactor     3.5752        3.7135        .13436E-03   -1.5330    
  10  Prefactor     2.0326        11.373        .29055E-03   -1.5423    
  11  Prefactor     2.9356        30.413        .23850E-03   -1.5365    
  12  Prefactor     70.331        50.727        .23929E-03   -1.4029    
  13  Prefactor     7.2565        449.25        .14880E-03   -1.5169    
  14  norm          .28531        .42450        .61018E-03   -1.5601    
  15  Prefactor     10.491        12.496        .12371E-03   -1.5060    
  16  Prefactor     .10000E-03    13.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2498        .10422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    60.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.060        12.250        .99958E-04   -1.4906    
  20  Prefactor     .10000E-03    1.3262        .80230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91347        .28635        .30535E-03   -.95988    
  22  Prefactor     .89319        .16311        .19006E-03   -.96379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96864e-10
Minuit parameter uncertainties:
  1  2.34979e-06
  2  3.19745e-06
  3  22.8893
  4  8.58096e-06
  5  0.838771
  6  4.37913e-05
  7  1.02909e-05
  8  54.7765
  9  3.71375
  10  9.61837
  11  18.9097
  12  50.7581
  13  115.108
  14  0.424509
  15  12.4995
  16  2.43205e-05
  17  1.20929e-05
  18  1.69601e-06
  19  12.2524
  20  3.1771e-07
  21  0.286828
  22  0.163196
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.936e+00  1.891e+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.932e-01  1.632e-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.135e-01  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/573862/likelihoodResults_336528001_336787201_4FGL_J0126.8+2412_daily_bin375.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): 102
logL (Free Index) = 5090.3645391
delta logL = 0.520165120599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5090.22407261
delta logL = 0.660631612972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94621       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4682       1.0000          .0000       10.000    
     3 'Normalizat'    .80759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93638       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=   5090.224     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      227 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93109        12.499        .12974E-01    .60021E-03
   2  Index         5.4819        3.5867        .19984        .70881E-04
   3  Normalizat    .80750        .49380E-01    .72816E-01    .10701E-04
   4  Prefactor     .93626        .30654E-01    .45467E-01   -.63919E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.931092
  Index      = 5.48191
  Normalizat = 0.8075
  Prefactor  = 0.936262
 **********
 **   18 **HESSE 
 **********

 FCN=   5090.224     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93109        37.210        .60784E-04   -1.5515    
   2  Index         5.4819        7.7152        .69179E-02    .96532E-01
   3  Normalizat    .80750        .23168        .32225E-03   -.99791    
   4  Prefactor     .93626        .13859        .18597E-03   -.94885    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.59637e-07
Minuit parameter uncertainties:
  1  11.7794
  2  9.0126
  3  0.231964
  4  0.138638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573862': 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): 102
logL (Free Index) = 5090.22405888
delta logL = 0.660645337044

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  9.311e-01  1.178e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  5.482e+00  9.013e+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:  9.363e-01  1.386e-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.075e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 21.704 24.210
Photon Index (Free Index): 5.48 +/- 9.01
Photon Flux (Free Index): 1.05e-07 +/- 1.15e-07
Energy Flux (Free Index): 1.35e-05 +/- 2.02e-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/573862/cmap_HighResolution_336528001_336787201_4FGL_J0126.8+2412_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='6.61e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-08-14 00:55:56.952488', photon_index_error2='9.01', photon_index2='5.48', ts='0.03', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='2.02e-05', EG='0.91', time_epoch_completed='1628927756.95', return_code='0', job_id='573862', GAL2='0.94', EG2='0.81', return_code2='102', photon_flux_error2='1.15e-07', ts2='1.51', photon_index='2.76' WHERE bin_id='375' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:55:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 573862: <4FGL_J0126.8+2412_daily_bin375> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin375> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:30 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:41:38 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:41:38 2021
Terminated at Sat Aug 14 00:55:58 2021
Results reported at Sat Aug 14 00:55:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin375 21.7036 24.21 336528001 336787201 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 :                                   746.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            928 sec.

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

