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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin550
RA = 21.7036, Dec = 24.21
tmin = 381888001, tmax = 382147201
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='574114', job_status='RUN', time_executed='2021-08-14 00:45:58.621722', time_epoch_executed='1628927158.62' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574114/ft1_4FGL_J0126.8+2412_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574114/ft2_4FGL_J0126.8+2412_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574114/ft1_4FGL_J0126.8+2412_daily_bin550.fits outfile=/scratch/kocevski/574114/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin550.fits ra=21.7036 dec=24.21 rad=12.0 tmin=381888001.0 tmax=382147201.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 6.11
user 4.59
sys 1.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574114/ft1_filtered_4FGL_J0126.8+2412_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/574114/ft2_4FGL_J0126.8+2412_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/574114/ltcube_381888001_382147201_4FGL_J0126.8+2412_daily_bin550.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/574114/ft2_4FGL_J0126.8+2412_daily_bin550.fits
.....................!
real 13.36
user 11.61
sys 1.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574114/ft1_filtered_4FGL_J0126.8+2412_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/574114/ft2_4FGL_J0126.8+2412_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/574114/ltcube_381888001_382147201_4FGL_J0126.8+2412_daily_bin550.fits outfile=/scratch/kocevski/574114/expmap_381888001_382147201_4FGL_J0126.8+2412_daily_bin550.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/574114/ltcube_381888001_382147201_4FGL_J0126.8+2412_daily_bin550.fits
.....................!
real 193.46
user 186.63
sys 6.42

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/574114/ft1_filtered_4FGL_J0126.8+2412_daily_bin550.fits scfile=/scratch/kocevski/574114/ft2_4FGL_J0126.8+2412_daily_bin550.fits outfile=/scratch/kocevski/574114/cmap_381888001_382147201_4FGL_J0126.8+2412_daily_bin550.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.79
user 0.37
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574114/ft1_filtered_4FGL_J0126.8+2412_daily_bin550.fits scfile=/scratch/kocevski/574114/ft2_4FGL_J0126.8+2412_daily_bin550.fits outfile=/scratch/kocevski/574114/cmap_HighResolution_381888001_382147201_4FGL_J0126.8+2412_daily_bin550.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.75
user 0.38
sys 1.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.068       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18800E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2407       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.403       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0735       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.588       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32282E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.428       1.0000         .10000E-03   10000.    
    14 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.627       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    413.16       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4114       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73047       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1665       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=   6833.101     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2424 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8958        7.2828       -.63133E-05   -.48663E-03
   2  Prefactor     10.069        15.148        .12754E-06    .29850E-04
   3  Prefactor     8.9068        8.7774       -.21038E-05    .26396E-04
   4  Prefactor     .10000E-03    100.19        .56944E-06** at limit **
   5  norm          .10000E-03    .23431       -.14580E-06** at limit **
   6  norm          .10000E-03    .75389       -.18961E-06** at limit **
   7  Prefactor     3.2370        19.105       -.17094E-04   -.78365E-04
   8  Prefactor     33.455        47.690        .21821E-04    .19136E-04
   9  Prefactor     .10000E-03    2.7612       -.43265E-06** at limit **
  10  Prefactor     5.0746        6.7386        .96494E-06   -.23582E-03
  11  Prefactor     37.586        17.986       -.32712E-06   -.38877E-04
  12  Prefactor     .10000E-03    328.70        .12565E-04** at limit **
  13  Prefactor     82.413        88.889       -.11950E-04   -.44546E-04
  14  norm          .10000E-03    .25033        .18021E-06** at limit **
  15  Prefactor     22.624        12.155        .66513E-06   -.74352E-04
  16  Prefactor     .10000E-03    11.584       -.20533E-07** at limit **
  17  norm          .10000E-03    2.3728       -.11197E-06** at limit **
  18  Prefactor     413.15        188.19       -.59031E-05   -.52361E-05
  19  Prefactor     2.4089        6.8837        .38004E-05   -.39315E-03
  20  Prefactor     .10000E-03    4.4900        .82464E-07** at limit **
  21  Normalizat    .73060        .21477        .39103E-06    .13406E-04
  22  Prefactor     1.1665        .13168       -.17228E-06    .92728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.89583
  Prefactor  = 10.0686
  Prefactor  = 8.9068
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.23705
  Prefactor  = 33.4551
  Prefactor  = 0.000100001
  Prefactor  = 5.07461
  Prefactor  = 37.5864
  Prefactor  = 0.0001
  Prefactor  = 82.4128
  norm       = 0.0001
  Prefactor  = 22.6238
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 413.148
  Prefactor  = 2.40887
  Prefactor  = 0.0001
  Normalizat = 0.730602
  Prefactor  = 1.16655
 **********
 **   18 **HESSE 
 **********

 FCN=   6833.101     FROM HESSE     STATUS=OK           346 CALLS     2770 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8958        7.3464        .30205E-03   -1.5433    
   2  Prefactor     10.069        15.075        .12628E-03   -1.5073    
   3  Prefactor     8.9068        8.7608        .13431E-03   -1.5111    
   4  Prefactor     .10000E-03    101.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .30354        .77504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3166        .13713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2370        19.302        .22500E-03   -1.5348    
   8  Prefactor     33.455        47.355        .69334E-04   -1.4551    
   9  Prefactor     .10000E-03    2.7821        .13416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0746        6.6666        .17851E-03   -1.5257    
  11  Prefactor     37.586        17.965        .65372E-04   -1.4481    
  12  Prefactor     .10000E-03    337.30        .39495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     82.413        87.948        .44241E-04   -1.3890    
  14  norm          .10000E-03    .30404        .79227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.624        12.140        .84206E-04   -1.4756    
  16  Prefactor     .10000E-03    11.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3958        .12418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     413.15        188.21        .10049E-03   -1.1614    
  19  Prefactor     2.4089        6.7909        .26362E-03   -1.5398    
  20  Prefactor     .10000E-03    4.5385        .17100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73060        .24004        .35856E-03   -1.0270    
  22  Prefactor     1.1665        .14831        .18681E-03   -.87367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90961e-09
