/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 81 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0126.8+2412_daily_bin368
RA = 21.7036, Dec = 24.21
tmin = 334713601, tmax = 334972801
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='573853', job_status='RUN', time_executed='2021-08-14 00:43:02.671724', time_epoch_executed='1628926982.67' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573853

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573853/ft1_4FGL_J0126.8+2412_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573853/ft2_4FGL_J0126.8+2412_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573853/ft1_4FGL_J0126.8+2412_daily_bin368.fits outfile=/scratch/kocevski/573853/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin368.fits ra=21.7036 dec=24.21 rad=12.0 tmin=334713601.0 tmax=334972801.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 2.91
user 2.68
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573853/ft2_4FGL_J0126.8+2412_daily_bin368.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/573853/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin368.fits evtable="EVENTS" outfile="/scratch/kocevski/573853/ft1_filtered_4FGL_J0126.8+2412_daily_bin368.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573853/ft1_filtered_4FGL_J0126.8+2412_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/573853/ft2_4FGL_J0126.8+2412_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/573853/ltcube_334713601_334972801_4FGL_J0126.8+2412_daily_bin368.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/573853/ft2_4FGL_J0126.8+2412_daily_bin368.fits
.....................!
real 10.02
user 9.72
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573853/ft1_filtered_4FGL_J0126.8+2412_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/573853/ft2_4FGL_J0126.8+2412_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/573853/ltcube_334713601_334972801_4FGL_J0126.8+2412_daily_bin368.fits outfile=/scratch/kocevski/573853/expmap_334713601_334972801_4FGL_J0126.8+2412_daily_bin368.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/573853/ltcube_334713601_334972801_4FGL_J0126.8+2412_daily_bin368.fits
.....................!
real 157.15
user 152.87
sys 3.97

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/573853/ft1_filtered_4FGL_J0126.8+2412_daily_bin368.fits scfile=/scratch/kocevski/573853/ft2_4FGL_J0126.8+2412_daily_bin368.fits outfile=/scratch/kocevski/573853/cmap_334713601_334972801_4FGL_J0126.8+2412_daily_bin368.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573853/ft1_filtered_4FGL_J0126.8+2412_daily_bin368.fits scfile=/scratch/kocevski/573853/ft2_4FGL_J0126.8+2412_daily_bin368.fits outfile=/scratch/kocevski/573853/cmap_HighResolution_334713601_334972801_4FGL_J0126.8+2412_daily_bin368.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.48
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0839       1.0000         .10000E-03   10000.    
     6 'norm      '    .36490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .41029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16158E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .75373       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7736       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4359       1.0000         .10000E-03   10000.    
    17 'norm      '    7.1869       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9438       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3088       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85094       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=   7274.686     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2400 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.079        6.7767        .22853E-07    .12116E-04
   2  Prefactor     .10000E-03    4.3940        .19102E-07** at limit **
   3  Prefactor     .10001E-03    7.3954        .21782E-05** at limit **
   4  Prefactor     .10000E-03    18.524        .65693E-06** at limit **
   5  norm          1.0838        .60719        .78689E-08    .72375E-03
   6  norm          .36471        1.0633        .47676E-06   -.40073E-03
   7  Prefactor     .38222        5.7164        .85293E-06   -.25110E-03
   8  Prefactor     60.043        32.618        .41131E-06    .70059E-03
   9  Prefactor     .10001E-03    4.8023       -.23420E-05** at limit **
  10  Prefactor     .10000E-03    2.8184       -.34324E-07** at limit **
  11  Prefactor     .10000E-03    3.7163        .97218E-08** at limit **
  12  Prefactor     .10000E-03    9.4267       -.17991E-06** at limit **
  13  Prefactor     .10000E-03    20.367       -.56941E-06** at limit **
  14  norm          .75371        .48739        .42993E-08   -.13845E-03
  15  Prefactor     9.7730        10.077        .24219E-05    .34646E-04
  16  Prefactor     6.4345        20.411        .18301E-05    .14550E-03
  17  norm          7.1865        4.5735        .21842E-07   -.15292E-03
  18  Prefactor     .10000E-03    338.94       -.15168E-05** at limit **
  19  Prefactor     5.9437        7.6611        .24212E-07   -.47680E-04
  20  Prefactor     .10000E-03    1.8874       -.32814E-07** at limit **
  21  Normalizat    1.3089        .18788       -.10511E-05   -.46763E-04
  22  Prefactor     .85094        .11611       -.35337E-06   -.97516E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0789
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  norm       = 1.08381
  norm       = 0.364709
  Prefactor  = 0.382219
  Prefactor  = 60.0432
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.753708
  Prefactor  = 9.77298
  Prefactor  = 6.4345
  norm       = 7.18646
  Prefactor  = 0.000100002
  Prefactor  = 5.94374
  Prefactor  = 0.0001
  Normalizat = 1.30886
  Prefactor  = 0.850939
 **********
 **   18 **HESSE 
 **********

 FCN=   7274.686     FROM HESSE     STATUS=OK           348 CALLS     2748 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.079        6.7773        .12621E-03   -1.5073    
   2  Prefactor     .10000E-03    4.4100        .17460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    8.0254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0838        .59975        .47657E-04   -1.5500    
   6  norm          .36471        1.2657        .13890E-02   -1.5587    
   7  Prefactor     .38222        51.413        .38635E-02   -1.5584    
   8  Prefactor     60.043        32.647        .51775E-04   -1.4157    
   9  Prefactor     .10001E-03    7.9556        .28784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8393        .13973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7301        .16055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .75371        .48997        .46277E-04   -1.5534    
  15  Prefactor     9.7730        10.676        .64090E-03   -1.5083    
  16  Prefactor     6.4345        20.530        .15821E-03   -1.5201    
  17  norm          7.1865        4.5683        .13563E-03   -1.5172    
  18  Prefactor     .10000E-03    340.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9437        7.6419        .16471E-03   -1.5220    
  20  Prefactor     .10000E-03    1.8960        .11443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3089        .21854        .26781E-03   -.83302    
  22  Prefactor     .85094        .13582        .20615E-03   -.97877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08125e-08
