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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin785
RA = 21.7036, Dec = 24.21
tmin = 442800001, tmax = 443059201
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='575643', job_status='RUN', time_executed='2021-08-14 00:50:43.535445', time_epoch_executed='1628927443.54' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575643

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575643/ft1_4FGL_J0126.8+2412_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575643/ft2_4FGL_J0126.8+2412_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575643/ft1_4FGL_J0126.8+2412_daily_bin785.fits outfile=/scratch/kocevski/575643/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin785.fits ra=21.7036 dec=24.21 rad=12.0 tmin=442800001.0 tmax=443059201.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 2.89
user 2.67
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575643/ft2_4FGL_J0126.8+2412_daily_bin785.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/575643/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/575643/ft1_filtered_4FGL_J0126.8+2412_daily_bin785.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 0.43
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575643/ft1_filtered_4FGL_J0126.8+2412_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/575643/ft2_4FGL_J0126.8+2412_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/575643/ltcube_442800001_443059201_4FGL_J0126.8+2412_daily_bin785.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/575643/ft2_4FGL_J0126.8+2412_daily_bin785.fits
.....................!
real 10.10
user 9.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575643/ft1_filtered_4FGL_J0126.8+2412_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/575643/ft2_4FGL_J0126.8+2412_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/575643/ltcube_442800001_443059201_4FGL_J0126.8+2412_daily_bin785.fits outfile=/scratch/kocevski/575643/expmap_442800001_443059201_4FGL_J0126.8+2412_daily_bin785.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/575643/ltcube_442800001_443059201_4FGL_J0126.8+2412_daily_bin785.fits
.....................!
real 156.99
user 151.81
sys 4.21

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/575643/ft1_filtered_4FGL_J0126.8+2412_daily_bin785.fits scfile=/scratch/kocevski/575643/ft2_4FGL_J0126.8+2412_daily_bin785.fits outfile=/scratch/kocevski/575643/cmap_442800001_443059201_4FGL_J0126.8+2412_daily_bin785.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 0.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575643/ft1_filtered_4FGL_J0126.8+2412_daily_bin785.fits scfile=/scratch/kocevski/575643/ft2_4FGL_J0126.8+2412_daily_bin785.fits outfile=/scratch/kocevski/575643/cmap_HighResolution_442800001_443059201_4FGL_J0126.8+2412_daily_bin785.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 0.49
user 0.30
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.532       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5805       1.0000         .10000E-03   10000.    
     6 'norm      '    .16987       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9750       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21512E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18956E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .68393       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.452       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38858E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9408       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.929       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1157       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94228       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=   7685.332     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2416 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.532        8.3787       -.10910E-07    .13342E-04
   2  Prefactor     19.176        17.556       -.54183E-07    .94961E-04
   3  Prefactor     .10000E-03    12.650       -.73450E-06** at limit **
   4  Prefactor     .10000E-03    10.071        .58072E-07** at limit **
   5  norm          4.5805        1.0237        .11092E-07    .18626E-02
   6  norm          .17212        .85590        .50796E-06    .13734E-02
   7  Prefactor     6.9748        8.7460       -.11724E-06    .35999E-04
   8  Prefactor     .10000E-03    13.201        .90570E-08** at limit **
   9  Prefactor     .10000E-03    4.5002       -.26528E-06** at limit **
  10  Prefactor     .10002E-03    20.844       -.11206E-04** at limit **
  11  Prefactor     .10032E-03    23.803       -.10893E-04** at limit **
  12  Prefactor     .10000E-03    28.818       -.99701E-06** at limit **
  13  Prefactor     .10000E-03    42.297       -.14200E-05** at limit **
  14  norm          .68397        .61816       -.10131E-06    .28141E-03
  15  Prefactor     15.449        11.438        .14827E-07    .16847E-03
  16  Prefactor     .10000E-03    7.1089        .15056E-06** at limit **
  17  norm          1.8450        4.6259       -.94438E-07    .41935E-03
  18  Prefactor     .10011E-03    270.17        .20717E-04** at limit **
  19  Prefactor     8.9420        10.706       -.14198E-05    .47100E-03
  20  Prefactor     21.922        9.3082        .37331E-07    .35463E-04
  21  Normalizat    1.1159        .20903        .11513E-06    .62780E-03
  22  Prefactor     .94217        .12089        .77747E-06    .74515E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5318
  Prefactor  = 19.176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.58053
  norm       = 0.172124
  Prefactor  = 6.97479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100322
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.68397
  Prefactor  = 15.4494
  Prefactor  = 0.0001
  norm       = 1.84504
  Prefactor  = 0.00010011
  Prefactor  = 8.94201
  Prefactor  = 21.9216
  Normalizat = 1.11592
  Prefactor  = 0.942168
 **********
 **   18 **HESSE 
 **********

 FCN=   7685.332     FROM HESSE     STATUS=OK           346 CALLS     2762 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.532        8.3777        .11315E-03   -1.5000    
   2  Prefactor     19.176        17.604        .91456E-04   -1.4832    
   3  Prefactor     .10000E-03    12.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5805        1.0199        .18808E-04   -1.5280    
   6  norm          .17212        3.1259        .14299E-02   -1.5625    
   7  Prefactor     6.9748        8.7411        .15190E-03   -1.5180    
   8  Prefactor     .10000E-03    13.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    26.780        .40670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10032E-03    66.211        .45422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .68397        .58725        .62735E-03   -1.5543    
  15  Prefactor     15.449        11.433        .10189E-03   -1.4922    
  16  Prefactor     .10000E-03    7.1121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8450        4.5370        .25844E-03   -1.5436    
  18  Prefactor     .10011E-03    282.89        .21277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.9420        10.591        .67023E-03   -1.5110    
  20  Prefactor     21.922        9.3033        .85535E-04   -1.4771    
  21  Normalizat    1.1159        .23553        .31378E-03   -.89242    
  22  Prefactor     .94217        .14088        .20803E-03   -.94683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76561e-09
