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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin806
RA = 21.7036, Dec = 24.21
tmin = 448243201, tmax = 448502401
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='575673', job_status='RUN', time_executed='2021-08-14 00:49:44.943481', time_epoch_executed='1628927384.94' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575673

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575673/ft1_4FGL_J0126.8+2412_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575673/ft2_4FGL_J0126.8+2412_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575673/ft1_4FGL_J0126.8+2412_daily_bin806.fits outfile=/scratch/kocevski/575673/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin806.fits ra=21.7036 dec=24.21 rad=12.0 tmin=448243201.0 tmax=448502401.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 14.35
user 4.95
sys 9.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575673/ft1_filtered_4FGL_J0126.8+2412_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/575673/ft2_4FGL_J0126.8+2412_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/575673/ltcube_448243201_448502401_4FGL_J0126.8+2412_daily_bin806.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/575673/ft2_4FGL_J0126.8+2412_daily_bin806.fits
.....................!
real 22.95
user 12.52
sys 10.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575673/ft1_filtered_4FGL_J0126.8+2412_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/575673/ft2_4FGL_J0126.8+2412_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/575673/ltcube_448243201_448502401_4FGL_J0126.8+2412_daily_bin806.fits outfile=/scratch/kocevski/575673/expmap_448243201_448502401_4FGL_J0126.8+2412_daily_bin806.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/575673/ltcube_448243201_448502401_4FGL_J0126.8+2412_daily_bin806.fits
.....................!
real 204.02
user 187.30
sys 16.03

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/575673/ft1_filtered_4FGL_J0126.8+2412_daily_bin806.fits scfile=/scratch/kocevski/575673/ft2_4FGL_J0126.8+2412_daily_bin806.fits outfile=/scratch/kocevski/575673/cmap_448243201_448502401_4FGL_J0126.8+2412_daily_bin806.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 9.39
user 0.39
sys 8.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575673/ft1_filtered_4FGL_J0126.8+2412_daily_bin806.fits scfile=/scratch/kocevski/575673/ft2_4FGL_J0126.8+2412_daily_bin806.fits outfile=/scratch/kocevski/575673/cmap_HighResolution_448243201_448502401_4FGL_J0126.8+2412_daily_bin806.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 9.36
user 0.41
sys 8.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1481       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3852       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1443       1.0000         .10000E-03   10000.    
     6 'norm      '    .26023       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.139       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7793       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.329       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.123       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.066       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9384       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3196       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5425       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64684       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=   4197.625     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2349 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3155       -.83124E-08** at limit **
   2  Prefactor     4.1477        31.803       -.80395E-07   -.37852E-04
   3  Prefactor     17.056        16.435       -.42768E-06    .38424E-04
   4  Prefactor     8.3500        49.432       -.86027E-04    .56881E-04
   5  norm          1.1444        1.0163        .21929E-05   -.11039E-02
   6  norm          .26381        1.3317       -.58459E-06   -.63268E-03
   7  Prefactor     10.140        13.353       -.38079E-06   -.22207E-04
   8  Prefactor     .10000E-03    25.214       -.54358E-06** at limit **
   9  Prefactor     7.7791        6.8660        .22251E-05    .97917E-04
  10  Prefactor     .10000E-03    6.2401        .21230E-07** at limit **
  11  Prefactor     11.320        17.883       -.25046E-05   -.64803E-04
  12  Prefactor     20.118        37.487       -.71798E-05   -.33840E-05
  13  Prefactor     49.079        122.04        .17151E-04    .23770E-05
  14  norm          1.2322        .80950       -.22012E-06   -.55170E-04
  15  Prefactor     4.9385        14.288       -.93384E-06   -.79251E-04
  16  Prefactor     .10000E-03    10.262        .33467E-08** at limit **
  17  norm          8.3226        5.5586        .11481E-05   -.33090E-04
  18  Prefactor     .10000E-03    49.787        .30139E-05** at limit **
  19  Prefactor     .10000E-03    9.0567       -.11706E-06** at limit **
  20  Prefactor     .10000E-03    1.9355       -.41489E-08** at limit **
  21  Normalizat    1.5422        .26840        .10643E-05    .54757E-04
  22  Prefactor     .64702        .15375        .76361E-06    .12876E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.14775
  Prefactor  = 17.0558
  Prefactor  = 8.34997
  norm       = 1.14436
  norm       = 0.263809
  Prefactor  = 10.1397
  Prefactor  = 0.0001
  Prefactor  = 7.77907
  Prefactor  = 0.0001
  Prefactor  = 11.3203
  Prefactor  = 20.1181
  Prefactor  = 49.0787
  norm       = 1.2322
  Prefactor  = 4.93846
  Prefactor  = 0.0001
  norm       = 8.32261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.5422
  Prefactor  = 0.647023
 **********
 **   18 **HESSE 
 **********

 FCN=   4197.625     FROM HESSE     STATUS=OK           346 CALLS     2695 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3170        .13144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1477        32.616        .19790E-03   -1.5301    
   3  Prefactor     17.056        16.392        .96969E-04   -1.4882    
   4  Prefactor     8.3500        49.416        .13844E-03   -1.5130    
   5  norm          1.1444        .99093        .53885E-04   -1.5494    
   6  norm          .26381        2.0425        .13935E-02   -1.5605    
   7  Prefactor     10.140        13.352        .12584E-03   -1.5071    
   8  Prefactor     .10000E-03    25.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7791        6.8580        .14377E-03   -1.5150    
  10  Prefactor     .10000E-03    6.3089        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.320        17.859        .11902E-03   -1.5035    
  12  Prefactor     20.118        37.486        .89287E-04   -1.4811    
  13  Prefactor     49.079        121.91        .57248E-04   -1.4306    
  14  norm          1.2322        .80811        .43905E-04   -1.5486    
  15  Prefactor     4.9385        14.317        .18098E-03   -1.5263    
  16  Prefactor     .10000E-03    10.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3226        5.5542        .12028E-03   -1.5131    
  18  Prefactor     .10000E-03    49.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.1253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9369        .88028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5422        .31545        .25559E-03   -.76599    
  22  Prefactor     .64702        .17972        .22942E-03   -1.0564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94919e-10
