/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 212 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 = 7701
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1644
RA = 21.7036, Dec = 24.21
tmin = 665452801, tmax = 665712001
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='560651', job_status='RUN', time_executed='2022-02-05 00:11:01.469373', time_epoch_executed='1644048661.47' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/560651

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/560651/ft1_4FGL_J0126.8+2412_daily_bin1644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/560651/ft2_4FGL_J0126.8+2412_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/560651/ft1_4FGL_J0126.8+2412_daily_bin1644.fits outfile=/scratch/kocevski/560651/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1644.fits ra=21.7036 dec=24.21 rad=12.0 tmin=665452801.0 tmax=665712001.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 3.07
user 2.84
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/560651/ft2_4FGL_J0126.8+2412_daily_bin1644.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/560651/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1644.fits evtable="EVENTS" outfile="/scratch/kocevski/560651/ft1_filtered_4FGL_J0126.8+2412_daily_bin1644.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.43
user 0.26
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/560651/ft1_filtered_4FGL_J0126.8+2412_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/560651/ft2_4FGL_J0126.8+2412_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/560651/ltcube_665452801_665712001_4FGL_J0126.8+2412_daily_bin1644.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/560651/ft2_4FGL_J0126.8+2412_daily_bin1644.fits
.....................!
real 9.90
user 9.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/560651/ft1_filtered_4FGL_J0126.8+2412_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/560651/ft2_4FGL_J0126.8+2412_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/560651/ltcube_665452801_665712001_4FGL_J0126.8+2412_daily_bin1644.fits outfile=/scratch/kocevski/560651/expmap_665452801_665712001_4FGL_J0126.8+2412_daily_bin1644.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/560651/ltcube_665452801_665712001_4FGL_J0126.8+2412_daily_bin1644.fits
.....................!
real 155.71
user 151.12
sys 4.33

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/560651/ft1_filtered_4FGL_J0126.8+2412_daily_bin1644.fits scfile=/scratch/kocevski/560651/ft2_4FGL_J0126.8+2412_daily_bin1644.fits outfile=/scratch/kocevski/560651/cmap_665452801_665712001_4FGL_J0126.8+2412_daily_bin1644.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 0.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/560651/ft1_filtered_4FGL_J0126.8+2412_daily_bin1644.fits scfile=/scratch/kocevski/560651/ft2_4FGL_J0126.8+2412_daily_bin1644.fits outfile=/scratch/kocevski/560651/cmap_HighResolution_665452801_665712001_4FGL_J0126.8+2412_daily_bin1644.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 0.47
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.061       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2955       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10510E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .14653       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.447       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.085       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87622E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    179.23       1.0000         .10000E-03   10000.    
    14 'norm      '    .10267E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9929       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9587       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71597       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2102       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=   7265.568     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2414 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.061        9.2371       -.42093E-06   -.11010E-03
   2  Prefactor     6.7595        12.813        .21581E-05    .31918E-03
   3  Prefactor     2.2951        9.4988        .59355E-06   -.56327E-04
   4  Prefactor     .10000E-03    11.854       -.49559E-06** at limit **
   5  norm          .10000E-03    .33349        .38630E-07** at limit **
   6  norm          .14595        .66056        .30384E-06   -.59075E-03
   7  Prefactor     21.445        13.771        .88254E-06    .39526E-03
   8  Prefactor     17.075        29.224        .36561E-06    .18313E-04
   9  Prefactor     .10000E-03    1.7085        .16485E-07** at limit **
  10  Prefactor     .37323E-01    5.8364       -.38841E-06    .15299E-03
  11  Prefactor     .10000E-03    6.4616       -.61037E-07** at limit **
  12  Prefactor     .10000E-03    13.746       -.20904E-06** at limit **
  13  Prefactor     179.21        89.983       -.21226E-05   -.22470E-03
  14  norm          .10000E-03    .22925       -.12770E-06** at limit **
  15  Prefactor     .10000E-03    4.3025       -.49034E-07** at limit **
  16  Prefactor     .10000E-03    12.182        .37998E-06** at limit **
  17  norm          .10000E-03    1.2466       -.20006E-06** at limit **
  18  Prefactor     .10000E-03    74.299        .75193E-06** at limit **
  19  Prefactor     5.9935        7.8095        .34883E-05   -.55515E-03
  20  Prefactor     6.9576        5.2932       -.64963E-06   -.74436E-03
  21  Normalizat    .71622        .19830       -.14554E-05    .78846E-04
  22  Prefactor     1.2102        .12487        .37195E-06    .30841E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0611
  Prefactor  = 6.75954
  Prefactor  = 2.29515
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.145952
  Prefactor  = 21.4449
  Prefactor  = 17.075
  Prefactor  = 0.0001
  Prefactor  = 0.037323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 179.206
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99346
  Prefactor  = 6.9576
  Normalizat = 0.716218
  Prefactor  = 1.21015
 **********
 **   18 **HESSE 
 **********

 FCN=   7265.568     FROM HESSE     STATUS=OK           352 CALLS     2766 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.061        9.2653        .12046E-03   -1.5043    
   2  Prefactor     6.7595        13.052        .15429E-03   -1.5188    
   3  Prefactor     2.2951        9.4613        .27090E-03   -1.5405    
   4  Prefactor     .10000E-03    11.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4564        .95205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .14595        1.0809        .12960E-02   -1.5632    
   7  Prefactor     21.445        13.905        .86489E-04   -1.4781    
   8  Prefactor     17.075        29.179        .96898E-04   -1.4881    
   9  Prefactor     .10000E-03    1.7132        .10869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .37323E-01    8.1869        .51987E-01   -1.5669    
  11  Prefactor     .10000E-03    6.4964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     179.21        91.405        .15075E-03   -1.3023    
  14  norm          .10000E-03    .39542        .78132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3140        .17264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2589        .93116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    74.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9935        8.0802        .82011E-03   -1.5218    
  20  Prefactor     6.9576        5.3922        .15208E-03   -1.5180    
  21  Normalizat    .71622        .22366        .34919E-03   -1.0326    
  22  Prefactor     1.2102        .14138        .17961E-03   -.86019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92909e-08
