/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 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7483
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0126.8+2412_daily_bin222
RA = 21.7036, Dec = 24.21
tmin = 296870401, tmax = 297129601
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='572550', job_status='RUN', time_executed='2021-08-14 00:38:33.712115', time_epoch_executed='1628926713.71' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572550/ft1_4FGL_J0126.8+2412_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572550/ft2_4FGL_J0126.8+2412_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572550/ft1_4FGL_J0126.8+2412_daily_bin222.fits outfile=/scratch/kocevski/572550/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin222.fits ra=21.7036 dec=24.21 rad=12.0 tmin=296870401.0 tmax=297129601.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.60
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572550/ft1_filtered_4FGL_J0126.8+2412_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/572550/ft2_4FGL_J0126.8+2412_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/572550/ltcube_296870401_297129601_4FGL_J0126.8+2412_daily_bin222.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/572550/ft2_4FGL_J0126.8+2412_daily_bin222.fits
.....................!
real 12.50
user 12.07
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572550/ft1_filtered_4FGL_J0126.8+2412_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/572550/ft2_4FGL_J0126.8+2412_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/572550/ltcube_296870401_297129601_4FGL_J0126.8+2412_daily_bin222.fits outfile=/scratch/kocevski/572550/expmap_296870401_297129601_4FGL_J0126.8+2412_daily_bin222.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/572550/ltcube_296870401_297129601_4FGL_J0126.8+2412_daily_bin222.fits
.....................!
real 194.41
user 187.41
sys 6.59

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/572550/ft1_filtered_4FGL_J0126.8+2412_daily_bin222.fits scfile=/scratch/kocevski/572550/ft2_4FGL_J0126.8+2412_daily_bin222.fits outfile=/scratch/kocevski/572550/cmap_296870401_297129601_4FGL_J0126.8+2412_daily_bin222.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572550/ft1_filtered_4FGL_J0126.8+2412_daily_bin222.fits scfile=/scratch/kocevski/572550/ft2_4FGL_J0126.8+2412_daily_bin222.fits outfile=/scratch/kocevski/572550/cmap_HighResolution_296870401_297129601_4FGL_J0126.8+2412_daily_bin222.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3677       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12662       1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.620       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3239       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0199       1.0000         .10000E-03   10000.    
    14 'norm      '    .38855       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8144       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1343       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71368       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2946       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=   7647.575     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2449 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8051        4.2991       -.14251E-05    .13327E-02
   2  Prefactor     .10000E-03    6.0380        .96923E-07** at limit **
   3  Prefactor     .23499        5.5787       -.58995E-07    .12802E-05
   4  Prefactor     .10000E-03    10.002       -.31896E-07** at limit **
   5  norm          2.3675        .74285        .16958E-07    .96868E-04
   6  norm          .10000E-03    .34832       -.94744E-08** at limit **
   7  Prefactor     .10064E-03    9.8945       -.19166E-07** at limit **
   8  Prefactor     59.601        44.277       -.32607E-05   -.27435E-03
   9  Prefactor     3.3242        3.2650        .18399E-06    .10021E-03
  10  Prefactor     9.4715        6.4224       -.53568E-06   -.39686E-03
  11  Prefactor     .10000E-03    3.0065       -.16175E-07** at limit **
  12  Prefactor     .10000E-03    10.637        .31209E-07** at limit **
  13  Prefactor     2.9632        209.14       -.17281E-04   -.58479E-04
  14  norm          .38932        .58935        .14349E-06    .22688E-03
  15  Prefactor     2.8105        7.3127       -.61425E-06   -.21358E-03
  16  Prefactor     .10000E-03    28.040       -.34550E-06** at limit **
  17  norm          .10000E-03    1.5587       -.83718E-07** at limit **
  18  Prefactor     .10000E-03    43.890       -.12540E-07** at limit **
  19  Prefactor     1.1298        11.650        .14536E-05   -.23338E-03
  20  Prefactor     .10000E-03    1.9491        .13391E-07** at limit **
  21  Normalizat    .71390        .20128        .90831E-06    .12862E-06
  22  Prefactor     1.2946        .13073       -.41866E-07    .48001E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.80509
  Prefactor  = 0.0001
  Prefactor  = 0.234987
  Prefactor  = 0.0001
  norm       = 2.36749
  norm       = 0.0001
  Prefactor  = 0.000100642
  Prefactor  = 59.6014
  Prefactor  = 3.32418
  Prefactor  = 9.47148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.96318
  norm       = 0.389316
  Prefactor  = 2.8105
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12979
  Prefactor  = 0.0001
  Normalizat = 0.713904
  Prefactor  = 1.29464
 **********
 **   18 **HESSE 
 **********

 FCN=   7647.575     FROM HESSE     STATUS=OK           356 CALLS     2805 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8051        4.7341        .91769E-03   -1.5270    
   2  Prefactor     .10000E-03    6.0648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .23499        82.386        .39782E-02   -1.5611    
   4  Prefactor     .10000E-03    10.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3675        .74302        .40450E-04   -1.5400    
   6  norm          .10000E-03    .35700        .10060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10064E-03    12.530        .81875E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.601        45.629        .51961E-04   -1.4162    
   9  Prefactor     3.3242        3.2741        .14848E-03   -1.5343    
  10  Prefactor     9.4715        6.4784        .13020E-03   -1.5092    
  11  Prefactor     .10000E-03    3.0146        .14807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9632        221.92        .23353E-03   -1.5364    
  14  norm          .38932        .54957        .76672E-03   -1.5583    
  15  Prefactor     2.8105        7.3858        .24246E-03   -1.5373    
  16  Prefactor     .10000E-03    28.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5687        .10653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1298        12.647        .43784E-03   -1.5495    
  20  Prefactor     .10000E-03    1.9584        .11922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71390        .22489        .35571E-03   -1.0335    
  22  Prefactor     1.2946        .14749        .18304E-03   -.83467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97858e-09
