/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 41 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7462
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0126.8+2412_daily_bin703
RA = 21.7036, Dec = 24.21
tmin = 421545601, tmax = 421804801
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='575523', job_status='RUN', time_executed='2021-08-14 00:48:01.391845', time_epoch_executed='1628927281.39' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575523/ft1_4FGL_J0126.8+2412_daily_bin703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575523/ft2_4FGL_J0126.8+2412_daily_bin703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575523/ft1_4FGL_J0126.8+2412_daily_bin703.fits outfile=/scratch/kocevski/575523/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin703.fits ra=21.7036 dec=24.21 rad=12.0 tmin=421545601.0 tmax=421804801.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 9.87
user 3.36
sys 6.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575523/ft1_filtered_4FGL_J0126.8+2412_daily_bin703.fits" evtable="EVENTS" scfile=/scratch/kocevski/575523/ft2_4FGL_J0126.8+2412_daily_bin703.fits sctable="SC_DATA" outfile=/scratch/kocevski/575523/ltcube_421545601_421804801_4FGL_J0126.8+2412_daily_bin703.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/575523/ft2_4FGL_J0126.8+2412_daily_bin703.fits
.....................!
real 20.66
user 13.33
sys 7.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575523/ft1_filtered_4FGL_J0126.8+2412_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/575523/ft2_4FGL_J0126.8+2412_daily_bin703.fits sctable="SC_DATA" expcube=/scratch/kocevski/575523/ltcube_421545601_421804801_4FGL_J0126.8+2412_daily_bin703.fits outfile=/scratch/kocevski/575523/expmap_421545601_421804801_4FGL_J0126.8+2412_daily_bin703.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/575523/ltcube_421545601_421804801_4FGL_J0126.8+2412_daily_bin703.fits
.....................!
real 202.59
user 186.86
sys 13.06

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/575523/ft1_filtered_4FGL_J0126.8+2412_daily_bin703.fits scfile=/scratch/kocevski/575523/ft2_4FGL_J0126.8+2412_daily_bin703.fits outfile=/scratch/kocevski/575523/cmap_421545601_421804801_4FGL_J0126.8+2412_daily_bin703.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 6.55
user 0.38
sys 6.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575523/ft1_filtered_4FGL_J0126.8+2412_daily_bin703.fits scfile=/scratch/kocevski/575523/ft2_4FGL_J0126.8+2412_daily_bin703.fits outfile=/scratch/kocevski/575523/cmap_HighResolution_421545601_421804801_4FGL_J0126.8+2412_daily_bin703.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 6.52
user 0.39
sys 6.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.549       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49474       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8760       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2791       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0987       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.205       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6015       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.729       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.738       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.393       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5406       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7543       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.697       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6629       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81359       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1170       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=   7461.060     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2354 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.548        10.692       -.98560E-07    .80066E-04
   2  Prefactor     .10000E-03    7.2993       -.70368E-07** at limit **
   3  Prefactor     .48415        23.739        .15447E-04   -.40074E-04
   4  Prefactor     6.8662        32.845        .61648E-05   -.12880E-04
   5  norm          2.2791        .80080       -.93227E-08    .17449E-02
   6  norm          1.0989        1.1410        .49981E-07   -.46312E-04
   7  Prefactor     11.205        9.2840       -.20677E-07    .19383E-04
   8  Prefactor     .10000E-03    12.195        .10648E-06** at limit **
   9  Prefactor     .77228        2.4625       -.14698E-05   -.12571E-02
  10  Prefactor     8.6014        6.8152        .36026E-07   -.29651E-04
  11  Prefactor     26.728        13.546        .12067E-06    .37024E-03
  12  Prefactor     15.738        24.495        .15785E-06    .48308E-05
  13  Prefactor     56.392        69.388        .59479E-06   -.49360E-06
  14  norm          2.5406        .81275        .20672E-08    .17708E-03
  15  Prefactor     .10000E-03    2.2274       -.19349E-07** at limit **
  16  Prefactor     .10000E-03    5.8213       -.62857E-07** at limit **
  17  norm          2.7536        1.5889        .40748E-06   -.26335E-02
  18  Prefactor     .10000E-03    75.676        .38075E-06** at limit **
  19  Prefactor     27.698        11.227        .13559E-06   -.18155E-03
  20  Prefactor     3.6629        3.5996        .59279E-07   -.32942E-04
  21  Normalizat    .81355        .19882        .46120E-06    .94594E-04
  22  Prefactor     1.1170        .12873       -.53293E-06    .12892E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.5478
  Prefactor  = 0.0001
  Prefactor  = 0.484149
  Prefactor  = 6.86617
  norm       = 2.27913
  norm       = 1.09893
  Prefactor  = 11.205
  Prefactor  = 0.0001
  Prefactor  = 0.772277
  Prefactor  = 8.60135
  Prefactor  = 26.7284
  Prefactor  = 15.7379
  Prefactor  = 56.3918
  norm       = 2.54063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.75362
  Prefactor  = 0.0001
  Prefactor  = 27.6985
  Prefactor  = 3.66288
  Normalizat = 0.813545
  Prefactor  = 1.11702
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.060     FROM HESSE     STATUS=OK           350 CALLS     2704 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.548        10.691        .90588E-04   -1.4823    
   2  Prefactor     .10000E-03    7.3285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .48415        23.643        .40645E-02   -1.5569    
   4  Prefactor     6.8662        33.004        .15300E-03   -1.5184    
   5  norm          2.2791        .79886        .42091E-04   -1.5406    
   6  norm          1.0989        1.1041        .88412E-04   -1.5498    
   7  Prefactor     11.205        9.2842        .11968E-03   -1.5038    
   8  Prefactor     .10000E-03    12.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .77228        2.6254        .23734E-02   -1.5532    
  10  Prefactor     8.6014        6.7927        .13668E-03   -1.5121    
  11  Prefactor     26.728        13.480        .77487E-04   -1.4674    
  12  Prefactor     15.738        24.497        .10096E-03   -1.4914    
  13  Prefactor     56.392        69.493        .53418E-04   -1.4205    
  14  norm          2.5406        .81357        .41551E-04   -1.5389    
  15  Prefactor     .10000E-03    2.2313        .12589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7536        4.4196        .10499E-02   -1.5376    
  18  Prefactor     .10000E-03    75.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.698        11.826        .76123E-04   -1.4655    
  20  Prefactor     3.6629        3.6054        .15821E-03   -1.5325    
  21  Normalizat    .81355        .22488        .34132E-03   -.99568    
  22  Prefactor     1.1170        .14682        .19598E-03   -.88924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51471e-08
