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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin354
RA = 21.7036, Dec = 24.21
tmin = 331084801, tmax = 331344001
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='573832', job_status='RUN', time_executed='2021-08-14 00:42:45.195118', time_epoch_executed='1628926965.2' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573832/ft1_4FGL_J0126.8+2412_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573832/ft2_4FGL_J0126.8+2412_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573832/ft1_4FGL_J0126.8+2412_daily_bin354.fits outfile=/scratch/kocevski/573832/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin354.fits ra=21.7036 dec=24.21 rad=12.0 tmin=331084801.0 tmax=331344001.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 5.90
user 3.13
sys 2.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573832/ft1_filtered_4FGL_J0126.8+2412_daily_bin354.fits" evtable="EVENTS" scfile=/scratch/kocevski/573832/ft2_4FGL_J0126.8+2412_daily_bin354.fits sctable="SC_DATA" outfile=/scratch/kocevski/573832/ltcube_331084801_331344001_4FGL_J0126.8+2412_daily_bin354.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/573832/ft2_4FGL_J0126.8+2412_daily_bin354.fits
.....................!
real 15.06
user 11.88
sys 3.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573832/ft1_filtered_4FGL_J0126.8+2412_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/573832/ft2_4FGL_J0126.8+2412_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/573832/ltcube_331084801_331344001_4FGL_J0126.8+2412_daily_bin354.fits outfile=/scratch/kocevski/573832/expmap_331084801_331344001_4FGL_J0126.8+2412_daily_bin354.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/573832/ltcube_331084801_331344001_4FGL_J0126.8+2412_daily_bin354.fits
.....................!
real 195.59
user 186.89
sys 8.20

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/573832/ft1_filtered_4FGL_J0126.8+2412_daily_bin354.fits scfile=/scratch/kocevski/573832/ft2_4FGL_J0126.8+2412_daily_bin354.fits outfile=/scratch/kocevski/573832/cmap_331084801_331344001_4FGL_J0126.8+2412_daily_bin354.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 2.96
user 0.38
sys 2.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573832/ft1_filtered_4FGL_J0126.8+2412_daily_bin354.fits scfile=/scratch/kocevski/573832/ft2_4FGL_J0126.8+2412_daily_bin354.fits outfile=/scratch/kocevski/573832/cmap_HighResolution_331084801_331344001_4FGL_J0126.8+2412_daily_bin354.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 2.98
user 0.38
sys 2.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14328E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8766       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .79155       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.535       1.0000         .10000E-03   10000.    
     5 'norm      '    .41538       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2479       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.863       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10948E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4204       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10888E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.596       1.0000         .10000E-03   10000.    
    14 'norm      '    .86653       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .64093E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.269       1.0000         .10000E-03   10000.    
    17 'norm      '    .98314       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8525       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81668       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0637       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=   7929.949     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2416 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4526       -.18958E-06** at limit **
   2  Prefactor     8.8815        12.720        .68580E-06    .10640E-04
   3  Prefactor     .79278        7.5798        .11728E-05   -.20148E-03
   4  Prefactor     18.560        25.627       -.58477E-07   -.13461E-04
   5  norm          .41535        .42876        .12089E-06    .52460E-03
   6  norm          2.2481        1.1406        .47349E-07   -.24399E-03
   7  Prefactor     18.881        14.457        .31959E-06    .11894E-05
   8  Prefactor     .10000E-03    52.984        .16325E-06** at limit **
   9  Prefactor     4.4289        4.2553        .18643E-06   -.13048E-04
  10  Prefactor     .10000E-03    6.2929       -.40079E-07** at limit **
  11  Prefactor     .10000E-03    5.9698        .99618E-06** at limit **
  12  Prefactor     .10000E-03    12.685        .32842E-06** at limit **
  13  Prefactor     70.691        78.218       -.78196E-06   -.48067E-04
  14  norm          .86643        .53697        .14519E-06    .78004E-04
  15  Prefactor     .10066E-03    7.2512        .20159E-05** at limit **
  16  Prefactor     31.270        23.621       -.55215E-07   -.61296E-04
  17  norm          .98746        2.5504        .96436E-06    .35448E-03
  18  Prefactor     .10000E-03    53.846       -.37890E-07** at limit **
  19  Prefactor     4.8466        8.7573       -.40454E-07   -.16362E-03
  20  Prefactor     .10000E-03    2.8048       -.94508E-07** at limit **
  21  Normalizat    .81627        .18882       -.27697E-05   -.48189E-03
  22  Prefactor     1.0640        .11486        .58157E-06   -.80857E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 8.88149
  Prefactor  = 0.792777
  Prefactor  = 18.5597
  norm       = 0.415353
  norm       = 2.24811
  Prefactor  = 18.881
  Prefactor  = 0.0001
  Prefactor  = 4.42893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.6905
  norm       = 0.866426
  Prefactor  = 0.000100662
  Prefactor  = 31.2697
  norm       = 0.987457
  Prefactor  = 0.0001
  Prefactor  = 4.84656
  Prefactor  = 0.0001
  Normalizat = 0.816267
  Prefactor  = 1.06405
 **********
 **   18 **HESSE 
 **********

 FCN=   7929.949     FROM HESSE     STATUS=OK           356 CALLS     2772 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.221        .31831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8815        12.619        .13453E-03   -1.5112    
   3  Prefactor     .79278        25.889        .45089E-02   -1.5530    
   4  Prefactor     18.560        25.474        .93030E-04   -1.4846    
   5  norm          .41535        .41036        .55837E-03   -1.5579    
   6  norm          2.2481        1.1342        .64801E-04   -1.5408    
   7  Prefactor     18.881        14.460        .92218E-04   -1.4839    
   8  Prefactor     .10000E-03    53.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4289        4.2401        .17171E-03   -1.5287    
  10  Prefactor     .10000E-03    6.5551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     70.691        77.861        .23888E-03   -1.4024    
  14  norm          .86643        .53123        .48110E-04   -1.5522    
  15  Prefactor     .10066E-03    69.875        .39346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.270        23.574        .71654E-04   -1.4589    
  17  norm          .98746        2.4834        .21814E-02   -1.5509    
  18  Prefactor     .10000E-03    53.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8466        8.4678        .18261E-03   -1.5268    
  20  Prefactor     .10000E-03    2.8293        .14556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81627        .20829        .31825E-03   -.99468    
  22  Prefactor     1.0640        .13076        .18379E-03   -.90624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56117e-09
