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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin547
RA = 21.7036, Dec = 24.21
tmin = 381110401, tmax = 381369601
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='574109', job_status='RUN', time_executed='2021-08-14 00:44:30.357231', time_epoch_executed='1628927070.36' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574109/ft1_4FGL_J0126.8+2412_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574109/ft2_4FGL_J0126.8+2412_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574109/ft1_4FGL_J0126.8+2412_daily_bin547.fits outfile=/scratch/kocevski/574109/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin547.fits ra=21.7036 dec=24.21 rad=12.0 tmin=381110401.0 tmax=381369601.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 8.55
user 4.41
sys 3.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574109/ft1_filtered_4FGL_J0126.8+2412_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/574109/ft2_4FGL_J0126.8+2412_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/574109/ltcube_381110401_381369601_4FGL_J0126.8+2412_daily_bin547.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/574109/ft2_4FGL_J0126.8+2412_daily_bin547.fits
.....................!
real 16.09
user 12.08
sys 3.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574109/ft1_filtered_4FGL_J0126.8+2412_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/574109/ft2_4FGL_J0126.8+2412_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/574109/ltcube_381110401_381369601_4FGL_J0126.8+2412_daily_bin547.fits outfile=/scratch/kocevski/574109/expmap_381110401_381369601_4FGL_J0126.8+2412_daily_bin547.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/574109/ltcube_381110401_381369601_4FGL_J0126.8+2412_daily_bin547.fits
.....................!
real 196.41
user 185.85
sys 10.10

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/574109/ft1_filtered_4FGL_J0126.8+2412_daily_bin547.fits scfile=/scratch/kocevski/574109/ft2_4FGL_J0126.8+2412_daily_bin547.fits outfile=/scratch/kocevski/574109/cmap_381110401_381369601_4FGL_J0126.8+2412_daily_bin547.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 3.70
user 0.38
sys 3.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574109/ft1_filtered_4FGL_J0126.8+2412_daily_bin547.fits scfile=/scratch/kocevski/574109/ft2_4FGL_J0126.8+2412_daily_bin547.fits outfile=/scratch/kocevski/574109/cmap_HighResolution_381110401_381369601_4FGL_J0126.8+2412_daily_bin547.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 3.68
user 0.39
sys 3.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .79741       1.0000         .10000E-03   10000.    
     6 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    110.66       1.0000         .10000E-03   10000.    
    14 'norm      '    .26531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.180       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45912       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0738       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .84225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11281E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85573       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0316       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=   6420.725     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2390 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9497       -.34013E-06** at limit **
   2  Prefactor     8.6885        9.0902       -.34209E-06   -.87188E-05
   3  Prefactor     .10000E-03    3.7490       -.47569E-07** at limit **
   4  Prefactor     .10000E-03    13.160       -.32465E-06** at limit **
   5  norm          .79741        .48445       -.94015E-08    .79467E-04
   6  norm          .10000E-03    .53078       -.11739E-06** at limit **
   7  Prefactor     .10000E-03    4.1123       -.17416E-07** at limit **
   8  Prefactor     .10000E-03    17.109        .57183E-06** at limit **
   9  Prefactor     .10000E-03    1.9308       -.44689E-09** at limit **
  10  Prefactor     .10000E-03    5.7225        .68897E-08** at limit **
  11  Prefactor     .10000E-03    8.3435        .70398E-06** at limit **
  12  Prefactor     .10000E-03    17.272       -.12073E-06** at limit **
  13  Prefactor     110.61        83.715       -.42910E-04   -.12943E-03
  14  norm          .26593        .54511        .16657E-05    .28956E-02
  15  Prefactor     29.177        12.323        .24206E-06   -.14307E-03
  16  Prefactor     .48729        16.431        .80762E-06   -.26574E-03
  17  norm          6.0753        4.0613        .18461E-06    .31427E-03
  18  Prefactor     .10000E-03    70.229        .36262E-05** at limit **
  19  Prefactor     .82501        8.3656       -.25575E-05   -.23495E-03
  20  Prefactor     .10000E-03    3.5790       -.26152E-06** at limit **
  21  Normalizat    .85556        .18195        .26016E-05   -.11907E-03
  22  Prefactor     1.0316        .11778        .48115E-06   -.92766E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.68849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.797405
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.607
  norm       = 0.265926
  Prefactor  = 29.1771
  Prefactor  = 0.487289
  norm       = 6.07527
  Prefactor  = 0.0001
  Prefactor  = 0.825012
  Prefactor  = 0.000100001
  Normalizat = 0.855562
  Prefactor  = 1.03164
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.725     FROM HESSE     STATUS=OK           352 CALLS     2742 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.0261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6885        9.0941        .13599E-03   -1.5118    
   3  Prefactor     .10000E-03    3.7583        .15151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .79741        .48846        .41976E-04   -1.5529    
   6  norm          .10000E-03    4.9786        .11203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1178        .15870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9406        .10871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     110.61        83.375        .19119E-03   -1.3601    
  14  norm          .26593        .51401        .77637E-03   -1.5605    
  15  Prefactor     29.177        12.319        .74168E-04   -1.4627    
  16  Prefactor     .48729        124.45        .59534E-02   -1.5568    
  17  norm          6.0753        4.0472        .12058E-03   -1.5215    
  18  Prefactor     .10000E-03    70.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .82501        19.246        .39479E-02   -1.5526    
  20  Prefactor     .10000E-03    3.6138        .51396E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85556        .20572        .29830E-03   -.98040    
  22  Prefactor     1.0316        .13511        .18189E-03   -.91682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76664e-09
