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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin611
RA = 21.7036, Dec = 24.21
tmin = 397699201, tmax = 397958401
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='574243', job_status='RUN', time_executed='2021-08-14 00:44:07.776304', time_epoch_executed='1628927047.78' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574243

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574243/ft1_4FGL_J0126.8+2412_daily_bin611.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574243/ft2_4FGL_J0126.8+2412_daily_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574243/ft1_4FGL_J0126.8+2412_daily_bin611.fits outfile=/scratch/kocevski/574243/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin611.fits ra=21.7036 dec=24.21 rad=12.0 tmin=397699201.0 tmax=397958401.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 4.38
user 3.35
sys 1.01

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574243/ft2_4FGL_J0126.8+2412_daily_bin611.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/574243/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin611.fits evtable="EVENTS" outfile="/scratch/kocevski/574243/ft1_filtered_4FGL_J0126.8+2412_daily_bin611.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.40
user 0.35
sys 1.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574243/ft1_filtered_4FGL_J0126.8+2412_daily_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/574243/ft2_4FGL_J0126.8+2412_daily_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/574243/ltcube_397699201_397958401_4FGL_J0126.8+2412_daily_bin611.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/574243/ft2_4FGL_J0126.8+2412_daily_bin611.fits
.....................!
real 14.71
user 13.34
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574243/ft1_filtered_4FGL_J0126.8+2412_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/574243/ft2_4FGL_J0126.8+2412_daily_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/574243/ltcube_397699201_397958401_4FGL_J0126.8+2412_daily_bin611.fits outfile=/scratch/kocevski/574243/expmap_397699201_397958401_4FGL_J0126.8+2412_daily_bin611.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/574243/ltcube_397699201_397958401_4FGL_J0126.8+2412_daily_bin611.fits
.....................!
real 193.15
user 187.04
sys 5.70

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/574243/ft1_filtered_4FGL_J0126.8+2412_daily_bin611.fits scfile=/scratch/kocevski/574243/ft2_4FGL_J0126.8+2412_daily_bin611.fits outfile=/scratch/kocevski/574243/cmap_397699201_397958401_4FGL_J0126.8+2412_daily_bin611.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.42
user 0.37
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574243/ft1_filtered_4FGL_J0126.8+2412_daily_bin611.fits scfile=/scratch/kocevski/574243/ft2_4FGL_J0126.8+2412_daily_bin611.fits outfile=/scratch/kocevski/574243/cmap_HighResolution_397699201_397958401_4FGL_J0126.8+2412_daily_bin611.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.44
user 0.42
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8563       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .95519       1.0000         .10000E-03   10000.    
     6 'norm      '    .49447       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.852       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.328       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5715       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.354       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78018       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0530       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=   6991.017     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2355 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6093       -.10076E-07** at limit **
   2  Prefactor     3.8558        11.136        .36179E-05    .18481E-04
   3  Prefactor     9.0257        11.656       -.15188E-06   -.10110E-03
   4  Prefactor     .10000E-03    12.923       -.98824E-06** at limit **
   5  norm          .95532        .63223        .76845E-07    .63116E-03
   6  norm          .49579        .98079        .24688E-06    .15754E-02
   7  Prefactor     .10000E-03    3.3145        .53014E-08** at limit **
   8  Prefactor     .10000E-03    14.442        .12346E-05** at limit **
   9  Prefactor     .10000E-03    4.4941       -.95740E-07** at limit **
  10  Prefactor     3.6731        7.2607        .32277E-05   -.20752E-03
  11  Prefactor     .10000E-03    13.258       -.86065E-07** at limit **
  12  Prefactor     .10000E-03    24.563       -.47383E-06** at limit **
  13  Prefactor     .10000E-03    53.142        .45466E-06** at limit **
  14  norm          1.2932        .68717        .24924E-07   -.13121E-03
  15  Prefactor     13.853        9.7064        .27912E-06    .39083E-04
  16  Prefactor     19.328        18.166       -.21113E-07   -.36921E-04
  17  norm          1.5718        2.8011        .94762E-07   -.10240E-03
  18  Prefactor     24.360        84.314       -.41038E-06   -.62433E-06
  19  Prefactor     .10000E-03    9.5850        .70924E-07** at limit **
  20  Prefactor     .10000E-03    3.0688        .34227E-07** at limit **
  21  Normalizat    .78027        .19003       -.21498E-05   -.75824E-04
  22  Prefactor     1.0530        .11778        .94105E-07   -.24254E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.8558
  Prefactor  = 9.02569
  Prefactor  = 0.0001
  norm       = 0.95532
  norm       = 0.495793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.2932
  Prefactor  = 13.8526
  Prefactor  = 19.3282
  norm       = 1.57179
  Prefactor  = 24.3603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.780268
  Prefactor  = 1.05297
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.017     FROM HESSE     STATUS=OK           342 CALLS     2697 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6104        .13189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8558        11.157        .10275E-02   -1.5315    
   3  Prefactor     9.0257        11.627        .13338E-03   -1.5107    
   4  Prefactor     .10000E-03    12.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .95532        .61585        .51484E-04   -1.5512    
   6  norm          .49579        .88016        .11111E-02   -1.5567    
   7  Prefactor     .10000E-03    3.3170        .14867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6258        .34598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6731        7.1698        .10530E-02   -1.5325    
  11  Prefactor     .10000E-03    13.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2932        .67930        .48262E-04   -1.5481    
  15  Prefactor     13.853        9.7084        .10762E-03   -1.4963    
  16  Prefactor     19.328        18.155        .91104E-04   -1.4828    
  17  norm          1.5718        2.7690        .18051E-03   -1.5457    
  18  Prefactor     24.360        84.347        .81170E-04   -1.4720    
  19  Prefactor     .10000E-03    9.8038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2008        .28603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78027        .21739        .31530E-03   -1.0080    
  22  Prefactor     1.0530        .13676        .18007E-03   -.90984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26409e-10
