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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin754
RA = 21.7036, Dec = 24.21
tmin = 434764801, tmax = 435024001
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='575597', job_status='RUN', time_executed='2021-08-14 00:51:30.192642', time_epoch_executed='1628927490.19' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575597/ft1_4FGL_J0126.8+2412_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575597/ft2_4FGL_J0126.8+2412_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575597/ft1_4FGL_J0126.8+2412_daily_bin754.fits outfile=/scratch/kocevski/575597/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin754.fits ra=21.7036 dec=24.21 rad=12.0 tmin=434764801.0 tmax=435024001.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 10.45
user 5.43
sys 4.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575597/ft2_4FGL_J0126.8+2412_daily_bin754.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/575597/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/575597/ft1_filtered_4FGL_J0126.8+2412_daily_bin754.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 5.33
user 0.34
sys 4.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575597/ft1_filtered_4FGL_J0126.8+2412_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/575597/ft2_4FGL_J0126.8+2412_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/575597/ltcube_434764801_435024001_4FGL_J0126.8+2412_daily_bin754.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/575597/ft2_4FGL_J0126.8+2412_daily_bin754.fits
.....................!
real 18.31
user 12.38
sys 5.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575597/ft1_filtered_4FGL_J0126.8+2412_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/575597/ft2_4FGL_J0126.8+2412_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/575597/ltcube_434764801_435024001_4FGL_J0126.8+2412_daily_bin754.fits outfile=/scratch/kocevski/575597/expmap_434764801_435024001_4FGL_J0126.8+2412_daily_bin754.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/575597/ltcube_434764801_435024001_4FGL_J0126.8+2412_daily_bin754.fits
.....................!
real 197.40
user 185.95
sys 10.96

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/575597/ft1_filtered_4FGL_J0126.8+2412_daily_bin754.fits scfile=/scratch/kocevski/575597/ft2_4FGL_J0126.8+2412_daily_bin754.fits outfile=/scratch/kocevski/575597/cmap_434764801_435024001_4FGL_J0126.8+2412_daily_bin754.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 5.23
user 0.38
sys 4.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575597/ft1_filtered_4FGL_J0126.8+2412_daily_bin754.fits scfile=/scratch/kocevski/575597/ft2_4FGL_J0126.8+2412_daily_bin754.fits outfile=/scratch/kocevski/575597/cmap_HighResolution_434764801_435024001_4FGL_J0126.8+2412_daily_bin754.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 5.31
user 0.37
sys 4.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.784       1.0000         .10000E-03   10000.    
     5 'norm      '    .28721       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.717       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8703       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10767E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.210       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6020       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.823       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3692       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.806       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0364       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90691       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=   3384.533     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2393 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.4439       -.11761E-07** at limit **
   2  Prefactor     37.748        28.073        .84044E-06   -.17376E-03
   3  Prefactor     .10000E-03    6.8254        .21095E-07** at limit **
   4  Prefactor     54.708        59.925       -.65322E-04   -.12811E-03
   5  norm          .28839        .81472        .45054E-05    .16525E-02
   6  norm          3.9131        2.2677       -.10408E-06   -.12322E-03
   7  Prefactor     14.705        19.148       -.14506E-05   -.21440E-04
   8  Prefactor     .10000E-03    29.980        .33054E-06** at limit **
   9  Prefactor     9.8651        9.6072        .61569E-05   -.37260E-03
  10  Prefactor     .10000E-03    15.708       -.35079E-06** at limit **
  11  Prefactor     .10000E-03    8.8679        .25231E-07** at limit **
  12  Prefactor     24.203        38.433       -.46687E-05   -.26615E-04
  13  Prefactor     .10000E-03    138.51        .20059E-04** at limit **
  14  norm          2.6016        1.0998       -.61886E-07   -.33412E-03
  15  Prefactor     .10000E-03    7.5028       -.11457E-06** at limit **
  16  Prefactor     24.812        48.104       -.10637E-04   -.37859E-05
  17  norm          4.3692        4.1219       -.39715E-07    .53711E-04
  18  Prefactor     .10000E-03    82.076       -.59593E-05** at limit **
  19  Prefactor     19.807        15.679        .12826E-05   -.52599E-05
  20  Prefactor     .10000E-03    2.6275       -.25848E-07** at limit **
  21  Normalizat    1.0364        .28144        .46881E-05   -.31304E-03
  22  Prefactor     .90686        .17439       -.32335E-06   -.13124E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 37.7481
  Prefactor  = 0.0001
  Prefactor  = 54.7083
  norm       = 0.288385
  norm       = 3.91308
  Prefactor  = 14.7051
  Prefactor  = 0.0001
  Prefactor  = 9.86511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2029
  Prefactor  = 0.0001
  norm       = 2.60163
  Prefactor  = 0.0001
  Prefactor  = 24.8125
  norm       = 4.36916
  Prefactor  = 0.0001
  Prefactor  = 19.8069
  Prefactor  = 0.0001
  Normalizat = 1.03644
  Prefactor  = 0.906864
 **********
 **   18 **HESSE 
 **********

 FCN=   3384.533     FROM HESSE     STATUS=OK           340 CALLS     2733 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4444        .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.748        28.179        .65224E-04   -1.4478    
   3  Prefactor     .10000E-03    6.8320        .14845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     54.708        59.874        .27096E-03   -1.4227    
   5  norm          .28839        .77738        .78319E-03   -1.5601    
   6  norm          3.9131        2.2650        .63989E-04   -1.5312    
   7  Prefactor     14.705        19.155        .10441E-03   -1.4941    
   8  Prefactor     .10000E-03    29.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8651        9.5646        .12755E-03   -1.5080    
  10  Prefactor     .10000E-03    16.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8916        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.203        38.462        .81411E-04   -1.4724    
  13  Prefactor     .10000E-03    138.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6016        1.0997        .38161E-04   -1.5385    
  15  Prefactor     .10000E-03    7.5302        .15560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.812        48.062        .80402E-04   -1.4711    
  17  norm          4.3692        4.1218        .10979E-03   -1.5290    
  18  Prefactor     .10000E-03    82.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.807        15.676        .89998E-04   -1.4818    
  20  Prefactor     .10000E-03    2.6319        .92097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0364        .32859        .29811E-03   -.91819    
  22  Prefactor     .90686        .20437        .20167E-03   -.95902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72435e-09