Minuit parameter uncertainties:
  1  7.34989
  2  15.0807
  3  8.76205
  4  0.00138789
  5  8.14e-06
  6  1.45851e-05
  7  15.8166
  8  47.4081
  9  7.7434e-05
  10  6.66757
  11  17.9674
  12  0.000101102
  13  88.0871
  14  9.9175e-06
  15  12.1414
  16  3.4407e-05
  17  2.07005e-05
  18  188.494
  19  6.79307
  20  8.5537e-06
  21  0.240384
  22  0.148363
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  3.759e+01  1.797e+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.167e+00  1.484e-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:  7.306e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.00
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.56e-07 +/- 7.44e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 1.71e-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) = 6832.98134037
delta logL = 0.119297289254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6832.97876345
delta logL = 0.121874210475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.924       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5134       1.0000          .0000       10.000    
     3 'Normalizat'    .75745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1544       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=   6832.979     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      290 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.926        19.772        .62661E-04   -.21061E-02
   2  Index         2.5134        .47819        .70349E-02   -.72369E-03
   3  Normalizat    .75734        .23420        .35287E-03    .18612E-03
   4  Prefactor     1.1545        .14779        .18763E-03    .47683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.9258
  Index      = 2.51341
  Normalizat = 0.757336
  Prefactor  = 1.15452
 **********
 **   18 **HESSE 
 **********

 FCN=   6832.979     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.926        19.679        .12532E-04   -1.4428    
   2  Index         2.5134        .47549        .28140E-03   -.52050    
   3  Normalizat    .75734        .23434        .14115E-04   -1.0167    
   4  Prefactor     1.1545        .14782        .37526E-04   -.87743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89348e-09
Minuit parameter uncertainties:
  1  19.6822
  2  0.47645
  3  0.234651
  4  0.147876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574114': 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) = 6832.97876329
delta logL = 0.12187436871

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  4.093e+01  1.968e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.513e+00  4.765e-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.155e+00  1.479e-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:  7.573e-01  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.21
Ra Dec: 21.704 24.210
Photon Index (Free Index): 2.51 +/- 0.48
Photon Flux (Free Index): 1.35e-07 +/- 8.11e-08
Energy Flux (Free Index): 3.85e-05 +/- 1.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/574114/cmap_HighResolution_381888001_382147201_4FGL_J0126.8+2412_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.56e-07', energy_flux2='3.85e-05', photon_flux_error='7.44e-08', dlogl='1.22e-01', energy_flux='3.59e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-08-14 00:57:05.542337', photon_index_error2='0.48', photon_index2='2.51', ts='7.00', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.73', time_epoch_completed='1628927825.54', return_code='0', job_id='574114', GAL2='1.15', EG2='0.76', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='8.11e-08', ts2='7.21', photon_index='2.76' WHERE bin_id='550' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 574114: <4FGL_J0126.8+2412_daily_bin550> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin550> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:45 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:42:57 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:42:57 2021
Terminated at Sat Aug 14 00:57:06 2021
Results reported at Sat Aug 14 00:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin550 21.7036 24.21 381888001 382147201 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 :                                   650.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            981 sec.

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