Minuit parameter uncertainties:
  1  8.37847
  2  17.6091
  3  8.12387e-05
  4  5.79673e-06
  5  1.01992
  6  1.4667
  7  8.74266
  8  2.10823e-06
  9  1.82928e-05
  10  0.00130523
  11  0.00924269
  12  0.000181594
  13  0.000298807
  14  0.587256
  15  11.4349
  16  2.35879e-05
  17  4.53786
  18  0.0112207
  19  10.593
  20  9.30396
  21  0.235756
  22  0.140938
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.003e-04  9.243e-03  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.422e-01  1.409e-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.116e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575643/likelihoodResults_442800001_443059201_4FGL_J0126.8+2412_daily_bin785.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) = 7685.33190083
delta logL = -7.05980182829e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7683.98625448
delta logL = 1.34557574579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76596E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.9586       1.0000          .0000       10.000    
     3 'Normalizat'    1.0002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98851       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=   7683.986     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      465 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77127E-02    .91896E-01    .92755E-03   -.16197E-01
   2  Index         8.9548        8.4861        .29577       -.27053E-04
   3  Normalizat    .99998        .57283E-01    .74303E-01   -.69451E-04
   4  Prefactor     .98861        .35428E-01    .46123E-01   -.62985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00771269
  Index      = 8.95479
  Normalizat = 0.999978
  Prefactor  = 0.988615
 **********
 **   18 **HESSE 
 **********

 FCN=   7683.986     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      498 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77127E-02    .19659        .52958E-05   -1.5691    
   2  Index         8.9548        9.4013        .13629E-01    .91237    
   3  Normalizat    .99998        .19544        .32878E-03   -.93031    
   4  Prefactor     .98861        .11845        .20359E-03   -.93110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.92572e-10
Minuit parameter uncertainties:
  1  0.0773721
  2  6.8403
  3  0.195581
  4  0.11848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575643': 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) = 7683.98625243
delta logL = 1.34557779946

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  7.713e-03  7.737e-02  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  8.955e+00  6.840e+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.886e-01  1.185e-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.000e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.91
Ra Dec: 21.704 24.210
Photon Index (Free Index): 8.95 +/- 6.84
Photon Flux (Free Index): 1.10e-07 +/- 7.79e-08
Energy Flux (Free Index): 1.25e-05 +/- 9.51e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/575643/cmap_HighResolution_442800001_443059201_4FGL_J0126.8+2412_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='1.35e+00', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-08-14 01:00:47.670126', photon_index_error2='6.84', photon_index2='8.95', ts='-0.00', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='9.51e-06', EG='1.12', time_epoch_completed='1628928047.67', return_code='0', job_id='575643', GAL2='0.99', EG2='1.00', return_code2='102', photon_flux_error2='7.79e-08', ts2='2.91', photon_index='2.76' WHERE bin_id='785' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:00:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 575643: <4FGL_J0126.8+2412_daily_bin785> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin785> 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) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:46: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:46:51 2021
Terminated at Sat Aug 14 01:00:48 2021
Results reported at Sat Aug 14 01:00:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin785 21.7036 24.21 442800001 443059201 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 :                                   600.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            907 sec.

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