Minuit parameter uncertainties:
  1  1.36421e-05
  2  9.09551
  3  4.66822e-06
  4  3.63426e-06
  5  0.488463
  6  2.74501e-05
  7  4.47485e-06
  8  1.72963e-05
  9  2.79428e-06
  10  2.64135e-07
  11  0.000113294
  12  6.43374e-05
  13  83.4636
  14  0.514023
  15  12.32
  16  15.6063
  17  4.04736
  18  9.52914e-06
  19  7.97195
  20  0.000120344
  21  0.205905
  22  0.135158
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.133e-04  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.032e+00  1.352e-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.556e-01  2.059e-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: 7.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574109/likelihoodResults_381110401_381369601_4FGL_J0126.8+2412_daily_bin547.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) = 6420.72528772
delta logL = -0.000561090500014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6420.7247267
delta logL = -7.31379259378e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7126       1.0000          .0000       10.000    
     3 'Normalizat'    .85535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0318       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6420.707     FROM MIGRAD    STATUS=FAILED       157 CALLS      312 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0592        420.68        .18142E-01    .12135E-02
   2  Index         1.7429        5.5505        .46766       -.28367E-04
   3  Normalizat    .85746        .22315        .29830E-03   -.18522E-04
   4  Prefactor     1.0292        .17405        .18189E-03   -.89740E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6420.707     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      398 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0592        420.68        .20051E-03   -1.5502    
   2  Index         1.7429        5.5505        .22651E-02   -.70945    
   3  Normalizat    .85746        .22315        .10074E-03   -.97971    
   4  Prefactor     1.0292        .17405        .95817E-04   -.91763    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6420.707     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      432 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0592        8.3643        .44443E-03   -.25836E-05
   2  Index         1.7429        1.5395        .14886E-01   -.99498E-04
   3  Normalizat    .85746        .20109        .11932E-04   -.18484E-04
   4  Prefactor     1.0292        .13478        .36379E-04   -.88003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05917
  Index      = 1.74291
  Normalizat = 0.857461
  Prefactor  = 1.02917
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.707     FROM HESSE     STATUS=OK            25 CALLS      457 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0592        8.6079        .17777E-04   -1.5502    
   2  Index         1.7429        1.5623        .29772E-02   -.70945    
   3  Normalizat    .85746        .20105        .23864E-05   -.97971    
   4  Prefactor     1.0292        .13476        .72757E-05   -.91763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24332e-12
Minuit parameter uncertainties:
  1  6.03986
  2  1.61023
  3  0.20123
  4  0.134803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574109': 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) = 6420.70657937
delta logL = 0.0181472578715

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.059e+00  6.040e+00  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  1.743e+00  1.610e+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.029e+00  1.348e-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.575e-01  2.012e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/574109/cmap_HighResolution_381110401_381369601_4FGL_J0126.8+2412_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-08-14 00:56:54.258849', job_id='574109', GAL2='1.03', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1628927814.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.81e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='547' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 574109: <4FGL_J0126.8+2412_daily_bin547> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin547> 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) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:42:55 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:55 2021
Terminated at Sat Aug 14 00:56:55 2021
Results reported at Sat Aug 14 00:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin547 21.7036 24.21 381110401 381369601 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 :                                   776.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            970 sec.

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