Minuit parameter uncertainties:
  1  9.26646
  2  13.0576
  3  9.32221
  4  8.1057e-05
  5  1.18019e-05
  6  0.794142
  7  13.907
  8  29.2034
  9  5.882e-08
  10  1.10422
  11  1.5135e-05
  12  1.6148e-05
  13  91.4771
  14  1.34453e-05
  15  7.19979e-06
  16  5.3675e-05
  17  1.00271e-05
  18  0.000326388
  19  8.08171
  20  5.39253
  21  0.22395
  22  0.141426
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.514e-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.210e+00  1.414e-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.162e-01  2.240e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/560651/likelihoodResults_665452801_665712001_4FGL_J0126.8+2412_daily_bin1644.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) = 7265.5689352
delta logL = -0.000733697376745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7265.56820162
delta logL = -1.17358467833e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7551       1.0000          .0000       10.000    
     3 'Normalizat'    .71617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2102       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=   7265.568     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    215.35        .18142E-02** at limit **
   2  Index         2.7202        7.0957        .50000        .48452E-05
   3  Normalizat    .71622        .28582E-01    .34919E-03    .26534E-04
   4  Prefactor     1.2102        .18772E-01    .17961E-03    .48865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100216
  Index      = 2.72016
  Normalizat = 0.716217
  Prefactor  = 1.21015
 **********
 **   18 **HESSE 
 **********

 FCN=   7265.568     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    812.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7202        6.5839        .50000       -.47346    
   3  Normalizat    .71622        .65602E-01    .13967E-04   -1.0326    
   4  Prefactor     1.2102        .43086E-01    .71844E-05   -.86019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19563e-08
Minuit parameter uncertainties:
  1  0.0268488
  2  1858.03
  3  0.0656089
  4  0.0430871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/560651': 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): 102
logL (Free Index) = 7265.56820147
delta logL = 3.48300090991e-08

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.002e-04  2.685e-02  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.720e+00  1.858e+03  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.210e+00  4.309e-02  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.162e-01  6.561e-02  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/560651/cmap_HighResolution_665452801_665712001_4FGL_J0126.8+2412_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2022-02-05 00:20:18.479139', job_id='560651', GAL2='1.21', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1644049218.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1644' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 00:20:18 PST 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 560650: <4FGL_J0126.8+2412_daily_bin1644> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1644> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Feb  5 00:06:30 2022
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:07:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:07:21 2022
Terminated at Sat Feb  5 00:20:14 2022
Results reported at Sat Feb  5 00:20:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1644 21.7036 24.21 665452801 665712001 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 :                                   680.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             282.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            824 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 560651: <4FGL_J0126.8+2412_daily_bin1644> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1644> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb  5 00:06:30 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:07:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:07:21 2022
Terminated at Sat Feb  5 00:20:18 2022
Results reported at Sat Feb  5 00:20:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1644 21.7036 24.21 665452801 665712001 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 :                                   559.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             271.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            828 sec.

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