Minuit parameter uncertainties:
  1  6.78763e-07
  2  23.2794
  3  16.3968
  4  40.6765
  5  0.990942
  6  1.4679
  7  13.3564
  8  8.27172e-05
  9  6.85866
  10  2.79479e-06
  11  17.8679
  12  37.5299
  13  122.538
  14  0.808115
  15  14.3274
  16  9.42571e-06
  17  5.55457
  18  5.10929e-06
  19  7.02305e-05
  20  1.10488e-06
  21  0.315858
  22  0.179881
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.132e+01  1.787e+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:  6.470e-01  1.799e-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.542e+00  3.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/575673/likelihoodResults_448243201_448502401_4FGL_J0126.8+2412_daily_bin806.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) = 4197.51886923
delta logL = 0.105705317588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4197.50529767
delta logL = 0.119276873475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.856       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2556       1.0000          .0000       10.000    
     3 'Normalizat'    1.5604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63511       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=   4197.505     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      274 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.859        20.750        .10058E-03   -.88161E-05
   2  Index         2.2565        .85117        .99691E-02   -.62652E-04
   3  Normalizat    1.5607        .28920        .25435E-03    .19721E-04
   4  Prefactor     .63501        .17709        .23127E-03   -.17697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8592
  Index      = 2.25649
  Normalizat = 1.56067
  Prefactor  = 0.635006
 **********
 **   18 **HESSE 
 **********

 FCN=   4197.505     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.859        20.745        .40234E-05   -1.4911    
   2  Index         2.2565        .85100        .19938E-02   -.58081    
   3  Normalizat    1.5607        .28941        .50870E-04   -.76088    
   4  Prefactor     .63501        .17717        .92508E-05   -1.0613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67954e-12
Minuit parameter uncertainties:
  1  20.7541
  2  0.856987
  3  0.289718
  4  0.177326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575673': 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) = 4197.50529659
delta logL = 0.11927795857

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.586e+01  2.075e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.256e+00  8.570e-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:  6.350e-01  1.773e-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.561e+00  2.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
Ra Dec: 21.704 24.210

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/575673/cmap_HighResolution_448243201_448502401_4FGL_J0126.8+2412_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', job_status='DONE', photon_flux_upper_limit='2.03e-07', time_completed='2021-08-14 01:01:13.820377', job_id='575673', GAL2='0.64', fit_tolerance='1e-08', EG2='1.56', EG='1.54', time_epoch_completed='1628928073.82', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.19e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='806' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:01:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 575673: <4FGL_J0126.8+2412_daily_bin806> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin806 21.7036 24.21 448243201 448502401 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 :                                   825.42 sec.
    Max Memory :                                 1030 MB
    Average Memory :                             223.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            933 sec.

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

