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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1387
RA = 21.7036, Dec = 24.21
tmin = 598838401, tmax = 599097601
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='578758', job_status='RUN', time_executed='2021-08-14 01:00:18.526178', time_epoch_executed='1628928018.53' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578758/ft1_4FGL_J0126.8+2412_daily_bin1387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578758/ft2_4FGL_J0126.8+2412_daily_bin1387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578758/ft1_4FGL_J0126.8+2412_daily_bin1387.fits outfile=/scratch/kocevski/578758/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1387.fits ra=21.7036 dec=24.21 rad=12.0 tmin=598838401.0 tmax=599097601.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.94
user 2.18
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578758/ft2_4FGL_J0126.8+2412_daily_bin1387.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/578758/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1387.fits evtable="EVENTS" outfile="/scratch/kocevski/578758/ft1_filtered_4FGL_J0126.8+2412_daily_bin1387.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.98
user 0.29
sys 0.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578758/ft1_filtered_4FGL_J0126.8+2412_daily_bin1387.fits" evtable="EVENTS" scfile=/scratch/kocevski/578758/ft2_4FGL_J0126.8+2412_daily_bin1387.fits sctable="SC_DATA" outfile=/scratch/kocevski/578758/ltcube_598838401_599097601_4FGL_J0126.8+2412_daily_bin1387.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/578758/ft2_4FGL_J0126.8+2412_daily_bin1387.fits
.....................!
real 12.82
user 11.86
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578758/ft1_filtered_4FGL_J0126.8+2412_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/578758/ft2_4FGL_J0126.8+2412_daily_bin1387.fits sctable="SC_DATA" expcube=/scratch/kocevski/578758/ltcube_598838401_599097601_4FGL_J0126.8+2412_daily_bin1387.fits outfile=/scratch/kocevski/578758/expmap_598838401_599097601_4FGL_J0126.8+2412_daily_bin1387.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/578758/ltcube_598838401_599097601_4FGL_J0126.8+2412_daily_bin1387.fits
.....................!
real 157.35
user 151.82
sys 4.72

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/578758/ft1_filtered_4FGL_J0126.8+2412_daily_bin1387.fits scfile=/scratch/kocevski/578758/ft2_4FGL_J0126.8+2412_daily_bin1387.fits outfile=/scratch/kocevski/578758/cmap_598838401_599097601_4FGL_J0126.8+2412_daily_bin1387.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 1.00
user 0.33
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578758/ft1_filtered_4FGL_J0126.8+2412_daily_bin1387.fits scfile=/scratch/kocevski/578758/ft2_4FGL_J0126.8+2412_daily_bin1387.fits outfile=/scratch/kocevski/578758/cmap_HighResolution_598838401_599097601_4FGL_J0126.8+2412_daily_bin1387.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 1.03
user 0.34
sys 0.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.1830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.841       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3944       1.0000         .10000E-03   10000.    
     6 'norm      '    .94708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .48649E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1817       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.576       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.119       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18225E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1407       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    94.356       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.339       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4070       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78153       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=   8009.102     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2383 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4158        .13568E-08** at limit **
   2  Prefactor     5.1856        8.7751        .21801E-06   -.44302E-04
   3  Prefactor     26.843        13.266        .17372E-05    .51031E-03
   4  Prefactor     .10000E-03    13.190       -.13707E-06** at limit **
   5  norm          3.3948        .85226        .20388E-07    .59776E-03
   6  norm          .94717        1.0334       -.17188E-06   -.73796E-03
   7  Prefactor     13.373        11.460        .22043E-05    .40982E-03
   8  Prefactor     .10000E-03    54.223        .47602E-06** at limit **
   9  Prefactor     .10001E-03    3.8184       -.89630E-06** at limit **
  10  Prefactor     5.1826        4.6098        .14686E-05   -.22648E-02
  11  Prefactor     40.558        16.871        .29731E-06    .16988E-03
  12  Prefactor     33.106        40.071       -.15052E-05   -.68850E-04
  13  Prefactor     .10000E-03    270.67       -.24172E-05** at limit **
  14  norm          2.1397        .79742       -.22026E-08   -.21016E-04
  15  Prefactor     .10000E-03    16.212        .29382E-06** at limit **
  16  Prefactor     .10000E-03    9.8093        .34306E-06** at limit **
  17  norm          .10000E-03    3.9311       -.61828E-07** at limit **
  18  Prefactor     94.342        141.92       -.74196E-05   -.71537E-04
  19  Prefactor     16.339        11.177        .22530E-05    .55300E-03
  20  Prefactor     .10000E-03    2.5705        .17082E-07** at limit **
  21  Normalizat    1.4066        .20058       -.14458E-05    .15343E-03
  22  Prefactor     .78166        .11996        .23731E-06    .31147E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.18557
  Prefactor  = 26.8431
  Prefactor  = 0.0001
  norm       = 3.3948
  norm       = 0.947172
  Prefactor  = 13.3735
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 5.18261
  Prefactor  = 40.5582
  Prefactor  = 33.1058
  Prefactor  = 0.0001
  norm       = 2.13965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 94.3415
  Prefactor  = 16.3389
  Prefactor  = 0.0001
  Normalizat = 1.40665
  Prefactor  = 0.78166
 **********
 **   18 **HESSE 
 **********

 FCN=   8009.102     FROM HESSE     STATUS=OK           340 CALLS     2723 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4191        .13583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1856        8.7840        .17658E-03   -1.5252    
   3  Prefactor     26.843        13.389        .77326E-04   -1.4671    
   4  Prefactor     .10000E-03    13.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3948        .85029        .39422E-04   -1.5339    
   6  norm          .94717        .94030        .90775E-03   -1.5513    
   7  Prefactor     13.373        11.510        .10954E-03   -1.4976    
   8  Prefactor     .10000E-03    54.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    13.062        .32966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1826        6.9960        .88300E-03   -1.5253    
  11  Prefactor     40.558        16.804        .62928E-04   -1.4433    
  12  Prefactor     33.106        40.154        .69629E-04   -1.4557    
  13  Prefactor     .10000E-03    271.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1397        .79722        .46930E-04   -1.5415    
  15  Prefactor     .10000E-03    16.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.0556        .34618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     94.342        142.87        .41375E-04   -1.3762    
  19  Prefactor     16.339        11.289        .99086E-04   -1.4899    
  20  Prefactor     .10000E-03    2.5783        .14012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4066        .23388        .28653E-03   -.80437    
  22  Prefactor     .78166        .13911        .23015E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80097e-09