Minuit parameter uncertainties:
  1  1.75652e-06
  2  11.163
  3  11.63
  4  9.31739e-06
  5  0.615858
  6  0.880181
  7  3.03942e-07
  8  1.4001e-06
  9  1.35648e-05
  10  7.17145
  11  5.28479e-06
  12  1.6986e-05
  13  6.79172e-06
  14  0.679308
  15  9.7095
  16  18.1603
  17  2.76923
  18  84.7638
  19  5.90705e-06
  20  4.59899e-06
  21  0.217633
  22  0.136802
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  5.285e-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.053e+00  1.368e-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.803e-01  2.176e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574243/likelihoodResults_397699201_397958401_4FGL_J0126.8+2412_daily_bin611.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) = 6991.01780086
delta logL = -0.000354052775947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6991.01744722
delta logL = -4.13696398027e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13351E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8399       1.0000          .0000       10.000    
     3 'Normalizat'    .78049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0528       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=   6991.017     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      225 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10135E-03    20.837        .90712E-01** at limit **
   2  Index         2.9674        5.6950        .50000       -.70859E-04
   3  Normalizat    .78027        .90937E-02    .71247E-01   -.38241E-04
   4  Prefactor     1.0530        .59809E-02    .39747E-01    .95359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101349
  Index      = 2.9674
  Normalizat = 0.780266
  Prefactor  = 1.05297
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.017     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10135E-03    6535.8        .37914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9674        6.4565        .50000       -.41864    
   3  Normalizat    .78027        .37500E-01    .31530E-03   -1.0080    
   4  Prefactor     1.0530        .24598E-01    .18007E-03   -.90984    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63078e-06
Minuit parameter uncertainties:
  1  0.136439
  2  34.6408
  3  0.0375016
  4  0.0245984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574243': 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) = 6991.0174439
delta logL = 2.90547723125e-06

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.013e-04  1.364e-01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.967e+00  3.464e+01  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.053e+00  2.460e-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.803e-01  3.750e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/574243/cmap_HighResolution_397699201_397958401_4FGL_J0126.8+2412_daily_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2021-08-14 00:55:51.796747', job_id='574243', GAL2='1.05', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1628927751.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='611' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:55:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 574243: <4FGL_J0126.8+2412_daily_bin611> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin611 21.7036 24.21 397699201 397958401 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 :                                   705.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            902 sec.

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

