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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin584
RA = 21.7036, Dec = 24.21
tmin = 390700801, tmax = 390960001
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='574174', job_status='RUN', time_executed='2021-08-14 00:44:04.310509', time_epoch_executed='1628927044.31' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574174

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574174/ft1_4FGL_J0126.8+2412_daily_bin584.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574174/ft2_4FGL_J0126.8+2412_daily_bin584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574174/ft1_4FGL_J0126.8+2412_daily_bin584.fits outfile=/scratch/kocevski/574174/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin584.fits ra=21.7036 dec=24.21 rad=12.0 tmin=390700801.0 tmax=390960001.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.35
user 6.89
sys 1.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574174/ft1_filtered_4FGL_J0126.8+2412_daily_bin584.fits" evtable="EVENTS" scfile=/scratch/kocevski/574174/ft2_4FGL_J0126.8+2412_daily_bin584.fits sctable="SC_DATA" outfile=/scratch/kocevski/574174/ltcube_390700801_390960001_4FGL_J0126.8+2412_daily_bin584.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/574174/ft2_4FGL_J0126.8+2412_daily_bin584.fits
.....................!
real 13.27
user 11.78
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574174/ft1_filtered_4FGL_J0126.8+2412_daily_bin584.fits evtable="EVENTS" scfile=/scratch/kocevski/574174/ft2_4FGL_J0126.8+2412_daily_bin584.fits sctable="SC_DATA" expcube=/scratch/kocevski/574174/ltcube_390700801_390960001_4FGL_J0126.8+2412_daily_bin584.fits outfile=/scratch/kocevski/574174/expmap_390700801_390960001_4FGL_J0126.8+2412_daily_bin584.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/574174/ltcube_390700801_390960001_4FGL_J0126.8+2412_daily_bin584.fits
.....................!
real 192.97
user 186.04
sys 6.16

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/574174/ft1_filtered_4FGL_J0126.8+2412_daily_bin584.fits scfile=/scratch/kocevski/574174/ft2_4FGL_J0126.8+2412_daily_bin584.fits outfile=/scratch/kocevski/574174/cmap_390700801_390960001_4FGL_J0126.8+2412_daily_bin584.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.41
user 0.38
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574174/ft1_filtered_4FGL_J0126.8+2412_daily_bin584.fits scfile=/scratch/kocevski/574174/ft2_4FGL_J0126.8+2412_daily_bin584.fits outfile=/scratch/kocevski/574174/cmap_HighResolution_390700801_390960001_4FGL_J0126.8+2412_daily_bin584.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.40
user 0.37
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.212       1.0000         .10000E-03   10000.    
     5 'norm      '    .10661       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4705       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7388       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3249       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11278E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71492E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96924       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0588       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=   7142.233     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2460 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4387        5.9761       -.23908E-06    .46476E-03
   2  Prefactor     8.1363        10.888       -.19848E-06    .26985E-03
   3  Prefactor     .10000E-03    24.652        .73356E-07** at limit **
   4  Prefactor     29.235        50.110        .56449E-05    .26379E-03
   5  norm          .10831        .60980       -.54108E-06    .13683E-03
   6  norm          .10000E-03    .27359       -.36850E-08** at limit **
   7  Prefactor     3.4713        9.5358       -.63553E-06    .40972E-03
   8  Prefactor     55.903        51.120        .22117E-05   -.98021E-04
   9  Prefactor     .50594        22.754       -.85863E-05    .21560E-03
  10  Prefactor     8.3443        6.6557       -.21425E-06    .81361E-04
  11  Prefactor     .10000E-03    10.495       -.42950E-06** at limit **
  12  Prefactor     .10000E-03    12.179       -.47951E-07** at limit **
  13  Prefactor     .10000E-03    28.797        .33751E-06** at limit **
  14  norm          1.7388        .66239       -.20260E-07    .25057E-03
  15  Prefactor     1.3341        18.625        .47171E-07    .10003E-03
  16  Prefactor     .10000E-03    6.7625        .56649E-07** at limit **
  17  norm          .10000E-03    2.1201       -.18135E-06** at limit **
  18  Prefactor     .10000E-03    99.914       -.10584E-05** at limit **
  19  Prefactor     .10000E-03    5.6191        .79682E-07** at limit **
  20  Prefactor     .10000E-03    2.0126        .68529E-07** at limit **
  21  Normalizat    .96961        .20379        .11883E-05    .59105E-03
  22  Prefactor     1.0585        .12431        .33363E-06    .10351E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4387
  Prefactor  = 8.13633
  Prefactor  = 0.0001
  Prefactor  = 29.2346
  norm       = 0.108308
  norm       = 0.0001
  Prefactor  = 3.47127
  Prefactor  = 55.9029
  Prefactor  = 0.505944
  Prefactor  = 8.34431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73879
  Prefactor  = 1.33407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 0.969613
  Prefactor  = 1.05852
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.233     FROM HESSE     STATUS=OK           352 CALLS     2812 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4387        5.9953        .10908E-02   -1.5337    
   2  Prefactor     8.1363        10.893        .70287E-03   -1.5137    
   3  Prefactor     .10000E-03    25.517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.235        51.962        .74127E-04   -1.4626    
   5  norm          .10831        1.0016        .97705E-03   -1.5642    
   6  norm          .10000E-03    .27594        .43137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4713        9.6309        .10854E-02   -1.5335    
   8  Prefactor     55.903        53.751        .53675E-04   -1.4211    
   9  Prefactor     .50594        25.631        .28947E-02   -1.5566    
  10  Prefactor     8.3443        6.6782        .13875E-03   -1.5130    
  11  Prefactor     .10000E-03    10.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7388        .66229        .41022E-04   -1.5444    
  15  Prefactor     1.3341        18.920        .38195E-03   -1.5477    
  16  Prefactor     .10000E-03    6.7662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.6743        .23534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    100.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.1193        .60277E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0284        .11707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96961        .23386        .30637E-03   -.94055    
  22  Prefactor     1.0585        .14458        .19090E-03   -.90804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40039e-09