Minuit parameter uncertainties:
  1  4.91732e-07
  2  8.78617
  3  13.3903
  4  2.9796e-06
  5  0.85029
  6  0.940315
  7  11.5123
  8  0.000177572
  9  0.00086042
  10  6.9971
  11  16.8058
  12  40.1863
  13  0.000596125
  14  0.797227
  15  7.53341e-05
  16  3.35404e-06
  17  4.71465e-05
  18  143.394
  19  11.2906
  20  4.06468e-06
  21  0.234054
  22  0.139173
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  4.056e+01  1.681e+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:  7.817e-01  1.392e-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.407e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.49
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.68e-07 +/- 6.96e-08
Energy Flux (Fixed Index): 3.87e-05 +/- 1.60e-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) = 8006.0145798
delta logL = 3.08743854636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8006.00987518
delta logL = 3.09214316577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.189       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1254       1.0000          .0000       10.000    
     3 'Normalizat'    1.2900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83307       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=   8006.010     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      278 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.181        56.183        .26583E-02    .16811E-03
   2  Index         4.1256        2.8544        .98051E-01    .15205E-03
   3  Normalizat    1.2902        .10008        .66919E-01    .10321E-04
   4  Prefactor     .83305        .61999E-01    .44146E-01    .13379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1805
  Index      = 4.12563
  Normalizat = 1.2902
  Prefactor  = 0.833053
 **********
 **   18 **HESSE 
 **********

 FCN=   8006.010     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.181        15.564        .10035E-03   -1.4955    
   2  Index         4.1256        .87657        .41375E-02   -.17578    
   3  Normalizat    1.2902        .22926        .29604E-03   -.83859    
   4  Prefactor     .83305        .13990        .22355E-03   -.98521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19028e-08
Minuit parameter uncertainties:
  1  15.5682
  2  0.881273
  3  0.229442
  4  0.139962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578758': 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) = 8006.00987421
delta logL = 3.09214413836

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.418e+01  1.557e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  4.126e+00  8.813e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  8.331e-01  1.400e-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.290e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.37
Ra Dec: 21.704 24.210
Photon Index (Free Index): 4.13 +/- 0.88
Photon Flux (Free Index): 2.77e-07 +/- 8.95e-08
Energy Flux (Free Index): 4.07e-05 +/- 1.36e-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/578758/cmap_HighResolution_598838401_599097601_4FGL_J0126.8+2412_daily_bin1387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-07', energy_flux2='4.07e-05', photon_flux_error='6.96e-08', dlogl='3.09e+00', energy_flux='3.87e-05', photon_flux2='2.77e-07', job_status='DONE', time_completed='2021-08-14 01:09:47.625967', photon_index_error2='0.88', photon_index2='4.13', ts='9.49', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.41', time_epoch_completed='1628928587.63', return_code='0', job_id='578758', GAL2='0.83', EG2='1.29', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='8.95e-08', ts2='16.37', photon_index='2.76' WHERE bin_id='1387' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 578758: <4FGL_J0126.8+2412_daily_bin1387> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1387> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 00:55:24 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:57:11 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:57:11 2021
Terminated at Sat Aug 14 01:09:48 2021
Results reported at Sat Aug 14 01:09:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1387 21.7036 24.21 598838401 599097601 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 :                                   567.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            864 sec.

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