Minuit parameter uncertainties:
  1  2.12308e-06
  2  28.1893
  3  3.60495e-06
  4  59.94
  5  0.777409
  6  2.26506
  7  19.1631
  8  9.07609e-05
  9  9.56611
  10  5.99544e-05
  11  5.04933e-07
  12  38.5016
  13  7.32535e-05
  14  1.09966
  15  1.82603e-05
  16  48.1375
  17  4.12204
  18  2.34537e-05
  19  15.6795
  20  3.78228e-06
  21  0.329239
  22  0.204543
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  5.049e-07  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:  9.069e-01  2.045e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.036e+00  3.292e-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: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575597/likelihoodResults_434764801_435024001_4FGL_J0126.8+2412_daily_bin754.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) = 3384.53337753
delta logL = -0.000535467722784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3384.53284205
delta logL = 7.78982212069e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7468       1.0000          .0000       10.000    
     3 'Normalizat'    1.0365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90686       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=   3384.533     FROM MIGRAD    STATUS=FAILED        90 CALLS      242 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10196E-03    251.97        .17034E-02** at limit **
   2  Index         2.6413        5.7105        .50000        .96436E-05
   3  Normalizat    1.0364        .37982E-01    .29810E-03   -.45154E-04
   4  Prefactor     .90686        .24350E-01    .20167E-03   -.18942E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3384.533     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      371 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10196E-03    251.97        .57174E-03** at limit **
   2  Index         2.6413        5.7105        .75785E-04    .96436E-05
   3  Normalizat    1.0364        .37982E-01    .21656E-05   -.45154E-04
   4  Prefactor     .90686        .24350E-01    .74888E-06   -.18942E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3384.533     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      414 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    231.36        .34068E-02** at limit **
   2  Index         2.3619        7.1960        .50000        .11028E-06
   3  Normalizat    1.0364        .35182E-01    .11924E-04    .17333E-03
   4  Prefactor     .90686        .22555E-01    .80667E-05    .27595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3619
  Normalizat = 1.03645
  Prefactor  = 0.906861
 **********
 **   18 **HESSE 
 **********

 FCN=   3384.533     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      443 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    953.74        .68136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3619        7.4491        .50000       -.55580    
   3  Normalizat    1.0364        .80574E-01    .23848E-05   -.91819    
   4  Prefactor     .90686        .51664E-01    .16133E-05   -.95902    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.26168e-09
Minuit parameter uncertainties:
  1  3.58395e-05
  2  1747.64
  3  0.0805839
  4  0.0516667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575597': 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) = 3384.53284145
delta logL = 6.12346866546e-07

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  3.584e-05  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.362e+00  1.748e+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:  9.069e-01  5.167e-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:  1.036e+00  8.058e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/575597/cmap_HighResolution_434764801_435024001_4FGL_J0126.8+2412_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-08-14 01:01:18.980305', job_id='575597', GAL2='0.91', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1628928078.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='754' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 575597: <4FGL_J0126.8+2412_daily_bin754> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin754> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 00:45:37 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:46:17 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:46:17 2021
Terminated at Sat Aug 14 01:01:20 2021
Results reported at Sat Aug 14 01:01:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin754 21.7036 24.21 434764801 435024001 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 :                                   659.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             188.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            943 sec.

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