Minuit parameter uncertainties:
  1  10.6919
  2  1.63959e-06
  3  6.76869
  4  30.1338
  5  0.798866
  6  1.10408
  7  9.28542
  8  5.51646e-05
  9  2.62582
  10  6.7933
  11  13.4817
  12  24.5127
  13  69.5931
  14  0.813574
  15  1.39298e-07
  16  1.17505e-05
  17  4.42009
  18  0.000128349
  19  11.827
  20  3.60557
  21  0.225137
  22  0.146872
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.673e+01  1.348e+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:  1.117e+00  1.469e-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.135e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.31
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 5.58e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.29e-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) = 7461.05103318
delta logL = 0.00913617585775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7461.04632373
delta logL = 0.0138456348577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.232       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6646       1.0000          .0000       10.000    
     3 'Normalizat'    .82042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1134       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=   7461.046     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      243 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.232        16.680        .75400E-04   -.10675E-03
   2  Index         2.6646        .57034        .73860E-02   -.58204E-04
   3  Normalizat    .82042        .22266        .34005E-03    .37311E-04
   4  Prefactor     1.1134        .14634        .19625E-03    .95273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2324
  Index      = 2.66459
  Normalizat = 0.820418
  Prefactor  = 1.11345
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.046     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.232        16.275        .30160E-05   -1.4645    
   2  Index         2.6646        .55606        .29544E-03   -.48599    
   3  Normalizat    .82042        .22264        .13602E-04   -.99316    
   4  Prefactor     1.1134        .14631        .39249E-04   -.89038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10891e-11
Minuit parameter uncertainties:
  1  16.2773
  2  0.55754
  3  0.222892
  4  0.146364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575523': 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) = 7461.04632372
delta logL = 0.0138456362693

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.823e+01  1.628e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.665e+00  5.575e-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:  1.113e+00  1.464e-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.204e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.34
Ra Dec: 21.704 24.210
Photon Index (Free Index): 2.66 +/- 0.56
Photon Flux (Free Index): 1.07e-07 +/- 5.93e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.44e-05

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/575523/cmap_HighResolution_421545601_421804801_4FGL_J0126.8+2412_daily_bin703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='2.64e-05', photon_flux_error='5.58e-08', dlogl='1.38e-02', energy_flux='2.55e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-08-14 01:00:23.645744', photon_index_error2='0.56', photon_index2='2.66', ts='6.31', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.81', time_epoch_completed='1628928023.65', return_code='0', job_id='575523', GAL2='1.11', EG2='0.82', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.93e-08', ts2='6.34', photon_index='2.76' WHERE bin_id='703' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:00:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 575523: <4FGL_J0126.8+2412_daily_bin703> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 00:45:31 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:45:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 00:45:33 2021
Terminated at Sat Aug 14 01:00:25 2021
Results reported at Sat Aug 14 01:00:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin703 21.7036 24.21 421545601 421804801 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 :                                   827.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