Minuit parameter uncertainties:
  1  0.000168342
  2  12.6229
  3  9.06448
  4  25.489
  5  0.410367
  6  1.13417
  7  14.463
  8  2.81447e-05
  9  4.24042
  10  1.70138e-05
  11  3.90858e-05
  12  1.75537e-05
  13  77.9738
  14  0.531232
  15  0.0136219
  16  23.5809
  17  2.48365
  18  1.13209e-05
  19  8.46985
  20  1.15894e-06
  21  0.208492
  22  0.130798
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  3.909e-05  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.064e+00  1.308e-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.163e-01  2.085e-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: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573832/likelihoodResults_331084801_331344001_4FGL_J0126.8+2412_daily_bin354.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) = 7929.94951342
delta logL = -0.000794078719082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7929.94871917
delta logL = 1.72469299287e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7824       1.0000          .0000       10.000    
     3 'Normalizat'    .81627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0640       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=   7929.949     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      245 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    12.538        .18142E-02** at limit **
   2  Index         2.8056        6.2916        .50000       -.35750E-04
   3  Normalizat    .81627        .19614        .31826E-03    .96270E-04
   4  Prefactor     1.0640        .12871        .18379E-03    .10015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.80561
  Normalizat = 0.816268
  Prefactor  = 1.06405
 **********
 **   18 **HESSE 
 **********

 FCN=   7929.949     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.3902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8056        6.3888        .50000       -.45435    
   3  Normalizat    .81627        .19628        .12730E-04   -.99468    
   4  Prefactor     1.0640        .12880        .36758E-04   -.90624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2662e-09
Minuit parameter uncertainties:
  1  0.000456784
  2  4.54021
  3  0.196449
  4  0.128842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573832': 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) = 7929.94871899
delta logL = 3.58040779247e-07

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.568e-04  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.806e+00  4.540e+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:  1.064e+00  1.288e-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.163e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.704 24.210

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/573832/cmap_HighResolution_331084801_331344001_4FGL_J0126.8+2412_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-08-14 00:55:28.053088', job_id='573832', GAL2='1.06', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1628927728.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='354' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:55:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 573832: <4FGL_J0126.8+2412_daily_bin354> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin354> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:28 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:41:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 00:41:30 2021
Terminated at Sat Aug 14 00:55:29 2021
Results reported at Sat Aug 14 00:55:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin354 21.7036 24.21 331084801 331344001 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 :                                   797.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            901 sec.

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