Minuit parameter uncertainties:
  1  4.73445
  2  6.24786e-07
  3  8.81026
  4  6.38415e-06
  5  0.743027
  6  1.29044e-06
  7  0.00567527
  8  45.6562
  9  3.27428
  10  6.47884
  11  7.00981e-06
  12  6.37197e-06
  13  51.4855
  14  0.549578
  15  7.38817
  16  4.47435e-05
  17  3.21844e-06
  18  4.25466e-06
  19  7.56171
  20  8.16851e-07
  21  0.225182
  22  0.147535
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  7.010e-06  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.295e+00  1.475e-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.139e-01  2.252e-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: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/572550/likelihoodResults_296870401_297129601_4FGL_J0126.8+2412_daily_bin222.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) = 7647.57632904
delta logL = -0.00157259817661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7647.57475641
delta logL = 3.00842657452e-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.7522       1.0000          .0000       10.000    
     3 'Normalizat'    .71391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2946       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=   7647.575     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.547        .14842E-01** at limit **
   2  Index         2.3664        8.1180        .50000       -.12492E-05
   3  Normalizat    .71390        .13776E-01    .35571E-03    .32664E-04
   4  Prefactor     1.2946        .93313E-02    .18304E-03    .76148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36639
  Normalizat = 0.713905
  Prefactor  = 1.29464
 **********
 **   18 **HESSE 
 **********

 FCN=   7647.575     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      276 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    260.60        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3664        5.6832        .50000       -.55474    
   3  Normalizat    .71390        .47548E-01    .14228E-04   -1.0335    
   4  Prefactor     1.2946        .32207E-01    .73215E-05   -.83467    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13693e-07
Minuit parameter uncertainties:
  1  1.53897e-05
  2  1155.36
  3  0.0475505
  4  0.0322078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572550': 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) = 7647.57475538
delta logL = 1.06200877781e-06

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.539e-05  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.366e+00  1.155e+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.295e+00  3.221e-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.139e-01  4.755e-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/572550/cmap_HighResolution_296870401_297129601_4FGL_J0126.8+2412_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-08-14 00:50:54.482230', job_id='572550', GAL2='1.29', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1628927454.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='222' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:50:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 572550: <4FGL_J0126.8+2412_daily_bin222> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin222> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 00:36:05 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:38:20 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:38:20 2021
Terminated at Sat Aug 14 00:50:55 2021
Results reported at Sat Aug 14 00:50:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin222 21.7036 24.21 296870401 297129601 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 :                                   737.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            890 sec.

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