Minuit parameter uncertainties:
  1  5.99635
  2  10.8953
  3  0.000104355
  4  52.043
  5  0.658457
  6  5.49651e-07
  7  9.63524
  8  53.7974
  9  7.20476
  10  6.67882
  11  5.46259e-05
  12  1.70564e-05
  13  0.000103266
  14  0.662295
  15  10.0515
  16  5.6781e-06
  17  3.32712e-05
  18  0.000681975
  19  0.000338335
  20  2.40615e-06
  21  0.23411
  22  0.14463
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  5.463e-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.059e+00  1.446e-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:  9.696e-01  2.341e-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: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574174/likelihoodResults_390700801_390960001_4FGL_J0126.8+2412_daily_bin584.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): 0
logL (Free Index) = 7142.23318941
delta logL = -0.000447352413175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7142.23274206
delta logL = -9.03764885152e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7665       1.0000          .0000       10.000    
     3 'Normalizat'    .96961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0585       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.

 FCN=   7142.233     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.118        .90712E-02** at limit **
   2  Index         2.7734        6.3835        .50000       -.61574E-05
   3  Normalizat    .96961        .18699        .69254E-01    .22759E-03
   4  Prefactor     1.0585        .12183        .39434E-01    .26362E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.77345
  Normalizat = 0.969614
  Prefactor  = 1.05852
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.233     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7734        6.3774        .50000       -.46152    
   3  Normalizat    .96961        .21725        .30637E-03   -.94055    
   4  Prefactor     1.0585        .14180        .19090E-03   -.90804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.9297e-11
Minuit parameter uncertainties:
  1  4.29732e-05
  2  4.57834
  3  0.217446
  4  0.141854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574174': 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) = 7142.23274204
delta logL = 1.87083060155e-08

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.297e-05  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.773e+00  4.578e+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.059e+00  1.419e-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:  9.696e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/574174/cmap_HighResolution_390700801_390960001_4FGL_J0126.8+2412_daily_bin584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-08-14 00:56:25.366211', job_id='574174', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1628927785.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='584' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 574174: <4FGL_J0126.8+2412_daily_bin584> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin584> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:48 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:43:16 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:43:16 2021
Terminated at Sat Aug 14 00:56:26 2021
Results reported at Sat Aug 14 00:56:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin584 21.7036 24.21 390700801 390960001 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            938 sec.

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