Minuit parameter uncertainties:
  1  6.77778
  2  3.26039e-06
  3  0.000418137
  4  0.000208466
  5  0.599753
  6  1.26582
  7  8.87255
  8  32.6568
  9  0.000541898
  10  1.5276e-06
  11  2.57667e-06
  12  3.58051e-05
  13  0.000173068
  14  0.489972
  15  10.6784
  16  20.5526
  17  4.56853
  18  0.00177529
  19  7.64312
  20  2.15407e-06
  21  0.21869
  22  0.135872
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.577e-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:  8.509e-01  1.359e-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.309e+00  2.187e-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: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573853/likelihoodResults_334713601_334972801_4FGL_J0126.8+2412_daily_bin368.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) = 7274.68682009
delta logL = -0.00127556088228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7274.68554453
delta logL = 5.0295057008e-10

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.7645       1.0000          .0000       10.000    
     3 'Normalizat'    1.3089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85095       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=   7274.505     FROM MIGRAD    STATUS=FAILED       204 CALLS      354 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38553E-03    .41997E-01    .51620E-03** at limit **
   2  Index        10.0000        8.7781        .50000    ** at limit **
   3  Normalizat    1.2778        .63347E-01    .26781E-03   -.34512E-04
   4  Prefactor     .86377        .38829E-01    .20615E-03   -.32427E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7274.505     FROM SIMPLEX   STATUS=UNCHANGED    105 CALLS      459 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38553E-03    .41997E-01    .23927E-05** at limit **
   2  Index        10.0000        8.7781        .37873E-01** at limit **
   3  Normalizat    1.2778        .63347E-01    .41199E-05   -.34512E-04
   4  Prefactor     .86377        .38829E-01    .65921E-06   -.32427E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7274.505     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      498 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38554E-03    .81270E-03    .32170E-04** at limit **
   2  Index        10.0000        7.7461        .50000    ** at limit **
   3  Normalizat    1.2778        .22037        .10712E-04   -.23348E-05
   4  Prefactor     .86377        .13817        .82459E-05   -.14063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000385538
  Index      = 10
  Normalizat = 1.27776
  Prefactor  = 0.86377
 **********
 **   18 **HESSE 
 **********

 FCN=   7274.505     FROM HESSE     STATUS=OK            31 CALLS      529 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38554E-03    .75764E-03    .12868E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        7.4717        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2778        .22050        .21425E-05   -.84233    
   4  Prefactor     .86377        .13815        .16492E-05   -.97419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19877e-11
Minuit parameter uncertainties:
  1  0.000757644
  2  0.00109108
  3  0.220666
  4  0.138207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573853': 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) = 7274.50471659
delta logL = 0.18082793618

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  3.855e-04  7.576e-04  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  1.000e+01  1.091e-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:  8.638e-01  1.382e-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.278e+00  2.207e-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/573853/cmap_HighResolution_334713601_334972801_4FGL_J0126.8+2412_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-08-14 00:53:07.604830', job_id='573853', GAL2='0.86', fit_tolerance='1e-08', EG2='1.28', EG='1.31', time_epoch_completed='1628927587.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.81e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='368' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:53:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 573853: <4FGL_J0126.8+2412_daily_bin368> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin368> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:29 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:41:34 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:41:34 2021
Terminated at Sat Aug 14 00:53:08 2021
Results reported at Sat Aug 14 00:53:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin368 21.7036 24.21 334713601 334972801 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 :                                   601.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            759 sec.

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

